/* =========================================================
   PERİŞAN OKEY - KAHVEHANE & KIRAATHANE TEMASI (CSS)
   ========================================================= */

:root {
  --felt-green: #0d4a2d;
  --felt-dark: #072a19;
  --felt-light: #16653e;
  --wood-dark: #2a160d;
  --wood-mid: #4a2916;
  --wood-light: #6e3e23;
  --wood-trim: #b8860b;
  --gold-glow: #ffd700;
  --tile-bg: #fcf9f2;
  --tile-shadow: rgba(0, 0, 0, 0.45);

  --color-red: #d32f2f;      /* Net Yakut Kırmızısı */
  --color-yellow: #f59e0b;   /* Canlı Altın Kehribar Sarısı (Kırmızıdan Belirgin Farklı) */
  --color-blue: #1565c0;     /* Kraliyet Mavisi */
  --color-black: #1e1e1e;    /* Mat Siyah */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #062616 !important;
  background: #062616 !important;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: absolute;
  inset: 0;
  background-color: #062616 !important;
  background: radial-gradient(circle at 50% 45%, #186e42 0%, #0d4a2d 50%, #062616 100%) !important;
  color: #fff;
  touch-action: none;
}

/* ================== OTOMATİK YATAY EKRAN & DÖNME MOTORU ================== */
.app-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ================== DİKEY EKRAN UYARISI ================== */
.orientation-warning {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999999;
  background: radial-gradient(circle at center, #186e42 0%, #0d4a2d 60%, #062616 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  text-align: center;
  padding: 24px;
}

@media (orientation: portrait) {
  .orientation-warning {
    display: flex !important;
  }
}

@media (orientation: landscape) {
  .orientation-warning {
    display: none !important;
  }
}

.orientation-box {
  background: rgba(22, 12, 7, 0.95);
  border: 2px solid var(--wood-trim);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(184, 134, 11, 0.4);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-rotate-icon {
  font-size: 46px;
  animation: phoneRotateAnim 2s infinite ease-in-out;
  color: #ffd700;
}

@keyframes phoneRotateAnim {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  65% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.orientation-box h2 {
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
}

.orientation-box p {
  font-size: 13px;
  color: #e2cba6;
  line-height: 1.4;
}


/* ================== YUKARIDAN KAYAN BİLDİRİM BANNERI ================== */
.toast-banner {
  position: fixed;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 12, 7, 0.96);
  border: 1.5px solid var(--wood-trim);
  color: #ffd700;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 12px rgba(184, 134, 11, 0.5);
  z-index: 999999999;
  pointer-events: none;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
  opacity: 0;
  white-space: nowrap;
}

.toast-banner.show {
  top: max(12px, env(safe-area-inset-top));
  opacity: 1;
}

/* ================== LOBİ EKRANI ================== */
.lobby-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #186e42 0%, #0d4a2d 50%, #062616 100%);
  padding: 12px;
}

.lobby-card {
  width: 100%;
  max-width: 380px;
  background: rgba(30, 20, 15, 0.92);
  backdrop-filter: blur(12px);
  border: 2px solid var(--wood-trim);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  padding: 16px 20px;
  text-align: center;
  margin: auto;
}

.lobby-header h1 {
  font-size: 22px;
  color: #ffd700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: #e2cba6;
  margin-bottom: 4px;
  font-weight: 600;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 13px;
  outline: none;
}

.name-suggestions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  align-items: center;
}

.name-suggestion-label {
  font-size: 10px;
  color: rgba(255, 215, 0, 0.7);
  font-weight: 600;
  margin-right: 2px;
}

.name-suggestion-badge {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.name-suggestion-badge:hover,
.name-suggestion-badge:active {
  background: rgba(255, 215, 0, 0.35);
  border-color: #ffd700;
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #b8860b, #e6b800);
  border: none;
  border-radius: 10px;
  color: #1e1104;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
  transition: transform 0.1s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-danger {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
  transition: all 0.15s ease;
  user-select: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

.btn-danger:active {
  transform: scale(0.98);
}

.divider {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: #a08c75;
  font-size: 11px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.divider span {
  padding: 0 8px;
}

.btn-secondary {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ================== OYUN MASASI (LÜKS SALON & BOĞAZ MANZARASI) ================== */
.game-container {
  display: none;
  width: 100%;
  height: 100%;
  flex: 1;
  flex-direction: column;
  background: #060e18 url('../images/menu/okey_oyun_masasi_ust_gorunum.webp?v=29.0') no-repeat center center / cover !important;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* Masa Altındaki Lüks Teras Kıraathane Oyun Masası Arka Planı */
.game-table-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Canlı Boğaz Akıntısı & Dalgalanma Katmanı (Canvas - Arka Planda z-index: 1) */
.menu-sea-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.game-sea-wrapper,
#game-sea-wrapper {
  display: none !important;
}

.menu-sea-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* Atmosferik Vinyet: Masayı ve şömine ışıltısını odaklayan yumuşak karartma */
.game-table-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(6, 14, 24, 0.15) 0%, rgba(8, 12, 20, 0.45) 80%, rgba(3, 6, 12, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Üst Bilgi Barı (Lüks Obsidyen & Altın İşlemeli Cam Efekti) */
.table-header {
  height: calc(38px + max(4px, env(safe-area-inset-top)));
  padding-top: max(4px, env(safe-area-inset-top));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(22, 12, 6, 0.96) 0%, rgba(12, 6, 3, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  z-index: 50;
  flex-shrink: 0;
  overflow: visible;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 52;
}

@media (max-width: 900px), (pointer: coarse) {
  #btn-fullscreen-game {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.room-badge {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.35) 0%, rgba(120, 75, 5, 0.5) 100%);
  border: 1.2px solid #d4af37;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(212, 175, 55, 0.25);
  transition: all 0.15s ease;
}

.room-badge:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.5) 0%, rgba(160, 105, 10, 0.6) 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.mode-badge, .multiplier-badge, .round-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  height: 24px;
  min-width: 68px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.mode-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fbf5e6;
}

.round-badge {
  background: linear-gradient(135deg, #14532d 0%, #166534 100%);
  border: 1px solid #4ade80;
  color: #f0fdf4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.multiplier-badge {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
  border: 1px solid #f87171;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-icon {
  background: linear-gradient(180deg, rgba(38, 20, 11, 0.88) 0%, rgba(20, 10, 5, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffd700;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.btn-icon:hover {
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.btn-leave-room {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.5), rgba(127, 29, 29, 0.7));
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #fecaca;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.18s ease;
  margin-left: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-leave-room:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.75), rgba(153, 27, 27, 0.85));
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-leave-room:active {
  transform: scale(0.96);
  background: rgba(185, 28, 28, 0.9) !important;
}

.btn-leave-room .leave-icon {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 768px), (pointer: coarse) {
  .btn-leave-room {
    padding: 3px 7px;
    margin-left: 2px;
  }
  .btn-leave-room .leave-text {
    font-size: 10px;
  }
}

/* ================== MASA ORTA ALANI (LÜKS YEŞİL ÇUHA MASA) ================== */
.table-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  z-index: 10;
}

/* Görselin kendi lüks yeşil çuha masası, altın motifi ve pirinç bardaklıkları doğrudan kullanılır */
.table-area::before,
.table-area::after {
  display: none !important;
  content: none !important;
}

/* Otantik İnce Belli Çay Bardakları (Görselde zaten yer aldığı için yapay olanlar gizlendi) */
.table-tea-glass {
  display: none !important;
}

.table-tea-left {
  left: calc(50% - 370px);
  top: calc(50% + 40px);
}

.table-tea-right {
  right: calc(50% - 370px);
  top: calc(50% + 40px);
}

@media (max-width: 820px) {
  .table-tea-glass {
    display: none;
  }
}

/* Masa Ortası: Gösterge & Kapalı Deste Tabağı (Ceviz & Altın Çerçeveli Disk) */
.center-table-display {
  position: absolute !important;
  top: calc(50% + 8px) !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 6px 14px !important;
  background: radial-gradient(circle, rgba(28, 14, 7, 0.88) 0%, rgba(14, 7, 3, 0.96) 100%) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
  border-radius: 30px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 215, 0, 0.35), 0 0 16px rgba(212, 175, 55, 0.25) !important;
  z-index: 15;
}

.game-playing .center-table-display {
  display: flex !important;
}

.center-table-display,
.center-table-display * {
  outline: none !important;
}

.indicator-tile-slot,
#indicator-tile-slot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: transform 0.15s;
}

.indicator-tile-slot.drag-target-hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 16px #ffd700);
}

.deck-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.deck-tile-visual {
  width: 33px !important;
  height: 48px !important;
  background: linear-gradient(145deg, #ffffff 0%, #f6f1e6 60%, #e8dec8 100%) !important;
  border-radius: 6px !important;
  border: 1.5px solid #c9b794 !important;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7), inset 0 1px 1px #fff, inset 0 -2px 3px rgba(0, 0, 0, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.deck-tile-visual:hover {
  transform: scale(1.05);
  box-shadow: 2px 6px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.4) !important;
}

.deck-number-on-tile {
  font-size: 19px;
  font-weight: 900;
  color: #1a0e04;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  pointer-events: none;
}

/* ================== OYUNCU KOLTUKLARI (CHESTERFIELD DERİ & ALTIN PLAKA) ================== */
.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.seat-top {
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

/* Sol Oyuncu Sola Yatık (-90 derece dikey) */
.seat-left {
  left: calc(-26px + env(safe-area-inset-left, 0px));
  top: calc(50% + 22px);
  transform: translateY(-50%) rotate(-90deg) translateZ(0);
  transform-origin: center center;
  align-items: center;
  backface-visibility: hidden;
}

/* Sağ Oyuncu Sağa Yatık (90 derece dikey) */
.seat-right {
  right: calc(-26px + env(safe-area-inset-right, 0px));
  top: calc(50% + 22px);
  transform: translateY(-50%) rotate(90deg) translateZ(0);
  transform-origin: center center;
  align-items: center;
  backface-visibility: hidden;
}

/* Oyuncu Kartı (Kapitoneli Hakiki Deri & Altın Çerçeve) */
/* Oyuncu Kartı (Kapitoneli Hakiki Deri & Altın Çerçeve - Sabit Boyut, İsme Göre Değişmez) */
.seat-player-card {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(32, 16, 8, 0.96) 0%, rgba(18, 9, 4, 0.98) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 215, 0, 0.3);
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  z-index: 25;
  overflow: hidden;
}

.seat:not(.seat-empty) .seat-player-card:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85), 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Sıra bendeyken veya rakipteyken yanan altın haleli sabit parlama (Yanıp sönme kaldırıldı) */
.seat.active-turn .seat-player-card {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.85), 0 0 28px rgba(245, 158, 11, 0.4), inset 0 0 8px rgba(255, 215, 0, 0.35);
  animation: none !important;
}

/* Boş Koltuk Görünümü - Oturmadan Önce de Sabit Boyutta (140px x 38px) */
.seat-empty .seat-info,
.seat-empty .seat-avatar {
  display: none !important;
}

.seat-empty .seat-player-card {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  padding: 2px !important;
  background: rgba(18, 9, 4, 0.65) !important;
  border: 1px dashed rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.seat-empty .seat-actions {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.seat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5d3318, #2a1307);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid #ffd700;
  color: #ffd700;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.seat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
}

.seat-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.seat-score {
  font-size: 9.5px;
  color: #ffd700;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: block;
  white-space: nowrap;
}

/* Koltuk İçi Aksiyon Butonları */
.seat-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Otur Butonu - Kutu Genişliğinde, Renksiz Şeffafımsı Cam Efekti */
.btn-seat-sit {
  width: 100% !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.5px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

.btn-seat-sit:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-seat-sit:active {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: scale(0.98);
}

.btn-add-bot {
  display: none !important;
}

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

/* Rakip Oyuncu Süre Barı */
.seat-timer-bar {
  width: 100%;
  height: 5px;
  background: #140a05;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 3px;
  display: none;
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.seat.active-turn .seat-timer-bar {
  display: block;
}

.seat-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff9800);
  border-radius: 2px;
  transform: translateZ(0);
  will-change: width;
}

/* Masa İçi Atılan Taş Tablaları (Ceviz & Altın Çerçeveli Disk) */
.table-discard {
  position: absolute;
  width: 33px;
  height: 48px;
  box-sizing: border-box;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  background: rgba(18, 9, 4, 0.85);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 215, 0, 0.2);
  transition: transform 0.15s, border-color 0.15s;
}

.table-discard.has-tile,
.table-discard:has(.okey-tile) {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.discard-top {
  top: 14px;
  left: calc(50% - 265px);
}

.discard-right-player {
  top: 14px;
  left: auto;
  right: calc(50% - 265px);
}

.mini-discard-hint {
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.6);
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* ================== OKEY TAŞLARI (TILES) ================== */
.okey-tile {
  width: 32px;
  height: 46px;
  background: linear-gradient(135deg, #fffdfa 0%, #f6edd9 100%);
  border-radius: 5px;
  box-shadow: 1px 2px 3px var(--tile-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1.5px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
  contain: layout style;
  transform: translateZ(0);
}

.okey-tile:active {
  cursor: grabbing;
}

.okey-tile.selected {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 10px #ffd700;
  border: 2px solid #ffd700;
}

/* Ters Çevrilmiş Taş Görünümü - Düz Beyaz / Sade Melamin Sırtı */
.okey-tile.is-flipped {
  background: linear-gradient(135deg, #ffffff 0%, #f7f3ec 100%) !important;
  border: 1px solid #d4c5a9 !important;
  box-shadow: 1px 2px 3px var(--tile-shadow), inset 0 1px 1px #fff, inset 0 -1.5px 2px rgba(0, 0, 0, 0.15) !important;
}

.okey-tile.is-flipped .tile-number,
.okey-tile.is-flipped .tile-dot,
.okey-tile.is-flipped .fake-icon,
.okey-tile.is-flipped .fake-star-icon,
.okey-tile.is-flipped::after,
.okey-tile.is-flipped::before {
  display: none !important;
  content: none !important;
}

/* Sayılar Bir Tık Yukarıda */
.tile-number {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-3.5px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Çukur Efektli Nokta (Gömülü / Oyuk Çözünümü) */
.tile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 1px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.85), inset -1px -1px 1px rgba(255, 255, 255, 0.45), 0 1px 1px rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(0, 0, 0, 0.2);
}

.tile-red .tile-number { color: var(--color-red); }
.tile-red .tile-dot { background-color: var(--color-red); }

.tile-yellow .tile-number { color: var(--color-yellow); }
.tile-yellow .tile-dot { background-color: var(--color-yellow); }

.tile-blue .tile-number { color: var(--color-blue); }
.tile-blue .tile-dot { background-color: var(--color-blue); }

.tile-black .tile-number { color: var(--color-black); }
.tile-black .tile-dot { background-color: var(--color-black); }

.tile-fake {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tile-emblem {
  font-size: 21px;
  line-height: 1;
  transform: translateY(-2.5px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
  font-family: serif;
}

.tile-red .tile-emblem { color: var(--color-red); }
.tile-yellow .tile-emblem { color: var(--color-yellow); }
.tile-blue .tile-emblem { color: var(--color-blue); }
.tile-black .tile-emblem { color: var(--color-black); }

.tile-real-okey {
  position: relative;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.95), inset 0 0 5px rgba(255, 215, 0, 0.6) !important;
  border: 2px solid #ffd700 !important;
}

.tile-real-okey::after {
  content: '★';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 10px;
  line-height: 1;
  color: #e6a100;
  text-shadow: 0 0 3px rgba(255, 215, 0, 0.95);
  pointer-events: none;
  z-index: 5;
}

.tile-real-okey.tile-okey-glowing:not(.is-flipped) {
  box-shadow: 0 0 12px rgba(255, 215, 0, 1), 0 0 22px rgba(245, 158, 11, 0.7), inset 0 0 8px rgba(255, 215, 0, 0.8) !important;
  border: 2px solid #ffd700 !important;
  animation: pulseJokerGold 2.2s infinite ease-in-out;
}

@keyframes pulseJokerGold {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.95), 0 0 16px rgba(245, 158, 11, 0.5), inset 0 0 6px rgba(255, 215, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 1), 0 0 28px rgba(255, 215, 0, 0.85), inset 0 0 10px rgba(255, 215, 0, 0.9);
  }
}

.tile-real-okey.is-flipped {
  box-shadow: 1px 2px 3px var(--tile-shadow), inset 0 1px 1px #fff, inset 0 -1.5px 2px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #d4c5a9 !important;
}

.tile-real-okey.is-flipped::after {
  display: none !important;
  content: none !important;
}

.tile-dragging {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ================== ISTAKA VE YAN TABLALAR (EL YAPIMI CEVİZ & ALTIN RAY) ================== */
.bottom-rack-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 8, 4, 0.78) 25%, rgba(10, 5, 2, 0.96) 100%);
  padding: 2px 8px max(6px, env(safe-area-inset-bottom, 6px)) 8px;
  margin-bottom: 0;
  z-index: 40;
  flex-shrink: 0;
}

/* Kendi Profil Kartımız (Istakanın Tam Üstünde Ortalı) */
.seat-bottom {
  margin-bottom: 2px;
}

.seat-bottom .seat-player-card {
  background: linear-gradient(135deg, rgba(38, 20, 10, 0.96) 0%, rgba(20, 10, 5, 0.98) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 12px rgba(212, 175, 55, 0.35);
}

/* Kendi Sıra Süremiz Barı */
.rack-timer-bar {
  width: 100%;
  max-width: 530px;
  height: 5px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
  opacity: 0;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.rack-timer-bar.active {
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.rack-timer-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ff9800);
}

.rack-dock-wrapper {
  position: relative;
  width: auto;
  max-width: calc(100vw - 10px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}

.rack-center-wrapper {
  position: relative;
  width: 530px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Istaka Yan Butonları (El Yapımı Maun Ağacı & Kabartmalı Altın Yazılar) */
.sort-tile-btn {
  width: 36px;
  height: auto;
  align-self: stretch;
  box-sizing: border-box;
  background: linear-gradient(180deg, #4f2a17 0%, #361a0d 45%, #220e05 100%);
  border: 2px solid #824724;
  border-top: 2.5px solid #d4af37;
  border-bottom: 2.5px solid #140702;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 215, 0, 0.3), 0 0 8px rgba(212, 175, 55, 0.2);
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  flex-shrink: 0;
  padding: 4px 2px;
}

.sort-tile-btn:hover {
  border-color: #ffd700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 215, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: #fff8db;
}

.sort-tile-btn:active {
  transform: scale(0.96) translateY(1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
  background: linear-gradient(180deg, #2a1307 0%, #1a0802 100%);
}

.sort-tile-btn span {
  pointer-events: none;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(255, 215, 0, 0.4);
}

/* Istakaya Kenetlenmiş Yan Tablalar (Taş Al & Taş At) */
.docked-discard {
  position: absolute;
  bottom: calc(100% + 9px);
  width: 34px;
  height: 48px;
  box-sizing: border-box;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  z-index: 30;
}

/* Soldaki Taş Al Tablası (Zümrüt Yeşili & Altın Çerçeve) */
.docked-left {
  left: 0;
  background: linear-gradient(145deg, rgba(16, 44, 28, 0.9) 0%, rgba(8, 24, 15, 0.96) 100%);
  border: 1.5px solid rgba(74, 222, 128, 0.65);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(134, 239, 172, 0.3), 0 0 10px rgba(34, 197, 94, 0.3);
}

.docked-left .dock-hint {
  color: #86efac;
  font-size: 8px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Sağdaki Taş At Tablası (Yakut Kırmızısı & Altın Çerçeve) */
.docked-right {
  right: 0;
  background: linear-gradient(145deg, rgba(55, 20, 14, 0.9) 0%, rgba(30, 10, 6, 0.96) 100%);
  border: 1.5px solid rgba(248, 113, 113, 0.65);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(252, 165, 165, 0.3), 0 0 10px rgba(239, 68, 68, 0.3);
}

.docked-right .dock-hint {
  color: #fca5a5;
  font-size: 8px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(239, 68, 68, 0.6);
}

.docked-discard.has-tile,
.docked-discard:has(.okey-tile) {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.docked-discard.is-drawing-discard {
  border: 1.5px dashed rgba(255, 215, 0, 0.65) !important;
  background: rgba(20, 10, 5, 0.5) !important;
}

.docked-discard.drag-target-hover {
  transform: scale(1.12);
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.85), inset 0 0 8px rgba(255, 215, 0, 0.4);
}

.dock-hint {
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* 2 Sıralı Hakiki Ahşap Istaka (Ceviz Ağacı Dokusu, Altın Üst Ray & Carved Kanallar) */
.wooden-rack {
  width: 530px;
  max-width: 100%;
  flex-shrink: 0;
  background: linear-gradient(180deg, #512b16 0%, #381c0d 35%, #261107 75%, #180903 100%);
  border: 2px solid #783f1e;
  border-top: 2.5px solid #d4af37;
  border-bottom: 3px solid #140702;
  border-radius: 9px;
  padding: 3px 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(212, 175, 55, 0.2), inset 0 1px 1px rgba(255, 215, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rack-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(180deg, rgba(12, 5, 2, 0.88) 0%, rgba(22, 10, 4, 0.7) 100%);
  border-radius: 5px;
  padding: 1px 2px;
  min-height: 48px;
  gap: 1px; /* Birbirine yapışık taşlar */
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 -1px 1px rgba(255, 215, 0, 0.1);
}

.rack-slot {
  width: 33px;
  height: 47px;
  flex: 0 0 33px;
  border-radius: 4px;
  border: none !important;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rack-slot.drag-over {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.touch-drag-ghost,
.touch-drag-ghost * {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.touch-drag-ghost {
  position: fixed !important;
  z-index: 99999999 !important;
  transform: translate(-50%, -50%) rotate(var(--stage-rotation, 0deg)) scale(1.15) translateZ(0) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  border-radius: 6px !important;
  opacity: 0.96 !important;
  will-change: left, top, transform !important;
  backface-visibility: hidden !important;
}

.touch-drag-ghost.group-drag-ghost,
.group-drag-ghost {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: rotate(var(--stage-rotation, 0deg)) !important;
  transform-origin: 0 0 !important;
  filter: none !important;
}

.group-drag-ghost .okey-tile {
  margin: 0 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* ================== CANLI SOHBET ÇEKMECESİ ================== */
.chat-drawer {
  position: fixed;
  top: calc(40px + env(safe-area-inset-top, 0px));
  right: -420px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  width: calc(295px + env(safe-area-inset-right, 0px));
  max-width: 92vw;
  bottom: 0;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  background: rgba(25, 15, 10, 0.98);
  border-left: 2px solid var(--wood-trim);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), right 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  box-sizing: border-box;
  padding-right: max(14px, env(safe-area-inset-right, 0px));
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}

.chat-drawer.open {
  right: 0;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.btn-chat-header-report {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-chat-header-report:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  border-color: #ef4444;
}

/* Sohbet butonu okunmamış mesaj animasyonu */
#btn-chat-toggle.has-unread {
  position: relative;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

#btn-chat-toggle.has-unread::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1px solid #fff;
}

/* Canlı Masa İçi Sohbet Bildirim Hapı (Drawer kapalıyken bile anında görünür) */
.chat-floating-toast {
  position: absolute;
  top: calc(42px + max(4px, env(safe-area-inset-top)));
  left: 50%;
  transform: translateX(-50%) translateY(-25px) scale(0.9);
  background: rgba(30, 20, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  color: #fff;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: normal;
  word-break: break-word;
  max-width: 85vw;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-floating-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.chat-floating-toast .toast-sender {
  font-weight: 800;
  color: #ffd700;
  flex-shrink: 0;
}

.chat-floating-toast .toast-text {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobil sanal klavye açıldığında sohbet çekmecesinin davranışı */
.chat-drawer.keyboard-open {
  transition: none !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.9) !important;
  position: fixed !important;
  z-index: 99999 !important;
}

.chat-drawer.keyboard-open .quick-replies-grid {
  display: none !important;
}

.chat-drawer.keyboard-open .chat-messages {
  flex: 1 1 0px !important;
  min-height: 20px !important;
  padding: 4px 8px !important;
}

.chat-drawer.keyboard-open .chat-header {
  padding: 4px 10px !important;
  font-size: 11px !important;
  height: 26px !important;
  min-height: 26px !important;
}

.chat-drawer.keyboard-open .chat-input-area {
  padding: 4px 6px !important;
  background: #140903 !important;
  border-top: 2px solid #ffd700 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.9) !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 20 !important;
}

.chat-drawer.keyboard-open .chat-input-area input {
  padding: 4px 8px !important;
  font-size: 14px !important;
}

.chat-drawer.keyboard-open .chat-input-area button {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

.chat-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffd700;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1 1 0px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.chat-msg {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.chat-msg .sender {
  font-weight: bold;
  color: #ffd700;
  margin-right: 4px;
}

.chat-msg.quick-phrase {
  background: transparent;
  border-left: none;
  font-style: normal;
}

.quick-replies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.btn-quick {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0d0b8;
  padding: 5px;
  border-radius: 5px;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-input-area {
  padding: 8px 12px;
  padding-right: max(12px, calc(12px + env(safe-area-inset-right, 0px)));
  padding-bottom: max(8px, calc(8px + env(safe-area-inset-bottom, 0px)));
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.chat-input-area input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 6px;
  padding: 7px 10px;
  color: #fff;
  font-size: 15px; /* Mobil tarayıcılarda istenmeyen otomatik zoom'u engeller */
  outline: none;
  box-sizing: border-box;
}

.chat-input-area button {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  border: 1px solid #ffd700;
  color: #1a0e03;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.chat-input-area button:active {
  transform: scale(0.96);
}

/* ================== TUR BİTİŞ & CEZA MODALI ================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 94vh;
  overflow-y: auto;
  background: #cfb188;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  border: 4px solid #54391e;
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 10px 0 #3a2512, 0 18px 30px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: #3b200b;
}

.compact-end-card {
  max-width: 520px;
  background: #cfb188;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  border: 4px solid #54391e;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 10px 0 #3a2512, 0 18px 30px rgba(0, 0, 0, 0.7);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: #3b200b;
}

/* Çıkış Yap Butonu (Ayarlar Modalı İçi) */
.btn-settings-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 120, 120, 0.45);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-settings-logout:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.5);
}

.btn-settings-logout:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.95);
}

.compact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  text-align: left;
  border-bottom: 2px solid rgba(84, 57, 30, 0.2);
  padding-bottom: 8px;
}

.modal-titles-col {
  flex: 1;
  min-width: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #3b200b;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-subtitle {
  font-size: 12px;
  color: #6c4724;
  font-weight: 700;
  margin: 3px 0 0 0;
  line-height: 1.2;
}

.modal-card input[type="text"],
.modal-card input[type="password"],
.modal-card input[type="email"],
.modal-card select {
  background: #fbf5e6 !important;
  border: 3px solid #78532f !important;
  color: #2b1404 !important;
  border-radius: 12px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  height: 42px !important;
  padding: 0 12px !important;
  box-sizing: border-box;
  width: 100%;
}

.modal-card label {
  color: #3b200b;
  font-weight: 800;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

.modal-card .btn-primary {
  background: linear-gradient(180deg, #9fe81c 0%, #54bf0d 50%, #3ca004 100%) !important;
  border: 3px solid #245e03 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 2px #184102 !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.7), 0 4px 0 #1c4a02, 0 6px 10px rgba(0,0,0,0.3) !important;
  border-radius: 12px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  cursor: pointer;
}

.modal-card .btn-primary:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 1px 0 #1c4a02 !important;
}

.modal-card .btn-secondary {
  background: linear-gradient(180deg, #f7e0be 0%, #dab483 50%, #b88d57 100%) !important;
  border: 3px solid #573719 !important;
  color: #42250d !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.8), 0 4px 0 #3e220a, 0 6px 10px rgba(0,0,0,0.25) !important;
  border-radius: 12px !important;
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  cursor: pointer;
}

.modal-card .btn-secondary:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 1px 0 #3e220a !important;
}

.modal-countdown-box {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.45);
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 11px;
  color: #ffd700;
  white-space: nowrap;
  font-weight: bold;
  flex-shrink: 0;
}

.modal-countdown-box #countdown-seconds {
  font-size: 13px;
  color: #ffeb3b;
  font-weight: 900;
}

.modal-rounds-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 6px;
  padding-bottom: 2px;
}

.round-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  white-space: nowrap;
  flex-shrink: 0;
}

.round-chip.current {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.22);
  color: #ffd700;
  font-weight: bold;
}

.compact-penalty-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 11px;
}

.compact-penalty-table th, .compact-penalty-table td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}

.compact-penalty-table th {
  color: #ffd700;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.compact-penalty-table th:first-child, .compact-penalty-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.compact-penalty-table tr.winner-row {
  background: transparent;
}

.compact-penalty-table tr.my-row {
  background: rgba(255, 215, 0, 0.24) !important;
  border-left: 4px solid #ffd700 !important;
}

.compact-penalty-table tr.my-row td {
  color: #fff !important;
  font-weight: 800;
}

.score-cell-minus {
  color: #69f0ae;
  font-weight: 800;
}

.score-cell-penalty {
  color: #ff5252;
  font-weight: 800;
}

.score-cell-total {
  color: #fff;
  font-weight: 800;
}

/* Sıralama Rozetleri ve Ödül Stilleri */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 180, 0, 0.15) 100%);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.75);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.25) 0%, rgba(148, 163, 184, 0.15) 100%);
  color: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.65);
  box-shadow: 0 0 6px rgba(226, 232, 240, 0.2);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.3) 0%, rgba(180, 83, 9, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.25);
}

.rank-badge.rank-4 {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reward-cell-win {
  color: #ffd700 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.modal-footer-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

/* ================== ALT OYUNCU (SİZ) VE SOHBET BALONLARI ================== */
.seat-bottom {
  position: relative !important;
  margin: 0 auto 4px auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 25;
}

.seat-bottom .seat-player-card {
  border-radius: 8px;
  background: rgba(20, 10, 5, 0.94);
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  padding: 2px 12px;
}

.seat-anchor-wrapper {
  position: relative;
  display: inline-block;
}

/* Konuşma Balonları (Masada ilgili oyuncunun yanına açılan şık balonlar) */
.chat-speech-bubble {
  position: absolute;
  background: #ffffff;
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  width: max-content;
  max-width: 175px;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.12);
  animation: speechPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
  z-index: 999999;
}

/* Sağ koltuktan gelen konuşma balonu - Kartın solunda masaya doğru açılır, kuyruk sağa bakar */
.chat-speech-bubble.bubble-from-right::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* Sol koltuktan gelen konuşma balonu - Kartın sağında masaya doğru açılır, kuyruk sola bakar */
.chat-speech-bubble.bubble-from-left::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 6px 6px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}

/* Üst koltuktan gelen konuşma balonu - Kartın altında masaya doğru açılır, kuyruk yukarı bakar */
.chat-speech-bubble.bubble-from-top::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

/* Alt koltuktan gelen konuşma balonu - Kendi kartımızın üstünde açılır, kuyruk aşağı bakar */
.chat-speech-bubble.bubble-from-bottom::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

@keyframes speechPopIn {
  0% { transform: scale(0.6) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes speechFadeOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8) translateY(-6px); opacity: 0; }
}

/* Rakip / Oyuncu Taş Çekme / Atma Uçan Taş Animasyonu */
.flying-tile-animation {
  position: fixed;
  z-index: 99999;
  width: 32px;
  height: 46px;
  border-radius: 5px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Per Grubu Taşıma */
.rack-slot.group-selected {
  outline: none !important;
  background: transparent !important;
}

.rack-slot.group-selected .okey-tile {
  transform: none !important;
  filter: none !important;
}

/* ================== SKOR TABLOSU MODAL ================== */
.luxury-scoreboard-card {
  width: min(520px, 94vw);
  max-height: min(88vh, calc(100dvh - 30px));
}

.scoreboard-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 14px 8px 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.scoreboard-mode-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.3px;
}

.scoreboard-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.scoreboard-table-container {
  max-height: 52vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 14px 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(1, 15, 13, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.scoreboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.scoreboard-table th {
  padding: 6px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffd700;
  background: rgba(0, 24, 21, 0.9);
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  text-align: center;
  vertical-align: middle;
}

.scoreboard-table th:first-child {
  width: 60px;
  text-align: center;
  padding-left: 8px;
  border-top-left-radius: 8px;
}

.scoreboard-table th:last-child {
  border-top-right-radius: 8px;
}

.scoreboard-table td {
  padding: 6px 6px;
  font-size: 11px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.scoreboard-table td:first-child {
  text-align: center;
  padding-left: 8px;
  font-weight: 700;
  color: #cbd5e1;
}

.scoreboard-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.scoreboard-table th.my-col, .scoreboard-table td.my-col {
  background: rgba(255, 215, 0, 0.12) !important;
  color: #ffd700 !important;
  font-weight: 700;
}

.team-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
}

.team-title {
  font-weight: 800;
  color: #ffd700;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.team-member-name {
  font-weight: 500;
  color: #e2e8f0;
  font-size: 10px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
}

.player-header-box .you-tag {
  color: #ffd700;
  font-size: 9px;
  font-weight: 800;
}

.player-header-name {
  font-size: 10px;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-table tr.total-row td {
  padding: 8px 6px;
  background: rgba(212, 175, 55, 0.16) !important;
  border-top: 2px solid rgba(212, 175, 55, 0.55);
  border-bottom: none;
  font-weight: 800;
  font-size: 12px;
  color: #ffd700 !important;
}

.scoreboard-table tr.total-row td:first-child {
  border-bottom-left-radius: 8px;
  letter-spacing: 0.5px;
}

.scoreboard-table tr.total-row td:last-child {
  border-bottom-right-radius: 8px;
}

.score-cell-minus {
  color: #4ade80 !important;
  font-weight: 700;
}

.score-cell-penalty {
  color: #f87171 !important;
  font-weight: 700;
}

.score-cell-total {
  font-size: 12px;
  font-weight: 900;
  color: #ffd700 !important;
}

.luxury-scoreboard-card .luxury-modal-footer {
  padding: 0 22px 18px 22px;
  margin: 0;
  background: transparent;
  border-top: none;
}

/* ================== MOBİL DAR VE ALÇAK EKRAN UYARLAMALARI ================== */
@media (max-height: 500px) {
  .table-header {
    height: calc(33px + max(2px, env(safe-area-inset-top))) !important;
    padding-top: max(2px, env(safe-area-inset-top)) !important;
  }

  /* Karşı oyuncu kutusu üst menüden ferah duracak şekilde yerleştirilir */
  .seat-top {
    top: 7px !important;
  }

  .center-table-display {
    top: calc(50% + 14px) !important;
    gap: 10px !important;
  }

  /* Karşı oyuncunun sağ ve solundaki atılan taş tablaları üst menüye yapışmaz */
  .discard-top,
  .discard-right-player {
    top: 14px !important;
  }

  /* Masa Bekleme Paneli: Karşıdaki ile bizim kutunun tam ortasında, daralınca üsttekine yaklaşmayıp alta kayar */
  .table-waiting-panel {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 100 !important;
    pointer-events: none !important;
  }
  .waiting-panel-card {
    pointer-events: auto !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 8px 14px !important;
    max-width: 400px !important;
    width: 88% !important;
    max-height: calc(100vh - 60px) !important;
    margin: 0 !important;
    gap: 4px !important;
    border-radius: 12px !important;
    top: max(62px, calc(46vh - 65px));
    transition: top 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .waiting-panel-header {
    margin-bottom: 2px !important;
  }
  .waiting-title {
    font-size: 13px !important;
  }
  .waiting-room-code {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .waiting-panel-meta {
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }
  .waiting-players-status {
    padding: 4px 8px !important;
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }
  .waiting-panel-actions .btn-danger,
  .waiting-panel-actions .btn-primary {
    height: 32px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 4px 14px !important;
    min-width: 100px !important;
  }
}

@media (max-height: 390px) {
  .center-table-display {
    top: calc(50% + 16px) !important;
    transform: translate(-50%, -50%) scale(0.92) !important;
  }

  .table-waiting-panel {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 100 !important;
    pointer-events: none !important;
  }

  .seat-timer-bar {
    height: 4px !important;
    margin-top: 2px !important;
  }

  .waiting-panel-card {
    padding: 6px 12px !important;
    gap: 3px !important;
    top: max(56px, calc(46vh - 60px)) !important;
  }

  .table-discard {
    width: 30px !important;
    height: 43px !important;
  }
}

@media (max-width: 720px) {
  .discard-top {
    left: calc(50% - 220px) !important;
  }

  .discard-right-player {
    right: calc(50% - 220px) !important;
  }
}

/* =========================================================
   ÜYELİK, GİRİŞ & ARKADAŞLIK SİSTEMİ STİLLERİ
   ========================================================= */

/* Lobi Üst Barı */
.lobby-auth-bar, .lobby-profile-bar {
  width: 100%;
}

.btn-auth-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(184, 134, 11, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffd700;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-auth-open:hover {
  background: rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 2px 8px 2px 3px;
  border-radius: 16px;
}

.user-avatar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #1e1104;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-display-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status-text {
  font-size: 8.5px;
  color: #81c784;
  font-weight: 600;
}

.btn-friends-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffd700;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.friend-count-bubble {
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1;
}

.btn-logout {
  color: #ef5350 !important;
  border-color: rgba(239, 83, 80, 0.3) !important;
  font-size: 10px !important;
  padding: 4px 7px !important;
}

/* Auth Modalı */
.auth-modal-card {
  max-width: 380px !important;
  width: 92% !important;
}

/* Sosyal Giriş Butonları */
.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  user-select: none;
}

.btn-social:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-social:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.btn-google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
}

.btn-facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: #166fe5;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 12px;
  color: #a08c75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-divider span {
  padding: 0 8px;
}

.btn-guest-opt {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e0e0e0 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-guest-opt:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffd700 !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a08c75;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab.active {
  color: #ffd700;
  border-bottom-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}

.auth-form input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.auth-error-msg {
  background: rgba(211, 47, 47, 0.25);
  border: 1px solid #ef5350;
  color: #ffcdd2;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 6px;
  text-align: center;
}

/* Arkadaşlar Modalı */
.friends-modal-card {
  max-width: 440px !important;
  width: 94% !important;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.friends-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.friends-nav-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.friends-nav-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  color: #ffd700;
}

.tab-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #ffd700;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
}

.friends-tab-pane {
  flex: 1;
  overflow-y: auto;
  max-height: 48vh;
  min-height: 120px;
}

.friends-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
}

.friend-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.friend-status-dot.online {
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
}

.friend-status-dot.offline {
  background: #757575;
}

.friend-name-col {
  display: flex;
  flex-direction: column;
}

.friend-item-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.friend-item-sub {
  font-size: 9.5px;
  color: #ffd700;
}

.friend-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-action-small {
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-invite-friend {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  border: 1px solid #81c784;
}

.btn-dm-friend {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.btn-remove-friend {
  background: rgba(211, 47, 47, 0.2);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.4);
  padding: 3px 6px;
}

.friends-empty-box {
  text-align: center;
  padding: 24px 10px;
  color: #ccc;
  font-size: 12px;
}

.add-friend-box input {
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}

/* DM (Özel Sohbet) Modalı */
.dm-modal-card {
  max-width: 380px !important;
  width: 92% !important;
  height: 400px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.dm-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  margin: 6px 0;
}

.dm-bubble {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.dm-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.dm-bubble.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-bottom-left-radius: 2px;
}

.dm-time {
  font-size: 8px;
  opacity: 0.7;
  display: block;
  text-align: right;
  margin-top: 2px;
}

.dm-input-bar {
  display: flex;
  gap: 6px;
}

.dm-input-bar input {
  flex: 1;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}

/* Masa Daveti Pop-up Banner */
.invite-banner {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  background: linear-gradient(135deg, rgba(20, 10, 5, 0.98), rgba(35, 18, 10, 0.98));
  border: 1.5px solid #ffd700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDownInvite 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownInvite {
  0% { transform: translate(-50%, -40px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

.invite-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-avatar {
  font-size: 20px;
}

.invite-text-col {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.invite-text-col strong {
  color: #ffd700;
}

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

/* =========================================================
   EKRAN 1: GİRİŞ & KARŞILAMA KAPISI (PERİŞAN KIRAATHANESİ)
   ========================================================= */
.auth-gate-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #060e18 url('../images/menu/okey_masasi_bogaz_arkaplan.png?v=28.0') no-repeat center bottom / cover;
  overflow: hidden;
  z-index: 100;
  box-sizing: border-box;
  user-select: none;
}

.auth-gate-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

.auth-gate-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vh, 22px);
  margin: auto;
  box-sizing: border-box;
  padding: clamp(8px, 1.8vh, 16px);
}

/* Üstteki Perişan Okey 3D Logo (Çift Tıklama / Çift Dokunma ile Tam Ekran) */
.auth-gate-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.auth-gate-logo-img {
  width: auto;
  height: clamp(82px, 26vh, 165px);
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9));
  animation: gateLogoFloat 4s ease-in-out infinite;
  display: block;
  pointer-events: auto !important;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.auth-gate-logo-wrap:hover .auth-gate-logo-img {
  filter: drop-shadow(0 10px 28px rgba(212, 175, 55, 0.55)) brightness(1.05);
}

.auth-gate-logo-wrap:active .auth-gate-logo-img {
  transform: scale(0.97);
}

.auth-gate-logo-wrap.logo-fullscreen-pulsing .auth-gate-logo-img {
  animation: gateLogoPulse 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes gateLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes gateLogoPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px #ffd700); }
  50% { transform: scale(1.09); filter: drop-shadow(0 0 35px #ffd700) brightness(1.2); }
  100% { transform: scale(1); filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9)); }
}


/* 3 Giriş Butonu Grubu (Facebook, Google, Misafir) */
.auth-gate-buttons-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.8vh, 13px);
  width: 100%;
}

.auth-gate-btn-wrap {
  position: relative;
  display: block;
  height: clamp(42px, 10.5vh, 56px);
  width: calc(clamp(42px, 10.5vh, 56px) * 822 / 176);
  max-width: 88vw;
  margin: 0 auto;
  flex-shrink: 0;
}

.auth-gate-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), filter 0.15s ease;
  -webkit-tap-highlight-color: transparent !important;
}

.auth-gate-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12);
}

.auth-gate-btn:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.auth-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}

/* Google Butonunun Şeffaf Kenar Payını Eşitle (FB ve Misafir ile Birebir Aynı Boyuta Getir) */
.btn-auth-google .auth-btn-img {
  transform: scale(1.07);
}

/* Son Giriş Yapılan Hesap Vurgulama Baloncuğu */
.gate-last-login-bubble {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(28, 22, 14, 0.96), rgba(16, 12, 8, 0.98));
  border: 1.5px solid #d4af37;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  white-space: nowrap;
  z-index: 60;
  display: flex;
  align-items: center;
  animation: gateBubbleFloat 2.2s ease-in-out infinite;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gate-last-login-bubble:hover {
  border-color: #ffe066;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 215, 0, 0.5);
}

.gate-last-login-bubble .bubble-arrow {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #d4af37;
}

.gate-last-login-bubble .bubble-arrow::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid rgba(28, 22, 14, 0.98);
}

.gate-last-login-bubble .bubble-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.gate-last-login-bubble .bubble-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.3;
}

.gate-last-login-bubble .bubble-user {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.gate-last-login-bubble .bubble-hint {
  font-size: 10px;
  color: #c0b09d;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes gateBubbleFloat {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(4px);
  }
}

@media (max-width: 680px) {
  .auth-gate-btn-wrap {
    height: clamp(36px, 8.5vh, 46px);
    width: calc(clamp(36px, 8.5vh, 46px) * 822 / 176);
  }
  .gate-last-login-bubble {
    left: calc(100% + 6px);
    padding: 4px 8px;
  }
  .gate-last-login-bubble .bubble-user {
    max-width: 100px;
    font-size: 11px;
  }
  .gate-last-login-bubble .bubble-hint {
    font-size: 8.5px;
  }
}

@media (max-width: 480px) {
  .auth-gate-btn-wrap {
    height: clamp(32px, 7.5vh, 40px);
    width: calc(clamp(32px, 7.5vh, 40px) * 822 / 176);
  }
  .gate-last-login-bubble {
    left: calc(100% + 5px);
    padding: 3px 6px;
  }
  .gate-last-login-bubble .bubble-tag {
    font-size: 8px;
    padding: 1px 3px;
  }
  .gate-last-login-bubble .bubble-user {
    max-width: 78px;
    font-size: 10px;
  }
  .gate-last-login-bubble .bubble-hint {
    font-size: 7.5px;
  }
}

/* =========================================================
   YASAL POLİTİKALAR VE SÖZLEŞME ONAY MODALI (LÜKS MAHOGANY)
   ========================================================= */
.policy-consent-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10030 !important;
  padding: 12px 10px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

#modal-legal {
  z-index: 10060 !important;
}

.policy-consent-overlay.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.policy-consent-card {
  position: relative;
  max-width: 520px;
  width: min(520px, 95vw);
  max-height: min(94vh, calc(100dvh - 20px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  margin: auto !important;
  padding: clamp(14px, 2.5vh, 22px) clamp(14px, 3vw, 22px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(10px, 1.8vh, 16px) !important;
  background: linear-gradient(165deg, #24160e 0%, #160d08 60%, #0d0704 100%) !important;
  border: 1.5px solid #d4af37 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 28px rgba(212, 175, 55, 0.28) !important;
  box-sizing: border-box !important;
  animation: zoomInProfile 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  scrollbar-width: thin;
  scrollbar-color: #d4af37 rgba(0, 0, 0, 0.4);
}

.policy-consent-card::-webkit-scrollbar {
  width: 6px;
}

.policy-consent-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.policy-consent-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #aa8010);
  border-radius: 4px;
}

.policy-consent-card .compact-modal-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  padding-bottom: 14px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

.policy-consent-card .modal-titles-col {
  text-align: center !important;
  width: 100% !important;
}

.policy-consent-card .modal-title {
  color: #ffd700 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1.3 !important;
  letter-spacing: 0.4px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 215, 0, 0.45) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  margin: 0 0 6px 0 !important;
}

.policy-consent-card .modal-subtitle {
  color: #fbf5e8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: center !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  opacity: 0.95 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.policy-consent-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.policy-consent-box {
  background: rgba(14, 9, 6, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.policy-consent-text {
  font-size: 13px;
  line-height: 1.55;
  color: #f6efe4;
  text-align: center;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.policy-consent-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-policy-doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.06) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffe066;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.btn-policy-doc-link:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0.16) 100%);
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.policy-doc-arrow {
  font-size: 18px;
  line-height: 1;
  color: #ffd700;
  font-weight: bold;
}

.policy-consent-check-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.10);
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin: 0;
}

.policy-consent-check-row:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(255, 215, 0, 0.65);
}

.custom-gold-checkbox {
  accent-color: #ffd700;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.policy-consent-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  text-align: left;
  margin: 0;
}

.policy-consent-label span {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-consent-error {
  font-size: 12px;
  font-weight: 700;
  color: #ff7675;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.policy-consent-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.btn-policy-cancel,
.btn-policy-confirm {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 220px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.22s ease;
  box-sizing: border-box;
  letter-spacing: 0.3px;
}

.btn-policy-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: #f0e6d6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-policy-cancel:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(212, 175, 55, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-policy-confirm {
  background: linear-gradient(180deg, #ffd700 0%, #d4af37 50%, #aa8010 100%);
  border: 1.5px solid #ffe880;
  color: #1a0f07;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-policy-confirm:hover {
  background: linear-gradient(180deg, #ffe066 0%, #e5bd3b 50%, #c49615 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
  color: #000000;
}

/* Mobil Yatay Mod (Android / Landscape) Kompakt Gizlilik Modalı Optimizasyonu */
@media (max-height: 520px) {
  .policy-consent-card {
    padding: 10px 14px !important;
    gap: 8px !important;
    max-height: calc(100dvh - 12px) !important;
  }
  .policy-consent-card .compact-modal-header {
    padding-bottom: 6px !important;
    margin-bottom: 2px !important;
  }
  .policy-consent-card .modal-title {
    font-size: 16px !important;
    margin-bottom: 2px !important;
  }
  .policy-consent-card .modal-subtitle {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .policy-consent-body {
    gap: 8px !important;
  }
  .policy-consent-box {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .policy-consent-text {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }
  .btn-policy-doc-link {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .policy-consent-check-row {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .policy-consent-label {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }
  .custom-gold-checkbox {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }
  .policy-consent-footer {
    margin-top: 2px !important;
    padding-top: 2px !important;
    gap: 10px !important;
  }
  .btn-policy-cancel,
  .btn-policy-confirm {
    height: 38px !important;
    font-size: 12.5px !important;
    padding: 0 10px !important;
  }
}

/* =========================================================
   PERİŞAN BİREBİR OYUN PANELİ & BUTONLARI (3D VEKTÖREL)
   ========================================================= */
.perisan-ui-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  box-sizing: border-box;
}

/* ANA PANEL (ESKİTME AHŞAP & KARTON GÖRÜNÜMÜ - RAHAT VE BASIK OLMAYAN) */
.perisan-modal {
  position: relative;
  width: 100%;
  max-width: min(420px, 94vw);
  background: #cfb188;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.12) 0%, transparent 35%);
  border: 4px solid #54391e;
  border-radius: 20px;
  box-shadow: 
    0 10px 0 #3a2512,
    0 18px 25px rgba(0, 0, 0, 0.6),
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  padding: 20px 20px 24px;
  box-sizing: border-box;
}

/* ÜST SEKMELER */
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-top: -34px;
  margin-bottom: 16px;
  padding-left: 10px;
}

.tab-btn {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 8px 22px;
  border: 3.5px solid #54391e;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  transition: all 0.1s ease;
}

.tab-btn.active {
  background: #cfb188;
  color: #3b200b;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.45);
}

.tab-btn:not(.active) {
  background: #8e6c49;
  color: #432b17;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.25);
}

/* GİRİŞ KUTULARI (İÇE GÖMÜK / OYUNTULU) */
.input-wrap {
  margin-bottom: 12px;
}

.game-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 16px; /* 16px mobilde otomatik zoom yapmayı önler */
  font-weight: 800;
  color: #2b1404 !important;
  -webkit-text-fill-color: #2b1404 !important;
  background: #fbf5e6;
  border: 3px solid #78532f;
  border-radius: 12px;
  box-sizing: border-box;
  outline: none;
  caret-color: #d97706;
  line-height: normal;
  box-shadow: 
    inset 0 4px 6px rgba(45, 25, 8, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-input::placeholder {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: #8c6f52;
  font-weight: 700;
  opacity: 0.9;
}

.game-input:focus {
  background: #ffffff !important;
  border-color: #d97706;
  box-shadow: 
    inset 0 2px 4px rgba(45, 25, 8, 0.2),
    0 0 10px rgba(217, 119, 6, 0.5);
}

/* Şifre Alanı Yazı Tipi & Karakter Bozulması Önleme */
.game-input[type="password"] {
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  letter-spacing: 1.5px;
  font-size: 16px;
  font-weight: 700;
}

.game-input[type="password"]::placeholder {
  font-family: 'Fredoka', 'Nunito', sans-serif !important;
  letter-spacing: normal;
  font-weight: 700;
  font-size: 15px;
  color: #8c6f52;
}

.forgot-pass {
  display: block;
  text-align: right;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #40230b;
  text-decoration: none;
  margin: 0 4px 12px 0;
}

.forgot-pass:hover {
  text-decoration: underline;
}

/* Hata mesajı hapı */
.tablet-error-pill {
  background: rgba(185, 28, 28, 0.18);
  border: 2px solid #dc2626;
  color: #7f1d1d;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* BUTONLAR (ORTAK 3D OYUN FORMATI) */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.btn-game {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 10px 12px;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* GİRİŞ YAP (YEŞİL BUTON) */
.btn-green {
  background: linear-gradient(180deg, #9fe81c 0%, #54bf0d 50%, #3ca004 100%);
  border: 3px solid #245e03;
  color: #ffffff;
  text-shadow: 0 2px 2px #184102;
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    0 5px 0 #1c4a02,
    0 8px 10px rgba(0, 0, 0, 0.35);
}

.btn-green:active {
  transform: translateY(4px);
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    0 1px 0 #1c4a02,
    0 3px 5px rgba(0, 0, 0, 0.3);
}

/* ÜYE OL / MİSAFİR (AHŞAP/BEJ BUTON) */
.btn-wood {
  background: linear-gradient(180deg, #f7e0be 0%, #dab483 50%, #b88d57 100%);
  border: 3px solid #573719;
  color: #42250d;
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.8),
    0 5px 0 #3e220a,
    0 8px 10px rgba(0, 0, 0, 0.3);
}

.btn-wood:active {
  transform: translateY(4px);
  box-shadow: 
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    0 1px 0 #3e220a,
    0 3px 5px rgba(0, 0, 0, 0.3);
}

/* SOSYAL MEDYA BUTONLARI */
.social-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-social {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
  box-sizing: border-box;
  width: 100%;
}

.btn-social .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

.btn-google {
  background: linear-gradient(180deg, #ffffff 0%, #f1ebe1 100%);
  border: 2.5px solid #6c4f34;
  color: #40230b;
  box-shadow: 0 4px 0 #4a3420, 0 6px 8px rgba(0,0,0,0.2);
}

.btn-social:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 currentColor;
}

/* =========================================================
   MOBİL YAZI ALANI & SANAL KLAVYE YÜKSELME (KEYBOARD ELEVATION)
   ========================================================= */
.mobile-keyboard-up .auth-gate-screen {
  align-items: flex-start !important;
  padding-top: max(6px, env(safe-area-inset-top));
}

.mobile-keyboard-up .gate-logo-container {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-bottom: 0 !important;
  transform: scale(0.6);
  pointer-events: none;
}

.mobile-keyboard-up .auth-gate-wrapper {
  transform: translateY(-12px);
}

/* Kısa Ekranlar / Yatay Telefon (Height <= 540px) - Rahat ve Basık Olmayan Boyutlandırma */
@media (max-height: 540px) {
  .auth-gate-screen {
    padding: 8px;
    align-items: center;
  }
  .gate-logo-container {
    margin-bottom: 0;
  }
  .gate-logo-image {
    max-height: 62px;
    width: auto;
  }
  .perisan-modal {
    padding: 16px 18px 20px;
    max-width: 400px;
  }
  .modal-tabs {
    margin-top: -26px;
    margin-bottom: 12px;
  }
  .tab-btn {
    padding: 6px 18px;
    font-size: 0.98rem;
  }
  .input-wrap {
    margin-bottom: 10px;
  }
  .game-input {
    height: 42px;
    font-size: 15px;
  }
  .action-buttons {
    margin-bottom: 10px;
    gap: 10px;
  }
  .btn-game {
    height: 42px;
    padding: 8px 10px;
    font-size: 0.98rem;
  }
  .btn-social {
    height: 40px;
  }
}

/* =========================================================
   EKRAN 2: OYUN ANA MENÜSÜ & LOBİ (LÜKS SALON PNG ASSET TEMASI)
   ========================================================= */
.main-menu-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #080402;
  z-index: 90;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
}

.menu-luxury-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #060e18 url('../images/menu/okey_masasi_bogaz_arkaplan.png?v=28.0') no-repeat center bottom / cover;
  user-select: none;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  box-sizing: border-box;
}

/* SARI ÇERÇEVE VE OUTLINE TAMAMEN KALDIRILDI */
.menu-luxury-stage,
.menu-luxury-stage * {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-sizing: border-box;
}

.menu-luxury-stage button,
.menu-luxury-stage [role="button"] {
  background: transparent;
  border: none !important;
  outline: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  display: block;
  transition: transform 0.14s cubic-bezier(0.2, 0, 0, 1), filter 0.14s ease;
}

.menu-luxury-stage button:hover,
.menu-luxury-stage [role="button"]:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
}

.menu-luxury-stage button:active,
.menu-luxury-stage [role="button"]:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.menu-luxury-stage button:focus,
.menu-luxury-stage button:focus-visible,
.menu-luxury-stage [role="button"]:focus,
.menu-luxury-stage [role="button"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Ultra Geniş Panoramik Arka Plan (Ön Planda z-index: 2, Saydam Açıklıktan Canlı Deniz Görünür) */
.menu-luxury-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  z-index: 2;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.menu-luxury-art.game-table-bg {
  z-index: 1 !important;
}

.menu-png-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

/* 1. SOL ÜST: PROFİL KARTI (Büyütüldü, kullanıcı adı sağa çekildi, 778x196 yüksek çözünürlük) */
.menu-png-profile {
  position: absolute;
  left: max(6px, env(safe-area-inset-left, 6px));
  top: max(6px, env(safe-area-inset-top, 6px));
  height: clamp(48px, 13vh, 70px);
  width: auto;
  aspect-ratio: 389 / 98;
  z-index: 30;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.menu-png-profile:hover {
  transform: scale(1.025);
  filter: brightness(1.12);
}

.menu-png-profile:active {
  transform: scale(0.98);
}

.menu-profile-avatar {
  position: absolute;
  left: 2.2%;
  top: 4%;
  height: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #26150c;
  color: #ffd700;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(14px, 2.5vh, 20px);
  z-index: 2;
  pointer-events: none;
}

.menu-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.menu-profile-details {
  position: absolute;
  left: 33%;
  top: 8%;
  right: 6%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
  text-align: left;
}

.menu-profile-name {
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 2.2vh, 17px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-level-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-profile-level {
  color: #ffd700;
  font-size: clamp(10px, 1.5vh, 13px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.menu-profile-track {
  width: clamp(55px, 8vw, 95px);
  height: 6px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  overflow: hidden;
  border: 0.6px solid #8e622b;
}

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

/* 2. SAĞ ÜST: BAKİYELER VE BUTONLAR (Elmasa göre eşit yükseklikte, net yüksek çözünürlük) */
.menu-top-right-group {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 8px));
  right: max(10px, env(safe-area-inset-right, 10px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.9vw, 12px);
  z-index: 20;
}

/* Bakiye Alanları (Altın ve Elmas - Altın yanlara uzatıldı, ikisi çok az yukarı kaydırıldı) */
.menu-png-pill {
  position: relative;
  height: clamp(34px, 8.8vh, 48px);
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateY(-4px); /* çok az yukarı kaydırıldı */
}

.menu-png-gold {
  aspect-ratio: 566 / 122; /* yanlara doğru uzatıldı */
}

.menu-png-diamond {
  aspect-ratio: 492 / 122;
}

.menu-png-pill .menu-png-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.menu-pill-text {
  position: absolute;
  left: 22%;
  right: 18%;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(12px, 2.2vh, 16px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.3px;
}

.menu-pill-plus-hit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 22%;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  border-radius: 0 12px 12px 0;
  border: none !important;
  outline: none !important;
}

/* Sağ Üst Aksiyon Butonları (Hediye, Mesaj, Ayarlar) */
.menu-top-right-group .menu-png-btn {
  position: relative;
  height: clamp(34px, 8.8vh, 48px);
  width: auto;
  aspect-ratio: 1.32 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-top-right-group .menu-png-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stage-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #2a1810;
}

/* 3. SOL DİKEY MENÜ BUTONLARI (Kaydırılan mesafenin yarısı kadar sağa çekildi) */
.menu-left-sidebar {
  position: absolute;
  left: max(3px, calc(env(safe-area-inset-left, 0px) * 0.5 + 3px));
  top: 51%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.5vh, 10px);
  z-index: 15;
}

.menu-left-sidebar .menu-png-btn {
  position: relative;
  height: clamp(46px, 12vh, 66px);
  width: auto;
  aspect-ratio: 1.18 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-left-sidebar .menu-png-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 4. ORTA ÜST: PERİŞAN OKEY LOGOSU (Çift Tıklama / Çift Dokunma ile Tam Ekran) */
.menu-png-logo {
  position: absolute;
  left: 50%;
  top: clamp(60px, 17vh, 92px);
  transform: translateX(-50%);
  height: clamp(84px, 27vh, 150px);
  width: auto;
  aspect-ratio: 1.75 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 15;
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.menu-png-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9));
  display: block;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: filter 0.25s ease, transform 0.2s ease;
}

.menu-png-logo:hover img {
  filter: drop-shadow(0 6px 22px rgba(212, 175, 55, 0.6)) brightness(1.05);
}

.menu-png-logo:active img {
  transform: scale(0.97);
}

.menu-png-logo.logo-fullscreen-pulsing img {
  animation: menuLogoPulse 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes menuLogoPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px #ffd700); }
  50% { transform: scale(1.09); filter: drop-shadow(0 0 35px #ffd700) brightness(1.2); }
  100% { transform: scale(1); filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9)); }
}

/* 5. ORTA 3 ANA AKSİYON KARTI (Bir tık büyütüldü, masa çuhasına ve ıstaka hizasına oturtuldu) */
.menu-action-cards-group {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  z-index: 12;
  pointer-events: auto;
  width: max-content;
  max-width: 90vw;
}

.menu-action-cards-group .menu-png-card {
  position: relative;
  height: clamp(70px, 23.5vh, 132px);
  width: auto;
  aspect-ratio: 1.63 / 1;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}

.menu-action-cards-group .menu-png-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 6. ALT ÇUBUK: SOHBET & BONUS (Büyütüldü ve kenarlara hizalandı) */
.menu-btn-sohbet {
  position: absolute;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  left: max(8px, env(safe-area-inset-left, 8px));
  height: clamp(35px, 8.8vh, 50px);
  width: auto;
  aspect-ratio: 582 / 74;
  z-index: 15;
}

.menu-btn-sohbet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-btn-bonus {
  position: absolute;
  bottom: max(8px, env(safe-area-inset-bottom, 8px));
  right: max(10px, env(safe-area-inset-right, 10px));
  height: clamp(45px, 13.5vh, 76px);
  width: auto;
  aspect-ratio: 401 / 141;
  z-index: 15;
  border-radius: 16px;
  overflow: hidden;
}

.menu-btn-bonus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Sağdan Kayan Arkadaşlar Modalı (Drawer) */
#modal-friends.drawer-right {
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px);
}

#modal-friends.drawer-right .friends-modal-card {
  height: 100% !important;
  max-height: 100vh !important;
  border-radius: 20px 0 0 20px !important;
  width: min(390px, 92vw) !important;
  margin: 0 !important;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.75);
  animation: slideInFromRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Sohbet Drawer'ının Ana Menü Üstünde Görünür Olması */
.chat-drawer {
  z-index: 200 !important;
}

/* =========================================================
   MASA LİSTESİ / SALONLAR MODAL STİLLERİ
   ========================================================= */
.table-browser-card {
  max-width: 540px;
  width: 95%;
}

.table-browser-items-box {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-right: 4px;
}

.table-browser-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}

.table-browser-item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
}

.table-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-item-badge {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.table-item-details {
  display: flex;
  flex-direction: column;
}

.table-item-host {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.table-item-meta {
  font-size: 11px;
  color: #dfcca8;
}

.table-browser-empty-box {
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-top: 10px;
}

/* =========================================================
   SOSYAL GİRİŞ (GOOGLE & FB) API REHBERİ MODALI
   ========================================================= */
/* =========================================================
   MASA ORTASI BEKLEME & YÖNETİM PANELİ (WAITING PANEL)
   ========================================================= */
.table-waiting-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  box-sizing: border-box;
}

.waiting-panel-card {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(28, 14, 7, 0.96) 0%, rgba(14, 7, 3, 0.98) 100%);
  border: 1.8px solid #d4af37;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9), 0 0 24px rgba(212, 175, 55, 0.35), inset 0 1px 1px rgba(255, 215, 0, 0.35);
  padding: 10px 18px;
  text-align: center;
  width: 90%;
  max-width: 430px;
  max-height: calc(100vh - 75px);
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  top: max(74px, calc(46vh - 70px));
  transition: top 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.waiting-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.waiting-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
  margin: 0;
}

.waiting-room-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.waiting-panel-meta {
  font-size: 11px;
  color: #dfcca8;
  margin-bottom: 6px;
}

.waiting-players-status {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #a3e635;
  margin-bottom: 10px;
}

.waiting-panel-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.waiting-panel-actions .btn-danger,
.waiting-panel-actions .btn-primary {
  flex: 1 1 0;
  width: auto;
  min-width: 105px;
  height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}

/* =========================================================
   MASA MENÜSÜ DROPDOWN (AÇILIR KAPANIR MENÜ)
   ========================================================= */
.table-menu-dropdown-wrapper {
  position: relative;
  display: inline-block;
  z-index: 100;
}

/* Sohbet ve Menü Butonları Birebir Aynı Boyut ve Tasarım */
#btn-chat-toggle,
.btn-table-menu,
#btn-table-menu-toggle {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 215, 0, 0.35) !important;
  color: #ffd700 !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  height: 28px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

#btn-chat-toggle:hover,
.btn-table-menu:hover,
#btn-table-menu-toggle:hover {
  background: rgba(255, 215, 0, 0.18) !important;
  border-color: #ffd700 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45) !important;
  transform: translateY(-1px) !important;
}

.table-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: linear-gradient(180deg, rgba(28, 18, 12, 0.98) 0%, rgba(14, 8, 4, 0.99) 100%);
  border: 1.5px solid #b8860b;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(184, 134, 11, 0.25);
  min-width: 160px;
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(12px);
}

.dropdown-item {
  background: none;
  border: none;
  color: #f0e6d2;
  text-align: left;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
}

.dropdown-item:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

.dropdown-item-danger {
  color: #f87171;
}

.dropdown-item-danger:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 215, 0, 0.2);
  margin: 4px 6px;
}

/* =========================================================
   LÜKS PROFİL EKRANI (REFERANS GÖRSELİNE BİREBİR UYUMLU)
   ========================================================= */
.luxury-profile-overlay {
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
  padding-left: max(22px, env(safe-area-inset-left, 22px)) !important;
  padding-right: max(22px, env(safe-area-inset-right, 22px)) !important;
  box-sizing: border-box;
  overflow-y: auto;
}

.luxury-profile-card {
  position: relative;
  width: min(860px, 100%) !important;
  max-width: min(880px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 36px)) !important;
  max-height: min(92vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)) !important;
  margin: auto;
  background: radial-gradient(ellipse at 50% 25%, #08322e 0%, #031715 65%, #020c0b 100%) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 18px !important;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.95), 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 25px rgba(0, 20, 18, 0.9) !important;
  padding: 0 !important;
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
  animation: zoomInProfile 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes zoomInProfile {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Altın Köşe Detayları */
.gold-corner-tl, .gold-corner-tr, .gold-corner-bl, .gold-corner-br {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 50;
}
.gold-corner-tl { top: 3px; left: 3px; border-top: 2.5px solid #ffd700; border-left: 2.5px solid #ffd700; border-top-left-radius: 6px; }
.gold-corner-tr { top: 3px; right: 3px; border-top: 2.5px solid #ffd700; border-right: 2.5px solid #ffd700; border-top-right-radius: 6px; }
.gold-corner-bl { bottom: 3px; left: 3px; border-bottom: 2.5px solid #ffd700; border-left: 2.5px solid #ffd700; border-bottom-left-radius: 6px; }
.gold-corner-br { bottom: 3px; right: 3px; border-bottom: 2.5px solid #ffd700; border-right: 2.5px solid #ffd700; border-bottom-right-radius: 6px; }

/* Başlık Çubuğu */
.luxury-profile-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(12px, 2vh, 16px) clamp(16px, 2.8vw, 24px) 10px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-sizing: border-box;
}

.luxury-profile-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.luxury-profile-header-title h2 {
  margin: 0;
  font-size: clamp(18px, 3.2vh, 22px);
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.5px;
}

.luxury-profile-close-btn {
  position: absolute;
  right: clamp(16px, 2.8vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%);
  border: 2px solid #ffd700;
  color: #ffd700;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
}
.luxury-profile-close-btn:hover {
  transform: translateY(-50%) scale(1.08);
  filter: brightness(1.2);
}

/* İki Kolonlu Gövde: Genişletilmiş ve Ferah */
.luxury-profile-body {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: start;
  padding: clamp(14px, 2.2vh, 20px) clamp(16px, 2.8vw, 24px);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 660px) {
  .luxury-profile-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* SOL KOLON */
.luxury-profile-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Altın Halka Avatar */
.luxury-avatar-wrapper {
  position: relative;
  width: clamp(105px, 15vw, 130px);
  height: clamp(105px, 15vw, 130px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.luxury-avatar-gold-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #ffd700, #b8860b 40%, #fff2a3 70%, #7e5a0e 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.luxury-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #09201c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 900;
  border: 1.5px solid #000;
}

.luxury-avatar-inner img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.luxury-avatar-cam-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: 2px solid #0d0602;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease;
}
.luxury-avatar-cam-badge:hover {
  transform: scale(1.12);
}

.spin-refresh {
  animation: spinRefreshAnim 0.7s ease-in-out;
}
@keyframes spinRefreshAnim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Seviye Çubuğu */
.luxury-level-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 250px;
}

.luxury-level-shield {
  width: 32px;
  height: 32px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  border: 1.5px solid #ffd700;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px #000;
  flex-shrink: 0;
}

.luxury-level-track {
  flex: 1;
  height: 20px;
  background: rgba(0, 0, 0, 0.75);
  border: 1.2px solid #2563eb;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.luxury-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  border-radius: 8px;
  transition: width 0.3s ease;
}

.luxury-level-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* İsim Kutusu (Google'dan Çekilen Gerçek Ad Soyad) */
.luxury-name-pill {
  width: 100%;
  max-width: 250px;
  background: #041f1c;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.luxury-name-text {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: 0.4px;
}

/* İsim Görüntüleme Seçici (Yüksek Kontrast & Belirginlik) */
.luxury-name-format-wrapper {
  width: 100%;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.luxury-name-format-label {
  font-size: 13px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.5px;
  text-align: left;
}

.luxury-select-custom-box {
  position: relative;
  width: 100%;
}

.luxury-name-format-select {
  width: 100%;
  background: #041d1a;
  border: 1.8px solid #d4af37;
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.luxury-name-format-select option {
  background: #031815;
  color: #ffffff;
  font-weight: 700;
  padding: 8px;
}

.select-gold-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-size: 11px;
  pointer-events: none;
}

/* SAĞ KOLON (İSTATİSTİKLER) */
.luxury-profile-right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.luxury-stats-card {
  background: rgba(0, 18, 16, 0.78);
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.luxury-stats-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.5px;
  text-align: left;
}

.luxury-stats-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.luxury-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.luxury-stat-row:last-child {
  border-bottom: none;
}

.stat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2f0ed;
  text-align: left;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-align: right;
  letter-spacing: 0.5px;
}

.penalty-stat-row .stat-label {
  color: #fca5a5;
}

.penalty-value {
  color: #ef4444 !important;
}

/* Alt Çubuk (Hesap Durumu) */
.luxury-profile-footer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 2px 0 2px;
}

.account-type-badge {
  font-size: 12px;
  font-weight: 800;
  color: #9cb8b3;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
}

/* =========================================================
   LÜKS AYARLAR EKRANI (AŞAĞI DOĞRU UZAYAN KAYDIRILABİLİR KART)
   ========================================================= */
.luxury-settings-card {
  position: relative;
  width: min(600px, 100%) !important;
  max-width: min(620px, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 36px)) !important;
  max-height: min(90vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px)) !important;
  margin: auto;
  background: radial-gradient(ellipse at 50% 20%, #08322e 0%, #031715 65%, #020c0b 100%) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 18px !important;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.95), 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 25px rgba(0, 20, 18, 0.9) !important;
  padding: 16px 20px !important;
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: zoomInProfile 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.luxury-settings-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  margin-bottom: 12px;
}

/* Özel İnce Altın Scrollbar */
.luxury-settings-scroll-body::-webkit-scrollbar,
.luxury-profile-card::-webkit-scrollbar {
  width: 6px;
}
.luxury-settings-scroll-body::-webkit-scrollbar-track,
.luxury-profile-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}
.luxury-settings-scroll-body::-webkit-scrollbar-thumb,
.luxury-profile-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #996515);
  border-radius: 4px;
}

.settings-category-card {
  background: rgba(0, 18, 16, 0.72);
  border: 1.2px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding-bottom: 6px;
}

.luxury-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.setting-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.setting-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.setting-desc {
  font-size: 11px;
  font-weight: 600;
  color: #9cb8b3;
  line-height: 1.2;
}

.setting-slider-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.luxury-range-slider {
  -webkit-appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #d4af37;
  outline: none;
}
.luxury-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border: 1.5px solid #000;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.setting-range-val {
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  min-width: 30px;
  text-align: right;
}

/* Lüks Toggle Switch */
.luxury-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.luxury-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.luxury-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #0b1e1b;
  border: 1.5px solid #6b7280;
  transition: 0.25s;
  border-radius: 24px;
}
.luxury-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: #9ca3af;
  border-radius: 50%;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.luxury-switch input:checked + .luxury-switch-slider {
  background-color: #0d4a2d;
  border-color: #ffd700;
}
.luxury-switch input:checked + .luxury-switch-slider:before {
  transform: translateX(20px);
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Hesap & Çıkış Kartı */
.settings-account-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.settings-acc-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #9cb8b3;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-settings-luxury-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.14);
  border: 1.2px solid rgba(239, 68, 68, 0.6);
  color: #f87171;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-settings-luxury-logout:hover {
  background: rgba(239, 68, 68, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.luxury-settings-footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
}

/* ==========================================================================
   LÜKS MODAL TASARIM SİSTEMİ (PERİŞAN OKEY ALTIN & ZÜMRÜT KADİFE TEMASI)
   ========================================================================== */

.luxury-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vh, 20px);
  box-sizing: border-box;
}

.luxury-modal-card {
  position: relative;
  width: min(580px, 100%);
  max-width: min(600px, calc(100vw - 24px));
  max-height: min(90vh, calc(100dvh - 24px));
  margin: auto;
  background: radial-gradient(ellipse at 50% 25%, #08322e 0%, #031715 65%, #020c0b 100%);
  border: 2px solid #d4af37;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.95), 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 25px rgba(0, 20, 18, 0.9);
  padding: 0;
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: zoomInProfile 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.luxury-friends-card {
  width: min(620px, 100%);
  max-width: min(640px, calc(100vw - 24px));
  height: min(560px, 86vh);
}

.luxury-create-card {
  width: min(480px, 100%);
}

.luxury-browser-card {
  width: min(680px, 100%);
  max-width: min(720px, calc(100vw - 24px));
  height: min(580px, 88vh);
}

.luxury-code-card {
  width: min(380px, 100%);
}

.luxury-scoreboard-card {
  width: min(520px, 94vw);
}

.luxury-round-end-card {
  width: min(640px, 100%);
  max-width: min(660px, calc(100vw - 20px));
  max-height: min(90vh, calc(100dvh - 20px)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.luxury-round-end-card .luxury-profile-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  position: relative;
}

.luxury-round-end-card .luxury-profile-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.luxury-round-end-card .modal-countdown-box {
  margin-right: 38px;
}

.luxury-round-subtitle {
  margin: 4px 16px 2px;
  font-size: 12px;
  color: #d4af37;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

.luxury-round-end-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.luxury-round-end-card .modal-footer-compact {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(8, 20, 18, 0.98);
  border-top: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.luxury-chat-drawer {
  background: radial-gradient(ellipse at 50% 20%, #08322e 0%, #031715 65%, #020c0b 100%) !important;
  border-left: 2px solid #d4af37 !important;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.9) !important;
}

/* Modal Başlık Çubuğu (Sabit) */
.luxury-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.28);
  box-sizing: border-box;
  flex-shrink: 0;
}

.luxury-modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.luxury-modal-header-title h2 {
  margin: 0;
  font-size: clamp(17px, 2.5vh, 20px);
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 215, 0, 0.35);
  letter-spacing: 0.5px;
}

.luxury-modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%);
  border: 1.8px solid #ffd700;
  color: #ffd700;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
}
.luxury-modal-close-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.luxury-refresh-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.luxury-refresh-btn:hover {
  background: rgba(212, 175, 55, 0.28);
  transform: translateY(-1px);
}

/* Sekmeler Çubuğu (Tabs Bar) */
.luxury-tabs-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 6px 12px;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
}

.luxury-tab-btn {
  background: transparent;
  border: none;
  color: #bfa175;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.luxury-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 215, 0, 0.1);
}
.luxury-tab-btn.active {
  color: #ffd700;
  background: rgba(212, 175, 55, 0.22);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.luxury-tab-badge {
  background: #d4af37;
  color: #0b1a18;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Kaydırılabilir İçerik Gövdesi */
.luxury-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.luxury-modal-body::-webkit-scrollbar,
.luxury-friends-body::-webkit-scrollbar,
.table-browser-items-box::-webkit-scrollbar {
  width: 6px;
}
.luxury-modal-body::-webkit-scrollbar-track,
.luxury-friends-body::-webkit-scrollbar-track,
.table-browser-items-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}
.luxury-modal-body::-webkit-scrollbar-thumb,
.luxury-friends-body::-webkit-scrollbar-thumb,
.table-browser-items-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #996515);
  border-radius: 4px;
}

/* Sabit Alt Buton Çubuğu */
.luxury-modal-footer {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1.5px solid rgba(212, 175, 55, 0.25);
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Lüks Form Elemanları */
.luxury-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.luxury-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 18, 16, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: #ffffff;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.luxury-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ==================== MASA AÇ: SEGMENTED GAME MODE BUTTONS ==================== */
.luxury-segmented-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.luxury-seg-btn {
  background: rgba(0, 20, 18, 0.7);
  border: 1.8px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.luxury-seg-btn:hover {
  background: rgba(0, 32, 28, 0.9);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}
.luxury-seg-btn.active {
  background: linear-gradient(135deg, rgba(8, 50, 46, 0.95) 0%, rgba(2, 24, 21, 0.95) 100%);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.35), inset 0 0 8px rgba(255, 215, 0, 0.2);
}
.luxury-seg-btn .seg-icon {
  font-size: 20px;
}
.luxury-seg-btn .seg-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
}
.luxury-seg-btn .seg-sub {
  font-size: 11px;
  color: #bfa175;
}

/* ==================== MASA AÇ: EL SAYISI STEPPER (+/-) ==================== */
.luxury-stepper-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 18, 16, 0.75);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
}

.luxury-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%);
  border: 2px solid #ffd700;
  color: #ffd700;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}
.luxury-step-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}
.luxury-step-btn:active {
  transform: scale(0.95);
}

.luxury-step-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 90px;
  justify-content: center;
}
.luxury-step-display .step-num {
  font-size: 24px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.4);
}
.luxury-step-display .step-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* ==================== MASA AÇ: İDDİA ALTINI ÇİPLERİ ==================== */
.luxury-bet-chips-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.luxury-bet-chip {
  background: rgba(0, 20, 18, 0.8);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.luxury-bet-chip::before {
  content: '💰 ';
}
.luxury-bet-chip:hover {
  border-color: #ffd700;
  transform: translateY(-2px);
  background: rgba(0, 36, 32, 0.9);
}
.luxury-bet-chip.active {
  background: linear-gradient(135deg, #d4af37 0%, #aa8018 100%);
  color: #0b1a18;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  font-weight: 900;
}

/* ==================== ARKADAŞLAR: ARAMALARDA GÖRÜN TİK KUTUSU ==================== */
.luxury-discover-setting-card {
  background: rgba(0, 20, 18, 0.7);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.luxury-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.luxury-checkbox-label input[type="checkbox"] {
  display: none;
}

.luxury-custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  background: #020c0b;
  border: 2px solid #d4af37;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.luxury-checkbox-label input[type="checkbox"]:checked + .luxury-custom-checkbox {
  background: linear-gradient(135deg, #d4af37 0%, #aa8018 100%);
  border-color: #ffd700;
}

.luxury-checkbox-label input[type="checkbox"]:checked + .luxury-custom-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #020c0b;
  font-size: 13px;
  font-weight: 900;
}

.luxury-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.luxury-checkbox-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
}

.luxury-checkbox-sub {
  font-size: 11px;
  color: #a08c75;
  line-height: 1.35;
}

/* Giden İstekler Öğeleri */
.sent-req-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 18, 16, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  margin-bottom: 6px;
}

.btn-cancel-req {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-cancel-req:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* ==================== MASA LİSTESİ VE KATILIM KARTLARI ==================== */
.browser-join-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.2px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
}

.luxury-code-input {
  flex: 1;
  text-transform: uppercase;
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #020c0b;
  border: 1px solid #d4af37;
  color: #ffd700;
  outline: none;
}

.luxury-big-code-input {
  width: 100%;
  text-transform: uppercase;
  font-family: monospace;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #020c0b;
  border: 2px solid #d4af37;
  color: #ffd700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
  outline: none;
}

.table-browser-card-item {
  background: rgba(0, 22, 20, 0.75);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.18s ease;
}
.table-browser-card-item:hover {
  border-color: #ffd700;
  background: rgba(0, 36, 32, 0.9);
  transform: translateY(-1px);
}

.table-browser-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.table-browser-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-browser-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #bfa175;
}
.table-bet-pill {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd700;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ==================== YENİ OYUNA GEÇ (REMATCH) ONAY BİLEŞENİ ==================== */
.luxury-rematch-box {
  background: rgba(0, 20, 18, 0.85);
  border: 1.8px solid #d4af37;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.rematch-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rematch-box-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
}
.rematch-status-badge {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.rematch-players-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
}

.player-approval-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.player-approval-chip.approved {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(34, 197, 94, 0.12);
}
.player-approval-chip.waiting {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

.approval-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.approval-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.approval-status-tag {
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.approval-status-tag.approved {
  color: #4ade80;
}
.approval-status-tag.waiting {
  color: #facc15;
}

.btn-kick-unapproved {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
}
.btn-kick-unapproved:hover {
  background: rgba(239, 68, 68, 0.5);
  transform: scale(1.04);
}

/* ==============================================================
   LÜKS İCONLAR, SOHBET ÇEKMECESİ, BAHİS SLIDER VE ANA SOHBET MODALI
   ============================================================== */

/* Para ve Elmas Görsel İkonu */
.currency-inline-icon {
  width: 17px;
  height: 17px;
  vertical-align: -2.5px;
  margin: 0 3px;
  display: inline-block;
  object-fit: contain;
}

/* Masa Sohbeti Sabit Üst Başlık & Kapat Butonu */
.luxury-chat-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  padding-right: max(14px, calc(14px + env(safe-area-inset-right, 0px))) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.luxury-chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.luxury-chat-close-btn {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%) !important;
  border: 1.5px solid #ffd700 !important;
  color: #ffd700 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.luxury-chat-close-btn:hover {
  transform: scale(1.1) !important;
  filter: brightness(1.2) !important;
}

/* İddia Altını Lüks Kaydırılabilir Çubuk (Slider) */
.luxury-slider-container {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.luxury-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a08c75;
}

.slider-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%);
  border: 1.5px solid #ffd700;
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.luxury-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #10b981 0%, #ffd700 70%, #ef4444 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}

.luxury-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe259 0%, #ffa751 100%);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.8);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.luxury-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.luxury-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe259 0%, #ffa751 100%);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.8);
  cursor: pointer;
}

/* Ana Menü Sohbet Modalı (4 Sekmeli) */
.luxury-chat-tabs-header {
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
}

/* ============================================================
   LÜKS VE TAM EKRAN SOHBET MERKEZİ (SOL MENÜ & BOYDAN BOYA AKIŞ)
   ============================================================ */
.luxury-chat-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: radial-gradient(ellipse at 50% 25%, #082924 0%, #031412 60%, #010807 100%) !important;
  display: none;
  z-index: 180 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: #ffffff;
}

.luxury-chat-screen.active {
  display: flex !important;
}

.chat-screen-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* SOL PANEL: SEKME BUTONLARI & GERİ / ÇIKIŞ BUTONU */
.chat-screen-sidebar {
  width: clamp(170px, 24vw, 220px);
  height: 100%;
  background: rgba(2, 16, 14, 0.96);
  border-right: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  z-index: 10;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
  padding-top: max(8px, env(safe-area-inset-top, 8px));
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  padding-left: max(8px, env(safe-area-inset-left, 8px));
}

.chat-sidebar-header {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 6px;
}

.chat-sidebar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 7px 12px;
  color: #ffd700;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  width: fit-content;
}
.chat-sidebar-back-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: translateX(-2px);
}

.chat-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-sidebar-brand h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.5px;
}

.chat-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.chat-sidebar-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  color: #c9d6d4;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  border-radius: 0 8px 8px 0;
  box-sizing: border-box;
}

.chat-sidebar-tab-btn svg {
  flex-shrink: 0;
}

.chat-sidebar-tab-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
}

.chat-sidebar-tab-btn.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.04) 100%);
  border-left-color: #ffd700;
  color: #ffd700;
  font-weight: 800;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* SAĞ PANEL: SOHBET BOYDAN BOYA AKIŞ ALANI */
.chat-screen-content {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 40%, rgba(6, 38, 34, 0.45) 0%, rgba(2, 12, 10, 0.85) 100%);
  padding-top: max(0px, env(safe-area-inset-top, 0px));
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
  padding-right: max(6px, env(safe-area-inset-right, 6px));
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.main-chat-pane {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-room-flow-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-room-inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chat-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 16, 14, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  box-sizing: border-box;
}

.chat-room-badge {
  font-size: 14.5px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.4px;
}

.chat-room-subtext {
  font-size: 11.5px;
  color: #a08c75;
  font-weight: 700;
}

.luxury-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.luxury-chat-input-area {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  background: rgba(1, 14, 12, 0.92);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  box-sizing: border-box;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

.luxury-chat-input-area input {
  flex: 1;
  background: #041f1c;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s;
}

.luxury-chat-input-area input:focus {
  border-color: #ffd700;
}

.luxury-chat-input-area button {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  border: 1.5px solid #fff2a3;
  color: #140d04;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 900;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.luxury-chat-input-area button:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

/* DM (Birebir Özel Sohbet) Başlık & Geri Butonu */
.dm-flow-header {
  padding: 10px 18px;
}

.dm-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.18);
  border: 1.2px solid #d4af37;
  border-radius: 8px;
  color: #ffd700;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.chat-back-btn:hover {
  background: rgba(212, 175, 55, 0.35);
  transform: translateX(-2px);
}

.dm-recipient-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dm-recipient-info strong {
  font-size: 15px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.dm-recipient-info span {
  font-size: 11px;
  font-weight: 700;
  color: #81c784;
}

.main-chat-conversations-list {
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  gap: 8px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.main-chat-conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.main-chat-conv-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateX(3px);
}

.main-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a1506 0%, #0d0602 100%);
  border: 1.8px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #ffd700;
  flex-shrink: 0;
  overflow: hidden;
}
.main-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-chat-content {
  flex: 1 1 auto;
  min-width: 0;
}

.main-chat-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.main-chat-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-chat-time {
  font-size: 10.5px;
  color: #a08c75;
  flex-shrink: 0;
}

.main-chat-last-msg {
  font-size: 12.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-chat-notice {
  margin: 32px auto;
  padding: 24px 28px;
  max-width: 480px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

/* Responsive Düzen */
@media (max-width: 580px) {
  .chat-screen-sidebar {
    width: 64px;
    padding: 8px 2px;
  }
  .chat-sidebar-back-btn span,
  .chat-sidebar-brand h2,
  .chat-sidebar-tab-btn span {
    display: none;
  }
  .chat-sidebar-tab-btn {
    justify-content: center;
    padding: 14px 4px;
    border-radius: 8px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .chat-sidebar-tab-btn.active {
    border-bottom-color: #ffd700;
  }
}

/* =========================================================
   GÜNLÜK BONUS & REKLAM MODALI (SADE, KLAS & KOMPAKT)
   ========================================================= */
.luxury-bonus-card {
  position: relative;
  width: min(560px, 94vw) !important;
  max-width: 560px !important;
  max-height: min(330px, 92vh) !important;
  background: radial-gradient(ellipse at 50% 15%, #0a3d38 0%, #041c19 70%, #020c0b 100%) !important;
  border: 1.5px solid #d4af37 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(212, 175, 55, 0.25) !important;
  padding: 12px 16px !important;
  color: #ffffff;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: zoomInProfile 0.2s ease-out;
  overflow: hidden;
}

.luxury-bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0;
  box-sizing: border-box;
}

@media (max-width: 480px) and (orientation: portrait) {
  .luxury-bonus-card {
    max-height: 90vh !important;
  }
  .luxury-bonus-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.bonus-box-panel {
  background: rgba(0, 24, 21, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
}

.bonus-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bonus-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.3px;
}

.bonus-gold-tag {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd700;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.bonus-gold-tag.green-tag {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.bonus-box-desc {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.bonus-box-status {
  min-height: 22px;
  display: flex;
  align-items: center;
}

.bonus-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: #fca5a5;
  font-weight: 600;
}

.bonus-ready-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: #86efac;
  font-weight: 700;
}

.bonus-info-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  color: #93c5fd;
  font-weight: 600;
}

.btn-bonus-action {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
  box-sizing: border-box;
}

.btn-gold-action {
  background: linear-gradient(180deg, #d4af37 0%, #b8860b 100%);
  color: #0f172a;
  border-color: #ffd700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-gold-action:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-gold-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.btn-green-action {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-green-action:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.luxury-bonus-footnote {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* =========================================================
   REKLAM OYNATICI (SADE, KLAS VE EN ÜST KATMAN)
   ========================================================= */
.ad-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
}

.ad-player-box {
  width: min(520px, 94vw);
  max-height: min(290px, 92vh);
  background: #09121f;
  border: 1.5px solid #0284c7;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(2, 132, 199, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: zoomInProfile 0.2s ease-out;
  box-sizing: border-box;
}

.ad-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #030712;
  border-bottom: 1px solid #1e293b;
}

.ad-sponsor-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-badge-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 2px 5px;
  border-radius: 4px;
}

.ad-reward-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
}

.ad-countdown-pill {
  background: #111e33;
  border: 1px solid #0284c7;
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.ad-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.ad-close-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.ad-content-view {
  padding: 18px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, #0f1f38 0%, #09121f 100%);
  flex: 1;
}

.ad-promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ad-promo-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.ad-promo-sub {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
}

.ad-features-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.ad-feat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

.ad-footer-bar {
  background: #030712;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ad-progress-track {
  width: 100%;
  height: 5px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}

.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #ffd700);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.ad-status-row {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==================== ALTIN & ELMAS MAĞAZASI (SEÇENEK D) ==================== */
.luxury-store-modal {
  position: relative;
  width: clamp(320px, 92vw, 680px);
  max-height: 92vh;
  background: radial-gradient(circle at 50% 20%, #162942 0%, #091322 100%);
  border: 1.5px solid #d4af37;
  border-radius: 14px;
  padding: 14px 18px 12px;
  color: #f1f5f9;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.store-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 8px;
  gap: 10px;
}

.store-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-title {
  margin: 0;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffd700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.store-header-balances {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.store-balance-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.store-balance-badge.gold-badge {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
}

.store-balance-badge.diamond-badge {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

.store-bal-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.store-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.store-close-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.store-tabs-bar {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.12));
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.store-tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.gold-dot { background: #ffd700; }
.diamond-dot { background: #00e5ff; }

.store-tab-content {
  display: none;
}
.store-tab-content.active {
  display: block;
}

.store-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.store-cards-grid.diamond-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 580px) {
  .store-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-cards-grid.diamond-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .store-header-balances {
    display: none;
  }
}

.store-pkg-card {
  position: relative;
  background: rgba(13, 23, 38, 0.85);
  border: 1.2px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: center;
  transition: all 0.18s ease;
  min-height: 105px;
  box-sizing: border-box;
}

.store-pkg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
}

.store-pkg-card.popular-card {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(13, 23, 38, 0.95) 100%);
}

.store-pkg-card.vip-card {
  border-color: #ffd700;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.16) 0%, rgba(13, 23, 38, 0.98) 100%);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.store-pkg-card.diamond-card {
  border-color: rgba(0, 229, 255, 0.3);
}
.store-pkg-card.diamond-card:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.2);
}
.store-pkg-card.diamond-card.popular-card {
  border-color: rgba(0, 229, 255, 0.7);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.1) 0%, rgba(13, 23, 38, 0.95) 100%);
}
.store-pkg-card.diamond-card.vip-card {
  border-color: #00e5ff;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.18) 0%, rgba(13, 23, 38, 0.98) 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.pkg-top-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.pkg-top-tag.tag-accent {
  background: rgba(255, 215, 0, 0.18);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.pkg-top-tag.tag-vip {
  background: linear-gradient(90deg, #b45309, #d97706);
  color: #ffffff;
  border: 1px solid #ffd700;
}

.pkg-top-tag.tag-diamond {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.pkg-top-tag.tag-diamond-accent {
  background: rgba(0, 229, 255, 0.18);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.pkg-top-tag.tag-diamond-vip {
  background: linear-gradient(90deg, #0284c7, #00e5ff);
  color: #04101e;
  font-weight: 800;
  border: 1px solid #00e5ff;
}

.pkg-amount-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.pkg-amount-num {
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.pkg-unit {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.gold-text { color: #ffd700; }
.diamond-text { color: #00e5ff; }

.pkg-price-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffd700;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pkg-price-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: #ffd700;
  transform: scale(1.02);
}

.pkg-price-btn.btn-popular {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(180, 83, 9, 0.5));
  border-color: #ffd700;
}

.pkg-price-btn.btn-vip {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1e1302;
  border-color: #ffd700;
}

.pkg-price-btn.btn-diamond {
  border-color: rgba(0, 229, 255, 0.5);
  color: #00e5ff;
}
.pkg-price-btn.btn-diamond:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #00e5ff;
}
.pkg-price-btn.btn-diamond-popular {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(2, 132, 199, 0.4));
  border-color: #00e5ff;
}
.pkg-price-btn.btn-diamond-vip {
  background: linear-gradient(135deg, #0284c7, #00e5ff);
  color: #04101e;
  border-color: #00e5ff;
}

.store-footer-note {
  text-align: center;
  font-size: 10px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

/* ==================== BAĞLANTI KOPMA GÖSTERGESİ (SEÇENEK A) ==================== */
.seat-disconnect-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 9.5px;
  font-weight: 700;
  animation: disconnectPulse 1.8s infinite;
}

@keyframes disconnectPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.97); }
}

/* ==================== YASAL VE GİZLİLİK GEREKSİNİMLERİ (GOOGLE PLAY / APPLE KVKK) ==================== */

/* Karşılama Kapısı Yasal Uyarı Satırı */
.auth-gate-legal-note {
  margin-top: 14px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 480px;
}

.btn-gate-legal-text {
  background: none;
  border: none;
  color: #ffd700;
  text-decoration: underline;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s ease;
}

.btn-gate-legal-text:hover {
  color: #ffffff;
}

/* Ayarlar Menüsü Yasal Bilgilendirme ve Silme Butonları */
.settings-legal-btns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.btn-settings-legal-link {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffd700;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-settings-legal-link:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-1px);
}

.settings-delete-account-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 55, 0.18);
  display: flex;
  justify-content: center;
}

.btn-settings-delete-acc {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-settings-delete-acc:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* Yasal Bilgilendirme ve Gizlilik Modalı */
.luxury-legal-card {
  width: min(720px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.legal-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 4px 14px 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.luxury-legal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  max-height: 52vh;
}

.luxury-legal-body::-webkit-scrollbar {
  width: 6px;
}

.luxury-legal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.luxury-legal-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

.legal-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-sec {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
}

.legal-sec.highlight-sec {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.legal-sec h3 {
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.legal-sec p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.legal-sec ul {
  margin: 8px 0 0 16px;
  padding: 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.6;
}

.legal-sec li strong {
  color: #f1f5f9;
}

/* =========================================================
   BAĞLANTI DURUMU BİLDİRİM BARI (CONNECTION STATUS BANNER)
   ========================================================= */
.connection-status-banner {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 8px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(185, 28, 28, 0.92);
  border: 1.5px solid #ef4444;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(239, 68, 68, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideDownBanner 0.3s ease-out;
  pointer-events: auto;
}

@keyframes slideDownBanner {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.connection-status-banner.connected {
  background: rgba(16, 185, 129, 0.92) !important;
  border-color: #34d399 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(52, 211, 153, 0.4) !important;
}

.connection-banner-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connection-banner-icon {
  font-size: 15px;
  display: inline-flex;
  animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.connection-banner-text {
  letter-spacing: 0.3px;
}

.connection-banner-timer {
  color: #fca5a5;
  font-size: 12px;
}

.connection-banner-btn {
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.connection-banner-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   GİRİŞ KAPISI MİSAFİR KURTARMA BUTONU
   ========================================================= */
.auth-gate-recover-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.btn-gate-recover-guest {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.btn-gate-recover-guest:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* =========================================================
   MİSAFİR KURTARMA & SOSYAL BAĞLAMA KUTUSU (PROFİL İÇİ)
   ========================================================= */
.profile-guest-recovery-box {
  width: 100%;
  background: rgba(13, 22, 20, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  margin-top: 10px;
}

.recovery-box-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.recovery-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #040e0c;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.recovery-code-val {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 1px;
}

.btn-copy-code {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid #d4af37;
  color: #ffd700;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy-code:hover {
  background: #d4af37;
  color: #061e1b;
}

.recovery-code-hint {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.link-social-section {
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
  padding-top: 8px;
}

.link-social-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  display: block;
  margin-bottom: 6px;
}

.link-social-buttons {
  display: flex;
  gap: 6px;
}

.btn-link-social {
  flex: 1;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.15s ease;
}
.btn-link-social:hover {
  opacity: 0.9;
}
.btn-link-google {
  background: #ea4335;
}
.btn-link-facebook {
  background: #1877f2;
}

/* =========================================================
   BAKİYE HAREKETLERİ BUTONU VE MODERASYON BUTONLARI
   ========================================================= */
.btn-ledger-history {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(180, 140, 30, 0.3) 100%);
  border: 1.5px solid #d4af37;
  color: #ffd700;
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}
.btn-ledger-history:hover {
  background: #d4af37;
  color: #061e1b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-other-action {
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-other-block {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}
.btn-other-block:hover {
  background: #ef4444;
  color: #fff;
}
.btn-other-report {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fcd34d;
}
.btn-other-report:hover {
  background: #f59e0b;
  color: #061e1b;
}

/* =========================================================
   BAKİYE HAREKETLERİ LİSTESİ VE KART STİLİ
   ========================================================= */
.ledger-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 12px;
}

.ledger-chip-total {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #e2e8f0;
}

.ledger-refresh-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #ffd700;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ledger-refresh-btn:hover {
  background: rgba(212, 175, 55, 0.3);
}

.ledger-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 20, 18, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  transition: background 0.12s ease;
}
.ledger-item-row:hover {
  background: rgba(10, 32, 28, 0.85);
  border-color: rgba(212, 175, 55, 0.3);
}

.ledger-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ledger-item-type {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.ledger-item-meta {
  font-size: 10.5px;
  color: #94a3b8;
}

.ledger-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ledger-item-amount {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.ledger-item-amount.positive {
  color: #34d399;
}
.ledger-item-amount.negative {
  color: #f87171;
}

.ledger-item-status {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
}
.ledger-item-status.settled {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}
.ledger-item-status.refunded {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}
.ledger-item-status.pending {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.ledger-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 13px;
}

/* =========================================================
   KURTARMA KODU GİRİŞİ (INPUT & ERROR)
   ========================================================= */
.luxury-recovery-input {
  width: 100%;
  box-sizing: border-box;
  background: #03100e;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #ffd700;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.15s ease;
}
.luxury-recovery-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.recover-error-text {
  font-size: 11.5px;
  color: #f87171;
  margin-top: 8px;
  line-height: 1.4;
}

/* =========================================================
   SOHBET İÇİ OYUNCU İŞLEM BALONU & MODERASYON
   ========================================================= */
.chat-user-balloon {
  position: fixed;
  z-index: 10090;
  background: rgba(18, 12, 10, 0.97);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 145px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.chat-user-balloon .balloon-player-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffd700;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-balloon button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.chat-user-balloon button:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #ffd700;
  color: #ffd700;
}

.chat-user-balloon button.btn-balloon-report {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.chat-user-balloon button.btn-balloon-report:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: #ef4444;
}

.chat-messages .sender,
.chat-msg .sender,
.dm-sender-name {
  cursor: pointer;
  transition: color 0.12s ease;
}

.chat-messages .sender:hover,
.chat-msg .sender:hover,
.dm-sender-name:hover {
  color: #ffe066 !important;
  text-decoration: underline;
}

.btn-other-friend {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  border-color: #34d399 !important;
  color: #fff !important;
}

.btn-other-friend:hover {
  filter: brightness(1.1);
}

.btn-other-friend.is-friend {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
  border-color: #94a3b8 !important;
  color: #f1f5f9 !important;
}

/* Masa içi profil kilidi uyarısı */
.profile-in-game-lock-badge {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

/* Genel Sohbet Mobil Sanal Klavye Uyum */
.luxury-chat-screen.keyboard-open {
  height: var(--keyboard-vh, 100%) !important;
  max-height: var(--keyboard-vh, 100%) !important;
  bottom: auto !important;
}

.luxury-chat-screen.keyboard-open .chat-screen-layout {
  height: 100% !important;
  max-height: 100% !important;
}

.luxury-chat-screen.keyboard-open .chat-screen-content {
  height: 100% !important;
  max-height: 100% !important;
}

.luxury-chat-screen.keyboard-open .chat-messages {
  max-height: calc(100% - 64px) !important;
  flex: 1 1 auto !important;
}

.luxury-chat-screen.keyboard-open .luxury-chat-input-area {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  flex-shrink: 0 !important;
}

/* ==================== EKRANIN EN ALTINDAKİ ZARİF BİLGİLENDİRME VE YASAL ŞERİT ==================== */
.auth-gate-footer-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 98vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 3px 14px;
  box-sizing: border-box;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.65);
  letter-spacing: 0.2px;
  z-index: 25;
  pointer-events: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  user-select: text;
  white-space: nowrap;
}

.gate-footer-desc {
  white-space: nowrap;
  color: rgba(226, 232, 240, 0.70);
  font-weight: 500;
}

.gate-footer-link {
  color: #d4af37 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.gate-footer-link:visited {
  color: #d4af37 !important;
}

.gate-footer-link:hover {
  color: #fef08a !important;
  text-decoration: underline !important;
}

.gate-footer-sep {
  color: rgba(255, 255, 255, 0.30);
  font-size: 8px;
  user-select: none;
}

@media (max-width: 768px) {
  .auth-gate-footer-bar {
    font-size: 9.5px;
    gap: 6px;
    bottom: 5px;
    padding: 2px 8px;
  }
}





