/* ============================================
   0. CSS DEĞİŞKENLERİ (TEMA SİSTEMİ)
   ============================================ */

   :root {
    --bg-primary: linear-gradient(135deg, #131313, #3c3c3c);
    --bg-secondary: rgba(18, 18, 18, 0.95);
    --bg-tertiary: rgba(34, 34, 34, 0.95);
    --text-primary: #f1f1f1;
    --text-secondary: #ddd;
    --border-color: #555;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --input-bg: #2a2a2a;
    --modal-bg: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
  }

/* ============================================
   1. GENEL TANIMLAMALAR VE RESET
   ============================================ */

   * {
    box-sizing: border-box;
  }
  
  body {
    max-width: 100vw;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Playfair Display", serif;
    margin: 0;
    padding-top: 90px;
    transition: background 0.5s ease, color 0.5s ease;
  }
  
  .hidden {
    display: none;
  }
  
  audio {
    display: none;
  }
  
  /* ============================================
     2. BAŞLIKLAR VE TYPOGRAPHY
     ============================================ */
  
  h1, h2, h3 {
    text-align: center;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.2em;
  }
  
  p {
    line-height: 1.8;
    text-align: center;
    color: #FFD700;
    margin: 8px 0;
  }
  
  code {
    background: #222;
    color: #ffcc33;
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  /* ============================================
     3. INPUT VE FORM ELEMANLARI
     ============================================ */
  
  .auth-input,
  #marketplace-search-input,
  #chat-input,
  #bank-screen .product input,
  #list-item-modal input[type="number"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 8px;
    background: #2a2a2a;
    color: #f1f1f1;
    font-family: "Playfair Display", serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .auth-input::placeholder,
  #marketplace-search-input::placeholder {
    color: #bbb;
  }
  
  .auth-input:focus,
  #marketplace-search-input:focus,
  #chat-input:focus,
  #bank-screen .product input:focus,
  #list-item-modal input[type="number"]:focus {
    outline: none;
    border-color: #76c043;
    background: #333;
    box-shadow: 0 0 8px rgba(118, 192, 67, 0.5);
  }
  
  #item-select {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background: #444;
    color: #f1f1f1;
    border: none;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
  }
  
  /* ============================================
     4. BUTONLAR
     ============================================ */
  
  button {
    padding: 12px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, #666, #444);
    color: #f1f1f1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  button:hover {
    background: linear-gradient(to bottom, #888, #666);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }
  
  button:disabled {
    background: #3a3a3a;
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  #play-now {
    padding: 12px 24px;
    background: linear-gradient(to bottom, #76c043, #5a9632);
    color: #1c1c1c;
    font-size: 1.2em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }
  
  #play-now:hover {
    background: linear-gradient(to bottom, #8de057, #76c043);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  }
  
  .menu-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #76c043, #5a9632);
    color: #fff;
    font-size: 1.5em;
    position: absolute;
    top: 70px;
    left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, background 0.4s ease;
    margin: 0;
    padding: 0;
  }
  
  .menu-button:hover {
    background: linear-gradient(to bottom, #8de057, #76c043);
  }
  
  .menu-button.active {
    transform: rotate(90deg);
    background: linear-gradient(to bottom, #8de057, #76c043);
    box-shadow: 0 4px 10px rgba(118, 192, 67, 0.5);
  }

  /* Menü Bar Animasyonu */
#menuBar {
  animation: slideDown 0.3s ease-out;
  transform-origin: top left;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
  
  /* Filtre ve Kanal Butonları */
  .filter-btn,
  .channel-btn {
    padding: 5px 10px;
    margin: 0 2px;
    border: none;
    border-radius: 5px;
    background: #444;
    color: #f1f1f1;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
  }
  
  .channel-btn {
    background: #333;
    margin-right: 5px;
    font-size: 0.9em;
  }
  
  .filter-btn:hover {
    background: #666;
    transform: scale(1.05);
  }
  
  .filter-btn.active,
  .channel-btn.active {
    background: #76c043;
    color: #1c1c1c;
  }
  
  .filter-btn {
    position: relative;
    overflow: hidden;
    padding: 0.5px 2px;
  }
  
  .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #76c043;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .filter-btn.active::after,
  .filter-btn:hover::after {
    width: 80%;
  }
  
  /* ============================================
     5. CONTAINER VE LAYOUT
     ============================================ */
  
  .container {
    max-width: 100%;
    margin: 0 10px;
    padding: 15px;
    position: relative;
    background: rgba(18, 18, 18, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease;
  }
  
  .container.hidden {
    opacity: 0;
  }
  
  .container:not(.hidden) {
    opacity: 1;
  }
  
  header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(34, 34, 34, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
  
  header h1 {
    font-size: 3em;
    margin: 0;
  }
  
  header .highlight {
    color: #76c043;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  header p {
    font-size: 1.2em;
    color: #ddd;
  }
  
  main {
    padding: 20px;
  }
  
  section {
    margin: 40px 0;
    padding: 20px;
    background: rgba(34, 34, 34, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
  
  footer {
    text-align: center;
    padding: 20px;
    background: rgba(34, 34, 34, 0.9);
    margin-top: 40px;
  }
  
  #menuBar {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(34, 34, 34, 0.95);
    border-radius: 8px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
  
  /* ============================================
     6. GRID DÜZENLERI
     ============================================ */
  
  .menu-grid,
  .product-grid,
  .inventory-grid,
  .koruma-slots,
  #equipment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .family-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 10px;
  }
  
  #marketplace-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Rulet Container */
.roulette-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  height: 100px;
  border: 2px solid #d4af37;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

.roulette-track {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  transition: left 0.1s linear;
  will-change: left;
}

.roulette-item {
  min-width: 80px;
  height: 80px;
  margin: 10px 5px;
  border: 2px solid #d4af37;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: relative;
}

.roulette-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

/* İmleç */
.roulette-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 120%;
  background: linear-gradient(to bottom, transparent, #FFD700, transparent);
  box-shadow: 0 0 20px #FFD700;
  z-index: 10;
  pointer-events: none;
}

.roulette-pointer::before {
  content: '▼';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFD700;
  font-size: 20px;
  text-shadow: 0 0 10px #FFD700;
}

/* Elmas Rulet için */
.diamond-roulette-container {
  border-color: #3498db;
}

.diamond-roulette-container .roulette-item {
  border-color: #3498db;
}

.diamond-roulette-container .roulette-pointer {
  background: linear-gradient(to bottom, transparent, #3498db, transparent);
  box-shadow: 0 0 20px #3498db;
}

.diamond-roulette-container .roulette-pointer::before {
  color: #3498db;
  text-shadow: 0 0 10px #3498db;
}

/* Ödül Havuzu */
.reward-pool-info {
  background: rgba(51, 51, 51, 0.9);
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 15px;
  margin: 15px auto;
  max-width: 600px;
}

.reward-pool-info h4 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 10px;
}

.reward-pool-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
}

.pool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pool-item img {
  width: 40px;
  height: 40px;
  border: 1px solid #d4af37;
  border-radius: 5px;
  margin-bottom: 5px;
}

.pool-item-name {
  font-size: 0.7em;
  color: #ddd;
  word-break: break-word;
}

.pool-item-chance {
  font-size: 0.65em;
  color: #76c043;
}

/* Elmas Havuzu için */
.diamond-reward-pool-info {
  border-color: #3498db;
}

.diamond-reward-pool-info h4 {
  color: #3498db;
}

.diamond-reward-pool-info .pool-item img {
  border-color: #3498db;
}
  
  #list-modal-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
  }
  
  .enemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }
  
  /* ============================================
     7. KARTLAR (PRODUCTS, ITEMS, INVENTORY)
     ============================================ */
  
  .inventory-item,
  .equipment-slot,
  .product,
  .koruma-slot,
  .mechanic-card,
  .location-card,
  .item-card,
  .family-store-item,
  .marketplace-card,
  .diamond-product,
  .list-item-card,
  .enemy-card {
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px;
    background: rgba(51, 51, 51, 0.95);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .inventory-item,
  .equipment-slot,
  .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
  }
  
  .inventory-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }
  
  .inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(118, 192, 67, 0.3), transparent);
    transition: left 0.5s ease;
  }
  
  .inventory-item:hover::before {
    left: 100%;
  }
  
  .mechanic-card:hover,
  .location-card:hover,
  .item-card:hover,
  .family-store-item:hover,
  .marketplace-card:hover,
  .diamond-product:hover,
  .list-item-card:hover,
  .enemy-card:hover,
  .inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(118, 192, 67, 0.5);
  }
  
  .inventory-item:hover {
    border-color: #76c043;
  }
  
  .list-item-card {
    border-width: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 160px;
  }
  
  .list-item-card:hover {
    border-color: #76c043;
  }
  
  .list-item-card.selected {
    border-color: #76c043;
    background: rgba(118, 192, 67, 0.1);
    box-shadow: 0 0 15px rgba(118, 192, 67, 0.5);
  }
  
  .marketplace-card:hover {
    box-shadow: 0 6px 12px rgba(118, 192, 67, 0.5);
  }
  
  .crime-card {
    width: 140px;
    height: 140px;
    cursor: pointer;
    transition: transform 0.6s ease, filter 0.3s ease;
    transform-style: preserve-3d;
    margin: 0 auto;
  }
  
  .crime-card:hover {
    transform: scale(1.05);
  }
  
  .crime-card.selected {
    transform: rotateY(180deg);
  }
  
  .crime-card.faded {
    filter: opacity(0.5);
  }
  
  /* Kart İçerik Stilleri */
  .inventory-item .item-name,
  .equipment-slot strong,
  .list-item-card .item-name {
    font-weight: bold;
    font-size: 0.95em;
    margin: 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  .list-item-card .item-name {
    font-size: 0.9em;
    color: #f1f1f1;
    word-break: break-word;
    margin: 3px 0;
  }
  
  .marketplace-card .item-name,
  .list-item-card .item-name.gold-item {
    color: gold;
  }
  
  .marketplace-card .item-name {
    font-size: 1.1em;
  }
  
  .inventory-item .upgrade-level,
  .list-item-card .upgrade-level {
    font-size: 0.85em;
    color: #ffd700;
    margin: 2px 0;
  }
  
  .list-item-card .upgrade-level.gold-item {
    color: gold;
    text-shadow: 0 0 5px gold;
  }
  
  .inventory-item .bonus,
  .list-item-card .bonus {
    font-size: 0.8em;
    color: #76c043;
    margin: 5px 0;
  }
  
  .list-item-card .bonus {
    font-size: 0.75em;
    margin: 3px 0;
  }
  
  .inventory-item .extra-attributes {
    background: rgba(255, 68, 68, 0.1);
    padding: 5px;
    border-radius: 3px;
    margin-top: 5px;
  }
  
  .list-item-card .extra-attributes-mini {
    font-size: 0.65em;
    color: #ff4444;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
  }
  
  .list-item-card .extra-attributes-mini span {
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
  }
  
  .inventory-item .item-description {
    font-size: 0.75em;
    color: #bbb;
    font-style: italic;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #444;
  }
  
  .inventory-item button,
  .list-item-card button {
    margin-top: 8px;
    font-size: 0.85em;
    padding: 6px;
    transition: all 0.2s ease;
  }
  
  .inventory-item button:hover,
  .list-item-card button:hover {
    transform: scale(1.05);
  }
  
  .product p {
    margin: 10px 0;
    flex-grow: 1;
  }
  
  .product button {
    margin-top: auto;
    padding: 5px 10px;
    width: auto;
    align-self: center;
  }
  
  .list-item-card .item-info {
    width: 100%;
    text-align: center;
  }
  
  /* Kart Görselleri */
  .product-grid img,
  .menu-grid button img,
  .mechanic-card img,
  .location-card img,
  .item-card img,
  .family-store-item img,
  .marketplace-card .item-header img,
  .diamond-product img,
  .list-item-card img,
  .enemy-card img {
    display: block;
    margin: 0 auto 5px;
  }
  
  .product-grid img {
    height: 96px;
  }
  
  .menu-grid button img {
    height: 64px;
  }
  
  .menu-grid button {
    font-size: 0.9em;
    padding: 10px;
  }
  
  .mechanic-card img,
  .location-card img,
  .enemy-card img {
    height: 48px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .location-card .vendor-img {
    height: 148px;
  }
  
  .item-card img {
    height: 96px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .family-store-item img {
    height: 48px;
    filter: brightness(1.1);
    margin-bottom: 8px;
  }
  
  .marketplace-card .item-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .marketplace-card .item-header img {
    height: 40px;
  }
  
  .diamond-product img {
    height: 50px;
    width: auto;
    margin-bottom: 8px;
    max-width: 100%;
  }
  
  .list-item-card img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .enemy-card .drop-items {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .enemy-card .drop-items img {
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0;
  }
  
  .enemy-card .drop-items img:hover {
    transform: scale(1.2);
  }
  
  /* Kart Başlık ve Detaylar */
  .mechanic-card h3,
  .location-card h3 {
    font-size: 1.2em;
    color: #f1f1f1;
  }
  
  .marketplace-card .item-bonus,
  .marketplace-card .item-details,
  .family-store-item p,
  .diamond-product p {
    font-size: 0.9em;
    color: #ddd;
    margin: 5px 0;
  }
  
  .marketplace-card .item-bonus {
    color: #ccc;
  }
  
  .family-store-item p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .diamond-product h4 {
    font-size: 1.1rem;
    color: #f1f1f1;
    margin: 8px 0;
  }
  
  .diamond-product p {
    font-size: 0.9rem;
    margin: 4px 0;
  }
  
  .enemy-card .enemy-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #f1f1f1;
    margin-bottom: 5px;
  }
  
  /* Kart Butonları */
  .marketplace-card button,
  .family-store-item button,
  .diamond-product button {
    background: linear-gradient(to bottom, #76c043, #5a9632);
    color: #1c1c1c;
    padding: 8px;
    width: 100%;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s ease;
  }
  
  .marketplace-card button:hover,
  .family-store-item button:hover,
  .diamond-product button:hover {
    background: linear-gradient(to bottom, #8de057, #76c043);
  }
  
  .diamond-product button {
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  /* ============================================
     8. ÜSTTE SABİT BARLAR (STATUS, XP, HEALTH, ENERGY)
     ============================================ */
  
  #topStatusBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(34, 34, 34, 0.9), rgba(0, 0, 0, 0.7));
    padding: 10px;
    text-align: center;
    z-index: 1000;
    font-size: 1.1em;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  
  #topStatusBar img {
    vertical-align: middle;
    margin-right: 6px;
    height: 24px;
    filter: brightness(1.2);
  }
  
  #topStatusBar span {
    vertical-align: middle;
    font-size: 1.1em;
    color: #ddd;
  }
  
  #xpBarContainer,
  #healthBarContainer,
  #energyBarContainer {
    position: fixed;
    left: 0;
    width: 100%;
    background: #2a2a2a;
    height: 15px;
    z-index: 1000;
    display: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  
  #xpBarContainer {
    top: 40px;
  }
  
  #healthBarContainer {
    top: 57px;
    height: 20px;
  }
  
  #energyBarContainer {
    top: 79px;
    height: 20px;
  }
  
  #xpBar,
  #healthBar,
  #energyBar {
    height: 100%;
    width: 0%;
    transition: width 0.9s ease-out;
    border-radius: 0 5px 5px 0;
  }
  
  #xpBar {
    background: linear-gradient(to right, #3498db, #5dade2);
  }
  
  #healthBar {
    background: linear-gradient(to right, #4CAF50, #66BB6A);
  }
  
  #energyBar {
    background: linear-gradient(to right, #f1c40f, #f7dc6f);
  }
  
  #xpText,
  #healthText,
  #energyText {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    font-size: 0.8em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
  
  #healthText,
  #energyText {
    font-size: 0.9em;
    font-weight: bold;
  }
  
  #tokenDisplay {
    position: absolute;
    top: 30px;
    left: 10px;
    font-size: 1.1em;
    color: #ebdc0f;
  }
  
  /* ============================================
     9. OYUN EKRANLARI VE BİLEŞENLERİ
     ============================================ */
  
  /* Narrative ve Inventory Log */
  #inventoryLog,
  #narrative {
    background: rgba(51, 51, 51, 0.9);
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    margin-bottom: 15px;
  }
  
  #inventoryLog {
    height: 2.2em;
    margin-bottom: 15px;
  }
  
  #narrative {
    height: 100px;
    margin-bottom: 10px;
  }
  
  #inventoryLimit {
    background: rgba(51, 51, 51, 0.9);
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #555;
  }
  
  /* Upgrade Progress */
  #upgradeLog {
    font-size: 0.9em;
    margin-bottom: 10px;
  }
  
  #upgradeProgressContainer {
    width: 100%;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-bottom: 10px;
  }
  
  #upgradeProgressBar {
    width: 0%;
    height: 100%;
    background: #2ecc71;
    transition: width 1s ease;
  }
  
  /* Battle Arena ve Health Bars */
  #battleArena {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(20,20,20,0.9));
    border: 2px solid #555;
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
  }
  
  .battle-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  #playerSide {
    left: 10px;
  }
  
  #enemySide {
    right: 10px;
  }
  
  #playerBattleAvatar,
  #enemyImg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #76c043;
    box-shadow: 0 0 10px rgba(118, 192, 67, 0.5);
    max-height: 144px;
    display: block;
    margin: 0 auto 10px;
    transition: transform 0.1s ease, filter 0.2s ease;
  }
  
  #enemyImg {
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  }
  
  #enemyImg.hit {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(0.8) sepia(0.5);
  }
  
  .health-bar-container {
    background: #444;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
    height: 20px;
  }
  
  .health-bar {
    height: 100%;
    width: 100%;
    transition: width 0.5s ease-out;
  }
  
  #enemyHealthBar {
    background: #e74c3c;
  }
  
  #playerHealthBar {
    background: #76c043;
  }
  
  /* Battle UI */
  #battleUI {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(118, 192, 67, 0.3);
    animation: fadeIn 0.5s ease-in;
  }
  
  /* Battle Units */
  #playerUnits,
  #enemyUnits {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    max-width: 80px;
    justify-content: center;
  }
  
  .unit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #76c043;
    box-shadow: 0 0 5px rgba(118, 192, 67, 0.8);
    animation: unitPulse 1s infinite;
  }
  
  .enemy-unit-dot {
    background: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.8);
  }
  
  .unit-hit {
    animation: unitHit 0.3s ease;
  }
  
  /* Battle Effects */
  #battleEffects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
  }
  
  .bullet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffd700;
  }
  
  .bullet-left {
    left: 80px;
    top: 50%;
    animation: bulletFlyRight 0.5s linear;
  }
  
  .bullet-right {
    right: 80px;
    top: 50%;
    animation: bulletFlyLeft 0.5s linear}

    .explosion {
      position: absolute;
      width: 30px;
      height: 30px;
      background: radial-gradient(circle, #ff4500, transparent);
      border-radius: 50%;
      animation: explode 0.5s ease-out;
      pointer-events: none;
    }
    
    .victory-text,
    .defeat-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 3em;
      font-weight: bold;
      animation: victoryAppear 1s ease-out;
      z-index: 100;
    }
    
    .victory-text {
      color: #76c043;
      text-shadow: 0 0 20px rgba(118, 192, 67, 1), 0 0 40px rgba(118, 192, 67, 0.5);
    }
    
    .defeat-text {
      color: #e74c3c;
      text-shadow: 0 0 20px rgba(231, 76, 60, 1), 0 0 40px rgba(231, 76, 60, 0.5);
    }
    
    .damage-text {
      position: absolute;
      color: #ff3333;
      font-size: 2.5em;
      font-weight: bold;
      pointer-events: none;
      z-index: 1200;
      text-shadow: 0 0 5px rgba(255, 0, 0, 0.8), 0 0 10px rgba(255, 0, 0, 0.5);
      animation: damageFloat 1.5s ease-out forwards;
    }
    
    /* Spinner */
    .spinner {
      border: 8px solid #333;
      border-top: 8px solid #4CAF50;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 2s linear infinite;
      margin: 0 auto;
    }
    
    #spinner-text {
      color: #76c043;
      font-size: 1em;
      text-align: center;
      margin-top: 10px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    #result-text {
      font-size: 1.2em;
      font-weight: bold;
      text-align: center;
      color: #f1f1f1;
    }
    
    .green-summary {
      color: #76c043;
      text-align: center;
      font-size: 1.2em;
    }
    
    /* Player Profile */
    #player-profile {
      text-align: center;
      margin: 15px 0;
    }
    
    #player-avatar {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      border: 2px solid #dfd005;
    }
    
    #player-name {
      margin: 5px 0 0;
      font-size: 1.1em;
      color: #FFD700;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    #avatarOptions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }
    
    #avatarOptions img {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      cursor: pointer;
      margin: 5px;
      transition: all 0.3s ease;
    }
    
    #avatar4.locked,
    .locked {
      opacity: 0.5;
      border: 2px solid red;
      filter: grayscale(100%);
    }
    
    #avatar4:hover {
      transform: scale(1.1);
      transition: all 0.3s ease;
    }
    
    /* Chat Messages */
    #chat-messages {
      height: 300px;
      overflow-y: auto;
      border: 1px solid #555;
    }
    
    #chat-messages .message {
      padding: 8px;
      margin: 5px 0;
      background: #333;
      border-radius: 5px;
      word-wrap: break-word;
      display: flex;
      align-items: center;
      margin-bottom: 5px;
    }
    
    #chat-messages .message span {
      font-weight: bold;
      color: #76c043;
    }
    
    .message img {
      width: 24px;
      height: 24px;
      border: 1px solid #76c043;
      border-radius: 50%;
      margin-right: 5px;
    }
    
    /* ============================================
       10. MODAL SİSTEMLERİ
       ============================================ */
    
    .modal {
      display: none;
      position: fixed;
      z-index: 1100;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(3px);
    }
    
    .modal-content {
      background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
      margin: 10% auto;
      padding: 20px;
      border: 1px solid #FFD700;
      width: 90%;
      max-width: 320px;
      border-radius: 12px;
      text-align: center;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }
    
    .modal-content h3 {
      color: #FFD700;
    }
    
    .item-modal-header img {
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    
    #modal-item-details {
      font-size: 0.95em;
      line-height: 1.6;
    }
    
    #modal-buttons button {
      font-weight: 600;
      transition: all 0.2s ease;
    }
    
    #modal-buttons button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    /* Özel Modal İçerikleri */
    #crimeCardModal .modal-content {
      background: linear-gradient(to bottom, #1a1a1a, #2c2c2c);
      border: 1px solid #76c043;
      padding: 20px;
      max-width: 95%;
      margin: 20px auto;
    }
    
    #crimeCardModal .modal-body {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      overflow-y: auto;
      max-height: 70vh;
    }
    
    #crimeCardModal h3 {
      color: #76c043;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      text-align: center;
    }
    
    #crimeCardModal p {
      color: #ddd;
      font-style: italic;
      text-align: center;
    }
    
    #completeCrimeBtn {
      background: linear-gradient(to bottom, #76c043, #5a9632);
      color: #1c1c1c;
      padding: 10px 20px;
      width: auto;
      margin: 20px auto 0;
      display: block;
    }
    
    #completeCrimeBtn:hover {
      background: linear-gradient(to bottom, #8de057, #76c043);
    }
    
    /* Reward Game Modals */
    #rewardGameModal .modal-content {
      background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
      border: 1px solid #d4af37;
      box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    }
    
    #diamondRewardGameModal .modal-content {
      background: linear-gradient(to bottom, #2c3e50, #1a1a2e);
      border: 1px solid #3498db;
      box-shadow: 0 5px 20px rgba(52, 152, 219, 0.5);
    }
    
    .reward-square {
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(to bottom, #333, #222);
      border-radius: 10px;
      width: 80px;
      height: 80px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .reward-square::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.2);
      transition: background 0.3s ease;
    }
    
    #rewardGameModal .reward-square:hover::after {
      background: rgba(212, 175, 55, 0.4);
    }
    
    #diamondRewardGameModal .reward-square:hover::after {
      background: rgba(52, 152, 219, 0.4);
    }
    
    #playRewardGameBtn,
    #playDiamondRewardGameBtn {
      font-size: 1.1em;
      padding: 10px 20px;
      border-radius: 8px;
      transition: transform 0.2s ease, background 0.3s ease;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    
    #playRewardGameBtn {
      background: linear-gradient(to bottom, #d4af37, #b8860b);
      color: #1c1c1c;
    }
    
    #playRewardGameBtn:hover {
      transform: scale(1.05);
      background: linear-gradient(to bottom, #e6c34e, #d4af37);
    }
    
    #playDiamondRewardGameBtn {
      background: linear-gradient(to bottom, #3498db, #2980b9);
      color: #fff;
    }
    
    #playDiamondRewardGameBtn:hover {
      transform: scale(1.05);
      background: linear-gradient(to bottom, #5dade2, #3498db);
    }
    
    /* Diamond Purchase Modal */
    #diamondPurchaseModal .modal-content {
      background: linear-gradient(to bottom, #1a1a1a, #2c2c2c);
      border: 1px solid #76c043;
      padding: 20px;
      max-width: 95%;
      width: 100%;
      margin: 5% auto;
      box-shadow: 0 5px 20px rgba(118, 192, 67, 0.5);
      box-sizing: border-box;
      position: relative;
    }
    
    #diamondPurchaseModal h3 {
      color: #76c043;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      font-size: 1.5rem;
      margin-top: 0;
    }
    
    #diamondPurchaseModal p {
      color: #ddd;
      font-style: italic;
      font-size: 0.9rem;
    }
    
    #diamond-products {
      display: grid;
      gap: 15px;
      margin: 15px 0;
    }
    
    /* Underground Book Modal */
    #undergroundBookModal .modal-content {
      background: #1a1a1a;
      border: 1px solid #76c043;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(118, 192, 67, 0.5);
      padding: 20px;
      max-width: 90%;
      margin: 5% auto;
      max-height: 85vh;
      overflow-y: auto;
    }
    
    #undergroundBookModal h3 {
      font-family: "Playfair Display", serif;
      font-size: 2em;
      color: #76c043;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      text-align: center;
      margin-bottom: 20px;
    }
    
    /* List Item Modal */
    #list-item-modal .modal-content {
      max-width: 95%;
      width: 100%;
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      padding: 15px;
    }
    
    #selected-item-info {
      background: rgba(118, 192, 67, 0.1);
      border: 1px solid #76c043;
      border-radius: 8px;
      padding: 15px;
      margin: 15px 0;
    }
    
    #selected-item-preview {
      text-align: center;
      margin-bottom: 10px;
    }
    
    #selected-item-preview img {
      height: 80px;
      width: auto;
      filter: drop-shadow(0 2px 8px rgba(118, 192, 67, 0.5));
    }
    
    #selected-item-name {
      font-size: 1.1em;
      font-weight: bold;
      color: #76c043;
      text-align: center;
      margin-bottom: 10px;
    }
    
    #list-item-confirm-btn {
      background: linear-gradient(to bottom, #76c043, #5a9632);
      color: #1c1c1c;
      font-size: 1.1em;
      padding: 12px;
      margin-top: 10px;
    }
    
    #list-item-confirm-btn:hover {
      background: linear-gradient(to bottom, #8de057, #76c043);
    }
    
    /* Family Search & Top Families Modals */
    #familySearchModal .modal-content,
    #topFamiliesModal .modal-content {
      background: #222;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }
    
    #family-list .family-item,
    #top-families-list .family-item {
      background: rgba(51, 51, 51, 0.9);
      border: 1px solid #555;
      border-radius: 5px;
      padding: 10px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    #family-list .family-item button,
    #top-families-list .family-item button {
      background: #76c043;
      color: #1c1c1c;
      width: auto;
      padding: 5px 10px;
    }
    
    #family-list .family-item button:hover {
      background: #8de057;
    }
    
    /* Newspaper Modal */
    .newspaper {
      background: #e8d8b0;
      font-family: 'Times New Roman', serif;
      color: #000;
      padding: 20px;
      border: 2px solid #000;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      max-width: 90vw;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
      line-height: 1.5;
    }
    
    .newspaper-title {
      font-family: 'Playfair Display', serif;
      font-size: 2em;
      text-align: center;
      margin-bottom: 20px;
      color: #000;
      text-shadow: 1px 1px 2px #4e4e4e;
    }
    
    .newspaper-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    
    .newspaper-section {
      border-top: 1px solid #000;
      padding-top: 10px;
    }
    
    .newspaper-section h4 {
      font-family: 'Playfair Display', serif;
      font-size: 1.5em;
      margin-bottom: 10px;
      color: #000;
    }
    
    .newspaper-section p {
      font-size: 1em;
      line-height: 1.5;
      color: #000;
    }
    
    /* Tooltip */
    .tooltip {
      position: absolute;
      background: #333;
      color: #f1f1f1;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 0.9em;
      z-index: 1000;
      display: none;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }
    
    /* ============================================
       11. AİLE (FAMILY) SİSTEMİ
       ============================================ */
    
    #family-screen {
      background: rgba(34, 34, 34, 0.95);
      border: 1px solid #555;
      border-radius: 10px;
      padding: 15px;
    }
    
    #family-treasury {
      font-size: 1.2em;
      color: #76c043;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    #family-members,
    #donation-ranking {
      background: rgba(51, 51, 51, 0.9);
      border: 1px solid #555;
      border-radius: 5px;
      padding: 10px;
      font-size: 0.9em;
      color: #f1f1f1;
    }
    
    #family-members .member,
    #donation-ranking .donation {
      margin-bottom: 5px;
      display: flex;
      align-items: center;
    }
    
    #donation-ranking .donation {
      font-size: 0.9em;
    }
    
    #family-members .member img,
    #donation-ranking .donation img {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      margin-right: 5px;
    }
    
    #family-store button {
      background: linear-gradient(to bottom, #76c043, #5a9632);
      color: #1c1c1c;
    }
    
    #family-store button:hover {
      background: linear-gradient(to bottom, #8de057, #76c043);
    }
    
    /* ============================================
       12. BANK SCREEN
       ============================================ */
    
    #bank-screen .product-grid {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    #bank-screen .product {
      padding: 15px;
      background: rgba(51, 51, 51, 0.9);
      border: 1px solid #555;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }
    
    #bank-screen .product h3 {
      margin: 0 0 10px;
      color: #76c043;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
    
    #bank-player-result {
      color: #ddd;
      font-size: 0.9em;
      text-align: center;
    }
    
    /* ============================================
       13. MARKETPLACE & FILTER BAR
       ============================================ */
    
    #marketplace-search-bar,
    #marketplace-filter-bar,
    #inventoryFilterBar {
      background: rgba(51, 51, 51, 0.9);
      padding: 10px;
      border-radius: 5px;
      border: 1px solid #555;
      margin-bottom: 15px;
    }
    
    #inventoryFilterBar {
      background: linear-gradient(to bottom, rgba(51, 51, 51, 0.95), rgba(34, 34, 34, 0.95));
      border: 1px solid #76c043;
      box-shadow: 0 2px 8px rgba(118, 192, 67, 0.2);
    }
    
    /* ============================================
       14. BAŞLIK VE ANIMASYONLAR
       ============================================ */
    
    #mafia-title {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      position: relative;
    }
    
    .letter {
      display: inline-block;
      opacity: 0;
    }
    
    .letter.left {
      animation: slideInFromLeft 1.1s forwards;
    }
    
    .letter.right {
      animation: slideInFromRight 1.1s forwards;
    }
    
    #kuzgun {
      position: absolute;
      display: none;
      width: auto;
      height: 1.5em;
      transform: translate(-100%, -25%);
    }
    
    #game-title {
      animation: yellowFlash 1.2s ease-in-out 1;
    }
    
    #game-title span {
      display: inline-block;
      animation: yellowFlash 1.2s ease-in-out both;
    }
    
    #game-title span:nth-child(1) { animation-delay: 0.2s; }
    #game-title span:nth-child(2) { animation-delay: 0.4s; }
    #game-title span:nth-child(3) { animation-delay: 0.6s; }
    #game-title span:nth-child(4) { animation-delay: 0.8s; }
    #game-title span:nth-child(5) { animation-delay: 1s; }
    #game-title span:nth-child(6) { animation-delay: 1.2s; }
    #game-title span:nth-child(7) { animation-delay: 1.4s; }
    #game-title span:nth-child(8) { animation-delay: 1.6s; }
    #game-title span:nth-child(9) { animation-delay: 1.8s; }
    #game-title span:nth-child(10) { animation-delay: 2.0s; }
    #game-title span:nth-child(11) { animation-delay: 2.2s; }
    
    /* ============================================
       15. DİĞER ÖZEL BİLEŞENLER
       ============================================ */
    
    .hint-icon {
      position: absolute;
      top: 30px;
      right: 10px;
      height: 32px;
      cursor: pointer;
    }
    
    .koruma-info {
      margin-bottom: 15px;
    }
    
    .koruma-info img {
      height: 48px;
    }
    
    .section-img {
      display: block;
      margin: 20px auto;
      max-width: 100%;
      height: 300px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    details#detailed-stats summary {
      background: #333;
      padding: 10px;
      border-radius: 5px;
    }
    
    details#detailed-stats[open] summary {
      background: #444;
    }
    
    /* Kısa Oyun Rehberi */
    .guide-container {
      margin-top: 15px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      background: rgba(0, 0, 0, 0.5);
      padding: 15px;
      border-radius: 10px;
    }
    
    .guide-card {
      display: flex;
      align-items: flex-start;
      background: linear-gradient(90deg, rgba(30,30,30,0.9), rgba(60,60,60,0.7));
      border: 1px solid #a67c38;
      border-radius: 10px;
      padding: 12px;
      box-shadow: 0 0 8px rgba(255,215,0,0.2);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .guide-card:hover {
      transform: scale(1.02);
      box-shadow: 0 0 12px rgba(255,215,0,0.4);
    }
    
    .guide-icon {
      width: 50px;
      height: 50px;
      object-fit: contain;
      margin-right: 12px;
      border-radius: 8px;
      background: rgba(255,255,255,0.1);
      padding: 4px;
    }
    
    .guide-card h3 {
      color: #ffcc33;
      margin: 0 0 6px 0;
      font-size: 18px;
      text-shadow: 0 0 8px #000;
    }
    
    .guide-card p,
    .guide-card li {
      color: #eee;
      font-size: 15px;
      margin-bottom: 6px;
    }
    
    .guide-card ul {
      margin-left: 18px;
    }
    
    /* ============================================
       16. KEYFRAME ANIMASYONLARI
       ============================================ */
    
    @keyframes slideInFromLeft {
      0% {
        transform: translateX(-100%);
        opacity: 0;
      }
      100% {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes slideInFromRight {
      0% {
        transform: translateX(100%);
        opacity: 0;
      }
      100% {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes yellowFlash {
      0% { color: #fff; transform: scale(1); }
      50% { color: #ffd700; transform: scale(1.1); }
      100% { color: #fff; transform: scale(1); }
    }
    
    @keyframes enemyAppear {
      0% { opacity: 0; transform: scale(0.8); }
      100% { opacity: 1; transform: scale(1); }
    }
    
    @keyframes enemyFadeOut {
      0% { opacity: 1; transform: scale(1); }
      100% { opacity: 0; transform: scale(0.9); }
    }
    
    @keyframes bulletFlyRight {
      0% { transform: translateX(0) translateY(-50%); opacity: 1; }
      100% { transform: translateX(calc(100vw - 200px)) translateY(-50%); opacity: 0; }
    }
    
    @keyframes bulletFlyLeft {
      0% { transform: translateX(0) translateY(-50%); opacity: 1; }
      100% { transform: translateX(calc(-100vw + 200px)) translateY(-50%); opacity: 0; }
    }
    
    @keyframes explode {
      0% { transform: scale(0); opacity: 1; }
      100% { transform: scale(2); opacity: 0; }
    }
    
    @keyframes victoryAppear {
      0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
      50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }
    
    @keyframes unitHit {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(0.5); background: #ff0000; }
    }
    
    @keyframes unitPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.2); opacity: 0.8; }
    }
    
    @keyframes damageFloat {
      0% { opacity: 1; transform: translateY(0) scale(1); }
      50% { opacity: 1; transform: translateY(-30px) scale(1.2); }
      100% { opacity: 0; transform: translateY(-50px) scale(1); }
    }
    
    @keyframes fadeIn {
      0% { opacity: 0; }
      100% { opacity: 1; }
    }
    
    @keyframes fadeOut {
      0% {
        opacity: 1;
        transform: translateY(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-20px);
      }
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* ============================================
       17. SCROLLBAR STİLLERİ
       ============================================ */
    
    #undergroundBookModal .modal-content::-webkit-scrollbar,
    #list-modal-inventory::-webkit-scrollbar {
      width: 8px;
    }
    
    #undergroundBookModal .modal-content::-webkit-scrollbar-track,
    #list-modal-inventory::-webkit-scrollbar-track {
      background: #2a2a2a;
      border-radius: 4px;
    }
    
    #undergroundBookModal .modal-content::-webkit-scrollbar-thumb,
    #list-modal-inventory::-webkit-scrollbar-thumb {
      background: #76c043;
      border-radius: 4px;
    }
    
    #undergroundBookModal .modal-content::-webkit-scrollbar-thumb:hover,
    #list-modal-inventory::-webkit-scrollbar-thumb:hover {
      background: #8de057;
    }
    
    /* ============================================
       18. RESPONSİVE TASARIM (MEDIA QUERIES)
       ============================================ */
    
    @media (max-width: 768px) {
      .crime-card {
        width: 100px;
        height: 110px;
      }
      
      #crimeCardModal .modal-content {
        padding: 15px;
      }
      
      #crimeCardModal .modal-body {
        gap: 10px;
        max-height: 60vh;
      }
    }
    
    @media (max-width: 600px) {
      /* Container ve Layout */
      .container {
        padding: 10px;
        margin: 0 5px;
      }
    
      /* Grid Düzenlemeleri */
      .menu-grid,
      .product-grid,
      .inventory-grid,
      .koruma-slots,
      #equipment-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
      }
    
      /* Butonlar */
      button {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
      }
    
      /* Header */
      header h1 {
        font-size: 2em;
      }
      
      header p {
        font-size: 1em;
      }
    
      /* Görseller */
      .section-img {
        height: 200px;
      }
    
      /* Kartlar */
      .mechanic-card,
      .location-card,
      .item-card {
        padding: 10px;
        background: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }
    
      .mechanic-card:hover,
      .location-card:hover,
      .item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
      }
    
      /* List Modal Inventory */
      #list-modal-inventory {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
        max-height: 350px;
      }
      
      .list-item-card {
        padding: 8px;
    min-height: 140px;
  }
  
  .list-item-card img {
    height: 48px;
  }
  
  .list-item-card .item-name {
    font-size: 0.8em;
  }
  
  #selected-item-preview img {
    height: 64px;
  }

  /* Newspaper */
  .newspaper-title {
    font-size: 1.5em;
  }
  
  .newspaper-section h4 {
    font-size: 1.2em;
  }
  
  .newspaper-section p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  /* Diamond Purchase Modal */
  #diamondPurchaseModal .modal-content {
    padding: 15px;
  }
  
  #diamond-products {
    gap: 10px;
  }
  
  .diamond-product {
    padding: 10px;
  }
  
  .diamond-product img {
    height: 40px;
  }
  
  .diamond-product h4 {
    font-size: 1rem;
  }
  
  .diamond-product button {
    padding: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* ============================================
   19. SON DÜZELTMELER VE EK STİLLER
   ============================================ */

/* Menu Grid Button Özel Stilleri */
.menu-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Marketplace Card İç Düzeni */
.marketplace-card .item-header {
  width: 100%;
}

/* Family Screen Özel Buton Stilleri */
#family-store .family-store-item button,
#family-screen button {
  margin: 5px;
}

/* Bank Screen Input Özel Stilleri */
#bank-screen .product input {
  margin: 10px 0;
}

/* Chat Input Özel Stilleri */
#chat-input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

/* Item Select Özel Düzenlemesi */
#item-select option {
  padding: 5px;
}

/* Upgrade ve Progress Bar Ek Düzenlemeler */
#upgradeLog p {
  margin: 5px 0;
}

/* Battle Arena İçindeki Özel Pozisyonlamalar */
#battleArena .battle-side {
  z-index: 5;
}

/* Modal Content Scrollbar Genel Ayarı */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #76c043;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #8de057;
}

/* Özel Durum Sınıfları */
.locked img,
img.locked {
  filter: grayscale(100%) opacity(0.5);
  cursor: not-allowed;
}

/* Genel Transition Optimizasyonu */
*:not(.bullet):not(.explosion):not(.damage-text):not(.crime-card) {
  transition-property: transform, opacity, background, color, border-color, box-shadow;
  transition-timing-function: ease;
}

/* Print Media Query - Yazdırma için */
@media print {
  .menu-button,
  #topStatusBar,
  #xpBarContainer,
  #healthBarContainer,
  #energyBarContainer,
  #menuBar,
  button {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Yüksek Kontrast Modu Desteği */
@media (prefers-contrast: high) {
  body {
    background: #000;
    color: #fff;
  }
  
  .container {
    border: 2px solid #fff;
  }
  
  button {
    border: 2px solid #fff;
  }
}

/* Hareket Azaltma Tercihi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */

/* Hızlı Erişim Utility Sınıfları */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.p-10 {
  padding: 10px;
}

.p-15 {
  padding: 15px;
}

/* Görünürlük Yardımcıları */
.visible {
  display: block !important;
}

.invisible {
  visibility: hidden;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

/* Flex Yardımcıları */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-5 {
  gap: 5px;
}

.gap-10 {
  gap: 10px;
}

.gap-15 {
  gap: 15px;
}

/* ============================================
   21. LİST ITEM MODAL DÜZELTMELERİ
   ============================================ */

   #list-item-confirm-btn {
    display: block !important;
    width: 100%;
    max-width: 300px;
    margin: 15px auto 0 !important;
    padding: 12px !important;
    background: linear-gradient(to bottom, #76c043, #5a9632) !important;
    color: #1c1c1c !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  }
  
  #list-item-confirm-btn:hover {
    background: linear-gradient(to bottom, #8de057, #76c043) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4) !important;
  }
  
  #selected-item-info {
    margin-bottom: 15px !important;
  }
  
  #list-modal-inventory {
    margin-bottom: 15px !important;
  }

/* Item Wiki stilleri */
#item-wiki-list {
  scrollbar-width: thin;
  scrollbar-color: #76c043 #333;
}

#item-wiki-list::-webkit-scrollbar {
  width: 8px;
}

#item-wiki-list::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

#item-wiki-list::-webkit-scrollbar-thumb {
  background: #76c043;
  border-radius: 4px;
}

#item-search {
  transition: border-color 0.3s;
}

#item-search:focus {
  outline: none;
  border-color: #76c043;
}

/* Menü butonu hover efekti */
.menu-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(118, 192, 67, 0.6);
}

.menu-button:active {
  transform: scale(0.95);
}

/* Avatar hover efekti */
#player-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(118, 192, 67, 0.6);
}

/* Gazete butonu hover efekti */
button:has(img[alt="Gazete"]):hover {
  transform: scale(1.1);
}

button:has(img[alt="Gazete"]):hover img {
  filter: drop-shadow(0 0 10px rgba(118, 192, 67, 0.6));
}

button:has(img[alt="Gazete"]):active {
  transform: scale(0.95);
}

/* ============================================
   MODERN ADMIN PANEL STYLES
   ============================================ */

   .admin-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
  }
  
  .admin-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    width: 95%;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
    position: relative;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .admin-modal-content h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .admin-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .admin-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
  }
  
  .admin-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
  }
  
  .admin-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  
  .admin-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .admin-card input,
  .admin-card textarea {
    width: 100%;
    margin-top: 10px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .admin-card input:focus,
  .admin-card textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .admin-card textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  .admin-card input::placeholder,
  .admin-card textarea::placeholder {
    color: rgba(255,255,255,0.4);
  }
  
  .admin-btn {
    width: 100%;
    padding: 14px;
    border: none;
    margin-top: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
  }
  
  .admin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .admin-btn:hover::before {
    width: 300px;
    height: 300px;
  }
  
  .admin-btn:active {
    transform: scale(0.98);
  }
  
  .admin-btn.primary { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  
  .admin-btn.primary:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
  }
  
  .admin-btn.success { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
  }
  
  .admin-btn.success:hover {
    box-shadow: 0 6px 25px rgba(56, 239, 125, 0.6);
    transform: translateY(-2px);
  }
  
  .admin-btn.danger { 
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
  }
  
  .admin-btn.danger:hover {
    box-shadow: 0 6px 25px rgba(235, 51, 73, 0.6);
    transform: translateY(-2px);
  }
  
  .admin-btn.warning { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
  }
  
  .admin-btn.warning:hover {
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.6);
    transform: translateY(-2px);
  }
  
  .admin-open-btn {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    z-index: 9998;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
  }
  
  .admin-open-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
  }
  
  .admin-open-btn:active {
    transform: translateY(-1px) scale(1.02);
  }
  
  /* Checkbox stili */
  .admin-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .admin-checkbox-container:hover {
    background: rgba(0,0,0,0.3);
  }
  
  .admin-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
  }
  
  .admin-checkbox-container label {
    cursor: pointer;
    user-select: none;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
  }

/* Okunmamış mesaj bildirimi animasyonu */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ✅ Okunmamış mesaj bildirimi animasyonu */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* PAZAR YERİ V2 - MINIMALIST ŞIK TASARIM */

.marketplace-card-v2 {
  background: linear-gradient(135deg, rgba(40,40,40,0.98), rgba(30,30,30,0.98));
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0; /* ✅ DEĞİŞTİ: 12px → 0 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex; /* ✅ YENİ */
  flex-direction: column; /* ✅ YENİ */
  height: 100%; /* ✅ YENİ */
}

.marketplace-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(118, 192, 67, 0.2);
  border-color: #76c043;
}

.mp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.mp-item-visual {
  position: relative;
  flex-shrink: 0;
}

.mp-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
}

.mp-no-img {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: #666;
  font-size: 24px;
  font-weight: bold;
}

.mp-upgrade {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #4CAF50;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.mp-upgrade.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

.mp-item-info {
  flex: 1;
  min-width: 0;
}

.mp-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f1f1;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-item-name.gold-text {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.mp-item-rarity {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.mp-stats {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mp-stats span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-atk {
  background: rgba(244, 67, 54, 0.15);
  color: #ff5252;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.stat-atk::before {
  content: "⚔";
  font-size: 14px;
}

.stat-def {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.stat-def::before {
  content: "🛡";
  font-size: 14px;
}

.stat-crit {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.stat-crit::before {
  content: "⚡";
  font-size: 14px;
}

.mp-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
}

.mp-extras span {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.extra-max {
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.3) !important;
  background: rgba(255, 215, 0, 0.1) !important;
}

.extra-normal {
  color: #ff5252;
}

.extra-more {
  color: #999;
  font-style: italic;
}

.mp-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
}

.mp-price-box,
.mp-seller-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

.mp-price-box {
  border-left: 3px solid #4CAF50;
}

.mp-seller-box {
  border-left: 3px solid #2196F3;
}

.mp-price-label,
.mp-seller-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 600;
}

.mp-price-value {
  font-size: 16px;
  font-weight: 700;
  color: #4CAF50;
}

.mp-seller-name {
  font-size: 13px;
  font-weight: 600;
  color: #2196F3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-card-actions {
  padding: 10px 12px;
  margin-top: auto; /* ✅ YENİ - Butonu en alta yapıştır */
}

.mp-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-btn-buy {
  background: linear-gradient(135deg, #76c043 0%, #5a9632 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(118, 192, 67, 0.3);
}

.mp-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(118, 192, 67, 0.4);
}

.mp-btn-buy:active {
  transform: translateY(0);
}

.mp-btn-cancel {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.mp-btn-cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.mp-btn-cancel:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .mp-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .mp-card-footer {
    grid-template-columns: 1fr;
  }
  
  .mp-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ✅ 2 SÜTUN GRID SİSTEMİ */
#marketplace-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}

/* Mobilde tek sütun */
@media (max-width: 768px) {
  #marketplace-list {
    grid-template-columns: 1fr;
  }
}

/* Geniş ekranlarda 3 sütun */
@media (min-width: 1200px) {
  #marketplace-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================ */
/* BAKIM MODU SWITCH STİLİ - styles.css'e EKLENİR */
/* Dosyanın en SONUNA ekleyin */
/* ============================================================ */

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #e74c3c;
}

input:focus + .slider {
  box-shadow: 0 0 1px #e74c3c;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ============================================
   GÖREV REHBERLİK SİSTEMİ
   ============================================ */

   .tutorial-highlight {
    position: relative !important;
    animation: pulse-glow 1.5s ease-in-out infinite !important;
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.8) !important;
    border: 3px solid #FFD700 !important;
    z-index: 9998 !important;
  }
  
  @keyframes pulse-glow {
    0%, 100% {
      box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.6);
    }
    50% {
      box-shadow: 0 0 30px 10px rgba(255, 215, 0, 1);
    }
  }
  
  .tutorial-pointer {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: bounce-arrow 1s ease-in-out infinite;
  }
  
  .tutorial-pointer::before {
    content: '☝️';
    font-size: 48px;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.8));
  }
  
  @keyframes bounce-arrow {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-15px);
    }
  }
  
  .tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9997;
    pointer-events: none;
  }
  
  .tutorial-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #FFD700;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    animation: fadeInScale 0.3s ease-out;
    z-index: 10000;
    pointer-events: all;
  }
  
  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }


  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

  @keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
  }

/* ========== ACCORDION (AÇILIR KAPANIR) STİLLERİ ========== */
.accordion-section {
  background: rgba(40, 40, 40, 0.95);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.accordion-section:hover {
  border-color: rgba(118, 192, 67, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(118, 192, 67, 0.1) 0%, rgba(58, 123, 213, 0.1) 100%);
  transition: all 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background: linear-gradient(135deg, rgba(118, 192, 67, 0.2) 0%, rgba(58, 123, 213, 0.2) 100%);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-header .accordion-icon {
  font-size: 1.5em;
  color: #76c043;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  color: #ffd700;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
}

.accordion-content.active {
  max-height: 5000px;
  padding: 20px 25px;
}

.accordion-badge {
  background: rgba(118, 192, 67, 0.2);
  color: #76c043;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  border: 1px solid rgba(118, 192, 67, 0.3);
}

.accordion-badge.warning {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}

.accordion-badge.danger {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}

/* GRUP SAVAŞI BUTON HOVER EFEKTLERİ */
button[onclick^="startGroupBattle"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.6);
}

/* GRUP SAVAŞI DÜŞMAN GÖRSELLERİ ANİMASYONU */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.group-enemy-img {
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.group-enemy-img:hover {
  transform: scale(1.1) !important;
  border-color: #ffd700 !important;
}

/* GRUP SAVAŞI CONTAINER */
#battleUI .battle-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ============================================
   MİNİMAL DÜŞMAN SEÇİM MODALI STİLLERİ
   ============================================ */

/* Grup Savaşı Butonları */
.group-battle-btn:hover {
  transform: translateY(-2px);
  border-color: #76c043;
  box-shadow: 0 4px 12px rgba(118, 192, 67, 0.3);
  background: linear-gradient(to bottom, #444, #333) !important;
}

/* Düşman Kategorileri */
.enemy-category {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #242424;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.enemy-category:hover {
  border-color: #555;
}

.enemy-summary {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  user-select: none;
  background: #2a2a2a;
}

.enemy-summary:hover {
  background: #333;
}

.enemy-summary .category-name {
  flex: 1;
  text-align: left;
  color: #f1f1f1;
}

.enemy-summary .category-energy {
  font-size: 0.85em;
  color: #999;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Zorluk Seviyesi Renkleri - Minimal */
.enemy-summary.very-easy {
  border-left: 4px solid #76c043;
}

.enemy-summary.easy {
  border-left: 4px solid #5dade2;
}

.enemy-summary.medium {
  border-left: 4px solid #f39c12;
}

.enemy-summary.hard {
  border-left: 4px solid #e67e22;
}

.enemy-summary.very-hard {
  border-left: 4px solid #e74c3c;
}

.enemy-summary.boss {
  border-left: 4px solid #ffd700;
}

.enemy-summary.organized {
  border-left: 4px solid #95a5a6;
}

/* Düşman Grid */
.enemy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 15px;
  background: #1a1a1a;
}

/* Düşman Butonları */
.enemy-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #f1f1f1;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enemy-btn:hover {
  transform: translateY(-3px);
  border-color: #76c043;
  background: #333;
  box-shadow: 0 4px 12px rgba(118, 192, 67, 0.2);
}

.enemy-btn img {
  height: 48px;
  width: 48px;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.enemy-btn:hover img {
  transform: scale(1.05);
}

.enemy-btn span {
  text-align: center;
  line-height: 1.2;
  font-size: 0.9em;
  color: #ddd;
}

/* Boss Butonları */
.boss-btn {
  border-color: rgba(255, 215, 0, 0.3);
}

.boss-btn:hover {
  border-color: #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Organize Suç Butonları */
.organized-btn {
  border-color: rgba(149, 165, 166, 0.3);
}

.organized-btn:hover {
  border-color: #95a5a6;
  box-shadow: 0 4px 12px rgba(149, 165, 166, 0.2);
}

/* Açılır/Kapanır Ok */
.enemy-category[open] > .enemy-summary::after {
  content: '▼';
  margin-left: 10px;
  font-size: 0.8em;
  color: #76c043;
  transition: transform 0.3s ease;
}

.enemy-category:not([open]) > .enemy-summary::after {
  content: '▶';
  margin-left: 10px;
  font-size: 0.8em;
  color: #666;
  transition: transform 0.3s ease;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .enemy-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 12px;
  }
  
  .enemy-btn {
    padding: 12px 8px;
    font-size: 0.8em;
  }
  
  .enemy-btn img {
    height: 40px;
    width: 40px;
  }
  
  .enemy-summary {
    padding: 12px 15px;
    font-size: 0.95em;
  }
}

/* ===== YENİ LİSTE TİPİ MENÜ TASARIMI ===== */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 0 15px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
  border: 2px solid rgba(118, 192, 67, 0.3);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.menu-list-item:hover {
  transform: translateX(5px);
  border-color: #76c043;
  box-shadow: 0 5px 20px rgba(118, 192, 67, 0.3);
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.98) 0%, rgba(40, 40, 40, 0.98) 100%);
}

.menu-list-item:active {
  transform: translateX(3px) scale(0.98);
}

.menu-list-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(118, 192, 67, 0.4));
  flex-shrink: 0;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.menu-item-title {
  font-size: 16px;
  font-weight: bold;
  color: #f1f1f1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-item-desc {
  font-size: 13px;
  color: #999;
  font-weight: normal;
}

.menu-item-arrow {
  font-size: 24px;
  color: #76c043;
  font-weight: bold;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.menu-list-item:hover .menu-item-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .menu-list {
    padding: 0 10px;
  }
  
  .menu-list-item {
    padding: 12px;
    gap: 12px;
  }
  
  .menu-list-item img {
    width: 45px;
    height: 45px;
  }
  
  .menu-item-title {
    font-size: 15px;
  }
  
  .menu-item-desc {
    font-size: 12px;
  }
}

/* Animasyon */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-list-item {
  animation: slideInRight 0.3s ease-out forwards;
}

.menu-list-item:nth-child(1) { animation-delay: 0.05s; }
.menu-list-item:nth-child(2) { animation-delay: 0.1s; }
.menu-list-item:nth-child(3) { animation-delay: 0.15s; }
.menu-list-item:nth-child(4) { animation-delay: 0.2s; }
.menu-list-item:nth-child(5) { animation-delay: 0.25s; }
.menu-list-item:nth-child(6) { animation-delay: 0.3s; }
.menu-list-item:nth-child(7) { animation-delay: 0.35s; }
.menu-list-item:nth-child(8) { animation-delay: 0.4s; }
.menu-list-item:nth-child(9) { animation-delay: 0.45s; }
.menu-list-item:nth-child(10) { animation-delay: 0.5s; }

/* ===== SLOT MACHINE MİNİ OYUNU ===== */
.slot-machine-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 15px;
  border: 3px solid #FFD700;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.slot-machine-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
               0 0 20px rgba(255, 215, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.slot-machine-reels {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 2px solid rgba(118, 192, 67, 0.3);
}

.slot-reel {
  width: 80px;
  height: 100px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 3px solid #76c043;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8),
              0 5px 15px rgba(118, 192, 67, 0.3);
}

.slot-symbol {
  font-size: 48px;
  animation: fadeIn 0.3s ease-in;
}

.slot-symbol.spinning {
  animation: spinSymbol 0.1s ease-in-out;
}

.slot-symbol.final {
  animation: bounceIn 0.6s ease-out;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes spinSymbol {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.slot-spin-btn {
  background: linear-gradient(135deg, #76c043 0%, #5a9632 100%);
  color: #1c1c1c;
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(118, 192, 67, 0.5);
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slot-spin-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(118, 192, 67, 0.7);
  background: linear-gradient(135deg, #85d052 0%, #69a541 100%);
}

.slot-spin-btn:active:not(:disabled) {
  transform: translateY(0);
}

.slot-spin-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(50%);
}

.slot-hint {
  font-size: 14px;
  color: #999;
  text-align: center;
  font-style: italic;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .slot-machine-container {
    padding: 20px 15px;
  }
  
  .slot-machine-title {
    font-size: 20px;
  }
  
  .slot-reel {
    width: 70px;
    height: 90px;
  }
  
  .slot-symbol {
    font-size: 42px;
  }
  
  .slot-spin-btn {
    padding: 12px 30px;
    font-size: 18px;
  }
}

/* ============================================
   OYUN HAKKINDA ACCORDION
   ============================================ */

#game-info-accordion {
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

#game-info-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(34, 34, 34, 0.95), rgba(18, 18, 18, 0.95));
  border: 2px solid #444;
  border-radius: 12px;
  transition: all 0.3s ease;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

#game-info-accordion summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#game-info-accordion summary:hover::before {
  opacity: 1;
}

#game-info-accordion summary::-webkit-details-marker {
  display: none;
}

#game-info-accordion summary:hover {
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
}

#game-info-accordion summary h2 {
  margin: 0;
  color: #ffd700;
  font-size: 2.2em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.3);
  display: inline-block;
  position: relative;
  z-index: 1;
}

#game-info-accordion[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  border-bottom-color: transparent;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#game-info-accordion summary::after {
  content: "▼";
  float: right;
  font-size: 1.8em;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  position: relative;
  z-index: 1;
}

#game-info-accordion[open] summary::after {
  transform: rotate(180deg);
}

#game-info-accordion section {
  animation: slideDown 0.4s ease-out;
}

#game-info-accordion > section:first-of-type {
  border-top: 2px solid #444;
  padding-top: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOADING EKRANI
   ============================================ */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: #ffd700;
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: #ffed4e;
  animation-delay: 0.15s;
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: #fff8dc;
  animation-delay: 0.3s;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 2.5em;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
               0 0 40px rgba(255, 215, 0, 0.3),
               2px 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0 0 15px 0;
  letter-spacing: 3px;
  animation: glowPulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: 1.2em;
  color: #ddd;
  margin: 0 0 25px 0;
  animation: textFade 1.5s ease-in-out infinite;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loading-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    #ffd700 0%,
    #ffed4e 50%,
    #ffd700 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: loadingProgress 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                 0 0 40px rgba(255, 215, 0, 0.3),
                 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                 0 0 60px rgba(255, 215, 0, 0.5),
                 2px 2px 8px rgba(0, 0, 0, 0.8);
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadingProgress {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* ============================================
   SHOPIER ELMAS MAĞAZASI STİLLERİ
   ============================================ */

.diamond-shop-content {
    max-width: 900px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 3px solid #FFD700;
    border-radius: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.diamond-verification-section {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.diamond-info-section {
    background: rgba(139, 115, 85, 0.1);
    padding: 15px;
    margin: 20px;
    border-radius: 8px;
    border: 1px dashed rgba(139, 115, 85, 0.3);
}

.diamond-shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.diamond-product-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 2px solid #555;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.diamond-product-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.diamond-product-featured {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.diamond-best-value {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.diamond-product-icon {
    font-size: 48px;
    margin: 15px 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.diamond-product-card h4 {
    color: #FFD700;
    margin: 10px 0;
    font-size: 20px;
}

.diamond-product-price {
    font-size: 24px;
    font-weight: bold;
    color: #76c043;
    margin: 15px 0;
}

.diamond-buy-btn {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.diamond-buy-btn:hover {
    background: linear-gradient(to bottom, #FFA500, #FFD700);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.diamond-verify-btn {
    background: linear-gradient(to bottom, #76c043, #5a9632);
    color: white;
    font-weight: bold;
}

.diamond-verify-btn:hover {
    background: linear-gradient(to bottom, #5a9632, #76c043);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .diamond-shop-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .diamond-shop-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .diamond-shop-products {
        grid-template-columns: 1fr;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-bottom: 2px solid rgba(118, 192, 67, 0.3);
    margin-bottom: 20px;
    position: relative;
}

.modal-header h3 {
    color: #FFD700;
    margin: 0;
    font-size: 1.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Modal Close Button */
.modal-close-btn {
    background: linear-gradient(to bottom, #444, #333);
    color: #ddd;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: absolute;
    left: 15px;
}

.modal-close-btn:hover {
    background: linear-gradient(to bottom, #555, #444);
    color: #fff;
    border-color: #76c043;
    transform: translateX(-2px);
}

.modal-close-btn:active {
    transform: translateX(-2px) scale(0.98);
}

/* Action Button Base */
.action-btn {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #1c1c1c;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}
