/* --- Web Game Client UI (1920x1080 Window Frame) --- */
.game-client-section {
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 26px;
}

.game-window-frame {
  max-width: 1640px;
  margin: 0 auto;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(30, 64, 175, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.game-window-topbar {
  background: #0d131f;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #10b981; }

.window-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.game-window-viewport {
  aspect-ratio: 16 / 9;
  min-height: 580px;
  position: relative;
  background: url('../../assets/bg_light_blue_pattern.svg') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

/* Slide-out Sidebar Drawer (Sadece Canvas İçi Sınırlandırılmış) */
.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}
.client-drawer {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-105%);
  visibility: hidden;
  pointer-events: none;
  width: clamp(340px, 32vw, 420px);
  max-width: 90vw;
  height: 100%;
  background: rgba(18, 20, 26, 0.98);
  border-right: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  overflow: hidden;
  box-sizing: border-box;
}
.client-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.drawer-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: #161820;
}
.drawer-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
  line-height: 1;
}
.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}
.drawer-menu {
  list-style: none;
  padding: 14px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.drawer-menu::-webkit-scrollbar {
  width: 6px;
}
.drawer-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}
.drawer-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 50px;
}
.drawer-item .d-icon {
  font-size: 24px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateX(3px);
}
.drawer-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  box-shadow: inset 4px 0 0 #10b981;
}
.drawer-footer {
  padding: 16px 18px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: #14161d;
  margin-top: auto;
}

/* Login ekranında sohbet butonu ve paneli asla görünmez */
html:not(.has-token) #btnOpenGlobalChat,
html:not(.has-token) .floating-chat-trigger,
html:not(.has-token) #globalChatDrawer,
html:not(.has-token) #globalChatOverlay {
  display: none !important;
}

/* State 1: Login Screen (Modern Beyaz, Açık Gri & Buz Mavisi Kart - KESİNLİKLE LACİVERT DEĞİL!) */
.client-auth-hero {
  max-width: 860px;
  width: 92%;
  margin: auto;
  background: rgba(255, 255, 255, 0.94); /* Kusursuz Beyaz / Açık Cam */
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 44px 48px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(14, 165, 233, 0.12);
  color: #0f172a;
}

/* 1 & 2: "MMO11 - TÜRKİYE" Prestijli Espor Marka Başlığı */
.mmo-brand-header {
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mmo-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  color: #0284c7;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 6px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}
.mbp-dot {
  width: 8px;
  height: 8px;
  background: #0ea5e9;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 1.5s infinite alternate;
}
@keyframes pulseDot {
  from { opacity: 0.5; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}
.mbp-flag { font-size: 15px; }

.mmo-hero-brand-wrap {
  font-family: 'Chakra Petch', 'Syne', sans-serif;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  user-select: none;
}
.mhb-mmo {
  color: #0f172a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mhb-eleven {
  color: #0284c7;
  text-shadow: 0 0 24px rgba(14, 165, 233, 0.4);
}
.mhb-divider {
  color: #94a3b8;
  font-weight: 300;
  font-size: 46px;
}
.mhb-turkey {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 60%, #9f1239 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
  filter: drop-shadow(0 2px 10px rgba(225, 29, 72, 0.25));
}
.mmo-hero-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}
.mhs-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}
.mhs-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 2px;
}

.client-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #475569;
  margin: 0 auto 26px auto;
  max-width: 640px;
  line-height: 1.6;
  font-weight: 500;
}

/* 3: KARE KARE Giriş Seçenekleri Kart Izgarası (Alt alta değil, KARE KARE!) */
.client-auth-square-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
}
@container game (max-width: 820px) {
  .client-auth-square-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@container game (max-width: 520px) {
  .client-auth-square-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auth-square-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 16px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.auth-square-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}
.auth-square-card:active {
  transform: translateY(-2px) scale(0.98);
}

.asc-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.auth-square-card:hover .asc-icon-wrap {
  transform: scale(1.1);
}
.asc-icon {
  font-size: 32px;
}

.asc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.asc-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 10px;
}
.asc-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 1. Misafir Modu (Açık Mavi & Buz Mavisi Vurgu) */
.card-guest {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
}
.card-guest .asc-guest-icon {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.35);
}
.card-guest .asc-title { color: #0369a1; }
.card-guest .asc-badge {
  background: #0284c7;
  color: #ffffff;
}
.card-guest:hover {
  border-color: #0284c7;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.3);
}

/* 2. Google */
.card-google {
  background: #ffffff;
  border-color: #cbd5e1;
}
.card-google .asc-google-icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.card-google .asc-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.card-google:hover {
  border-color: #4285F4;
  box-shadow: 0 14px 30px rgba(66, 133, 244, 0.2);
}

/* 3. Facebook */
.card-facebook {
  background: #ffffff;
  border-color: #cbd5e1;
}
.card-facebook .asc-fb-icon {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.card-facebook .asc-title { color: #1e40af; }
.card-facebook .asc-badge {
  background: #1877f2;
  color: #ffffff;
}
.card-facebook:hover {
  border-color: #1877f2;
  box-shadow: 0 14px 30px rgba(24, 119, 242, 0.25);
}

/* 4. E-posta */
.card-email {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.card-email .asc-email-icon {
  background: #e2e8f0;
}
.card-email .asc-badge {
  background: #334155;
  color: #ffffff;
}
.card-email:hover {
  border-color: #64748b;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

/* 5. Apple */
.card-apple {
  background: #ffffff;
  border-color: #cbd5e1;
}
.card-apple .asc-apple-icon {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.card-apple .asc-badge {
  background: #0f172a;
  color: #ffffff;
}
.card-apple:hover {
  border-color: #0f172a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.btn-apple-secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}
.btn-apple-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Yükleme Ekranı (Loading Screen) Stilleri - Sadece Pencere / Canvas İçi Sınırlandırılmış */
.client-loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.cls-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: authFadeIn 0.25s ease-out;
}
.cls-spinner {
  font-size: 48px;
  display: inline-block;
  animation: spinBall 1.2s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
  margin-bottom: 16px;
}
@keyframes spinBall {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(0.9); }
}
.cls-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.cls-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.cls-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.cls-progress-fill {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 10px;
  animation: progressPulse 1.4s infinite ease-in-out;
}
@keyframes progressPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ============================================================ */
/* STÜDYO SPLASH & AKILLI LOADING EKRANI (appSplashScreen & appLoadingScreen) */
/* ============================================================ */
.app-splash-screen {
  position: absolute;
  inset: 0;
  z-index: 9999999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
  overflow: hidden;
}
.app-splash-fullscreen-img {
  width: auto;
  height: auto;
  max-width: clamp(360px, 55vw, 600px);
  max-height: clamp(180px, 40vh, 300px);
  object-fit: contain;
  margin: auto;
  animation: splashFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.app-loading-screen {
  position: absolute;
  inset: 0;
  z-index: 9999998;
  background: #040810 url('../../assets/loading_screen.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(30px, 6vh, 70px);
  box-sizing: border-box;
  transition: opacity 0.4s ease-out;
}
.app-loading-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 90%;
  max-width: 520px;
  background: rgba(4, 12, 24, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.app-loading-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.app-loading-fill {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}
.app-loading-text-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.app-loading-spinner {
  display: inline-block;
  font-size: 18px;
  animation: spinBall 1s linear infinite;
}
.app-loading-retry {
  padding: 8px 22px;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 14px;
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
}
.app-loading-retry:active {
  transform: scale(0.97);
}

/* ============================================================ */
/* 5: YENİ ONBOARDİNG SAYFASI (SADECE BEYAZ VE AÇIK RENKLER)   */
/* KESİNLİKLE LACİVERT DEĞİL! (SADECE PENCERE / CANVAS İÇİ)   */
/* ============================================================ */
.client-onboarding-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f1f5f9; /* Açık gümüş gri arka plan */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(12px, 2.5vh, 28px) 16px;
  box-sizing: border-box;
  z-index: 999990;
}
.onboarding-white-card {
  background: #ffffff; /* Kusursuz beyaz kart */
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 860px; /* Adım 1 ve Giriş Ekranı ile tam aynı genişlik (860px) */
  width: 92%;
  padding: clamp(14px, 2.5vw, 30px);
  box-sizing: border-box;
  animation: authFadeIn 0.3s ease-out;
  margin: 10px auto;
}

.obw-header {
  text-align: center;
  margin-bottom: 30px;
}
.obw-badge {
  display: inline-block;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0284c7;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.obw-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.obw-sub {
  font-size: 14.5px;
  color: #64748b;
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.5;
}

/* 1. Aşama Form Grid */
.obw-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.obw-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.obw-input-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.obw-label-icon { font-size: 18px; }
.obw-req { color: #ef4444; }
.obw-input-group input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
  color: #0f172a;
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.obw-input-group input:focus {
  background: #ffffff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.obw-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
/* 5: İsim & Soyadı 2 Kolon Yan Yana */
.obw-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@container game (max-width: 600px) {
  .obw-row-2col { grid-template-columns: 1fr; }
}

/* 6: Zar Butonlu Input Grubu */
.obw-input-with-dice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.obw-input-with-dice input {
  flex: 1;
}
.btn-dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  user-select: none;
}
.btn-dice:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  transform: rotate(25deg) scale(1.08);
}
.btn-dice:active {
  transform: rotate(50deg) scale(0.92);
}

.obw-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.obw-actions {
  margin-top: 10px;
}
.btn-obw-primary {
  width: 100%;
  padding: 15px;
  background: #0ea5e9;
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  transition: all 0.2s ease;
}
.btn-obw-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.5);
}

/* Telefonlar ve Kısa Ekranlar İçin Kompakt Onboarding Düzeni */
@container game (max-height: 720px) {
  .client-onboarding-screen {
    padding: 10px 12px;
  }
  .onboarding-white-card {
    padding: 16px 20px;
    border-radius: 20px;
    max-width: 620px;
  }
  .obw-header {
    margin-bottom: 10px;
  }
  .obw-badge {
    padding: 3px 12px;
    font-size: 10px;
    margin-bottom: 4px;
  }
  .obw-title {
    font-size: 18px;
    margin: 0 0 2px 0;
  }
  .obw-sub {
    font-size: 12px;
    line-height: 1.3;
    max-width: 95%;
  }
  .obw-form-grid {
    gap: 8px;
    max-width: 500px;
  }
  .obw-row-2col {
    gap: 8px;
  }
  .obw-input-group {
    gap: 3px;
  }
  .obw-input-group label {
    font-size: 12.5px;
    gap: 5px;
  }
  .obw-label-icon {
    font-size: 14px;
  }
  .obw-input-group input {
    padding: 8px 12px;
    font-size: 13.5px;
    border-radius: 10px;
  }
  .btn-dice {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }
  .obw-hint {
    display: none;
  }
  .obw-actions {
    margin-top: 8px;
  }
  .btn-obw-primary {
    padding: 10px 16px;
    font-size: 14.5px;
    border-radius: 10px;
  }
}

@container game (max-height: 560px) {
  .client-onboarding-screen {
    padding: 6px 8px;
  }
  .onboarding-white-card {
    padding: 12px 16px;
    border-radius: 16px;
  }
  .obw-header {
    margin-bottom: 6px;
  }
  .obw-sub {
    display: none;
  }
  .obw-badge {
    display: none;
  }
  .obw-form-grid {
    gap: 5px;
  }
  .obw-input-group input {
    padding: 6px 10px;
    font-size: 13px;
  }
  .btn-dice {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

/* /* 2. Aşama: Türkiye Haritası ve İl Seçimi (Step 1 ile Birebir Uyumlu, Ferah ve Geniş) */
.obw-city-unified-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.obw-city-top-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
@container game (max-width: 720px) {
  .obw-city-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
}
.obw-selected-city-pill {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
  box-sizing: border-box;
}
.oscp-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #bae6fd;
}
.oscp-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
}

/* Hızlı Şehir Çipleri (Popüler İller) */
.obw-city-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.city-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.city-chip:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}

/* Tam Genişlik Gerçek 81 İl SVG Harita Alanı */
.obw-map-canvas-full {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 200px;
}
#turkeyMapContainer svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1007 / 440;
  max-height: 180px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}
#turkeyMapContainer svg path,
.obw-map-canvas-full svg path,
#turkeyMapContainer svg g[data-plakakodu] path {
  fill: #e2e8f0 !important;
  stroke: #94a3b8 !important;
  stroke-width: 1.1px !important;
  stroke-linejoin: round !important;
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
}
#turkeyMapContainer svg g[data-plakakodu]:hover path {
  fill: #38bdf8 !important;
  stroke: #0284c7 !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.45));
}
#turkeyMapContainer svg g[data-plakakodu].selected path {
  fill: #e11d48 !important;
  stroke: #9f1239 !important;
  stroke-width: 2.4px !important;
  filter: drop-shadow(0 3px 10px rgba(225, 29, 72, 0.55));
}

/* Harita Hover Tooltip */
.tr-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -130%);
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.1s ease;
}

.obw-map-legend {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

.province-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.province-item-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}
.province-item-btn.selected {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 800;
}
.p-plate {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
}

/* Onboarding Step Actions (Aksiyon ve İleri/Geri Butonları) */
.obw-step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.btn-obw-back {
  padding: 9px 18px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.btn-obw-back:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-obw-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ============================================================ */
/* ADIM 3 & 4: LOGO & FORMA STÜDYO DÜZENİ                     */
/* ============================================================ */
.obw-studio-layout {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 14px;
  align-items: start;
  max-width: 840px;
  margin: 0 auto;
}
@container game (max-width: 680px) {
  .obw-studio-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Sol Kolon: Önizleme Kutusu & Rastgele Butonu */
.studio-preview-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 6px;
}
.obw-preview-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}
.obw-preview-box.kit-box {
  padding: 8px;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%);
}
.studio-svg-viewport {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  overflow: visible;
}
.studio-svg-viewport svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}
.obw-preview-box.kit-box .studio-svg-viewport {
  width: 135px;
  height: 135px;
}
.studio-preview-caption {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.btn-studio-roll {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px dashed #0284c7;
  border-radius: 10px;
  color: #0284c7;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-studio-roll:hover {
  background: #e0f2fe;
  border-color: #0369a1;
  transform: translateY(-1px);
}

/* 3'lü Forma Kategori Sekmeleri */
.kit-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.kit-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.kit-cat-pill:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}
.kit-cat-pill.active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Sağ Kolon: Kontrol Panelleri */
.studio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 255px;
  overflow-y: auto;
  padding-right: 4px;
}
.studio-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}
.studio-sec-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.studio-sec-icon {
  font-size: 15px;
}
.studio-sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

/* Seçenek Butonları Gridi */
.studio-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}
.studio-chip-btn {
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}
.studio-chip-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}
.studio-chip-btn.active {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(14, 165, 233, 0.25);
}

/* Renk Paleti Satırları & Swatchlar */
.studio-color-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.color-row-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  min-width: 110px;
}
.swatches-container {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.color-swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.color-swatch-btn:hover {
  transform: scale(1.2);
}
.color-swatch-btn.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 2.5px #0284c7;
}

/* Kulüp Simgeleri Gridi */
.studio-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 5px;
}
.studio-icon-btn {
  padding: 6px 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}
.studio-icon-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}
.studio-icon-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
}

/* ============================================================ */
/* ADIM 5: ÖZET & İNCELEME PANELİ (Step 1 ile Birebir Uyumlu)  */
/* ============================================================ */
.obw-summary-unified-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.obw-summary-rows-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
@container game (max-width: 600px) {
  .obw-summary-rows-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  gap: 8px;
  min-width: 0;
}
.sum-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.sum-row-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.sum-row-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sum-row-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sum-row-value {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sum-row-multi {
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.sum-row-multi strong {
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.sum-row-visuals {
  flex-wrap: wrap;
}
.sum-row-visuals .sum-row-left {
  flex: 1 1 auto;
  min-width: 190px;
}
.sum-row-visuals-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.sum-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.15s;
}
.sum-badge-item:hover {
  transform: translateY(-2px);
}
.sum-mini-thumb {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 3px;
  box-sizing: border-box;
}
.sum-mini-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sum-mini-caption {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.btn-ob-edit {
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #0284c7;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-ob-edit:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.ksc-info {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

/* Auth & Onboarding Modalları Genel Kuralı (Canvas İçi Sınırlandırılmış) */
.auth-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
  animation: authFadeIn 0.2s ease-out;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Google Dialog Card (Kurumsal Google Stili) */
.google-dialog-card {
  position: relative;
  background: #ffffff;
  color: #202124;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.g-dialog-header { margin-bottom: 20px; }
.g-dialog-title { font-size: 20px; font-weight: 700; color: #202124; margin: 10px 0 6px 0; }
.g-dialog-sub { font-size: 13px; color: #5f6368; margin: 0; line-height: 1.4; }
.g-account-box {
  background: #f8f9fa;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}
.g-avatar {
  font-size: 24px;
  background: #e8f0fe;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.g-account-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.g-email-input {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #202124;
  box-sizing: border-box;
}
.g-verified-pill { font-size: 11px; color: #1e8e3e; font-weight: 600; }
.g-dialog-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-g-continue {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-g-continue:hover { background: #1557b0; }
.btn-g-cancel {
  background: transparent;
  color: #5f6368;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
.btn-g-cancel:hover { background: #f1f3f4; color: #202124; }

/* Facebook Dialog Card */
.facebook-dialog-card {
  position: relative;
  background: #ffffff;
  color: #1c1e21;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.fb-dialog-header { margin-bottom: 20px; }
.fb-dialog-title { font-size: 20px; font-weight: 700; color: #1877f2; margin: 10px 0 6px 0; }
.fb-dialog-sub { font-size: 13px; color: #606770; margin: 0; line-height: 1.4; }
.fb-account-box {
  background: #f0f2f5;
  border: 1px solid #ccd0d5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.fb-avatar {
  font-size: 24px;
  background: #e7f3ff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fb-account-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fb-input {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  box-sizing: border-box;
}
.fb-dialog-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-fb-continue {
  background: #1877f2;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-fb-continue:hover { background: #166fe5; }
.btn-fb-cancel {
  background: transparent;
  color: #606770;
  border: none;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
.btn-fb-cancel:hover { background: #f0f2f5; }

/* E-posta Dialog Kartı (Google / Facebook kartlarıyla aynı çerçeve) */
.email-dialog-card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 20px;
  padding: 26px 28px;
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.e-dialog-header { text-align: center; margin-bottom: 16px; }
.e-dialog-icon {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff); border: 1.5px solid #bae6fd;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.e-dialog-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; color: #0f172a; }
.e-dialog-sub { font-size: 13px; color: #64748b; margin: 0; line-height: 1.4; }
.e-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: #f1f5f9; border-radius: 12px;
}
.e-tab {
  flex: 1; border: none; background: transparent; border-radius: 9px; padding: 9px 8px;
  font-family: inherit; font-size: 13px; font-weight: 800; color: #64748b; cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.e-tab.active { background: #ffffff; color: #0284c7; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); }
.e-form { display: flex; flex-direction: column; gap: 12px; }
.e-field { display: flex; flex-direction: column; gap: 5px; }
.e-label { font-size: 12px; font-weight: 800; color: #475569; }
.e-field input {
  width: 100%; box-sizing: border-box; border: 1.5px solid #cbd5e1; border-radius: 12px;
  padding: 11px 14px; font-family: inherit; font-size: 15px; font-weight: 600; color: #0f172a; background: #f8fafc;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.e-field input:focus { border-color: #0ea5e9; background: #ffffff; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }
.e-msg { font-size: 12.5px; font-weight: 700; color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 8px 10px; }
.btn-e-continue {
  border: none; border-radius: 12px; padding: 12px; font-family: inherit; font-size: 15px; font-weight: 800; color: #ffffff; cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-e-continue:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14, 165, 233, 0.45); }
.btn-e-continue:active { transform: translateY(0); }
.btn-e-continue:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-e-cancel {
  background: #f1f5f9; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 10px; font-family: inherit;
  font-size: 13px; font-weight: 800; color: #475569; cursor: pointer; transition: background 0.15s;
}
.btn-e-cancel:hover { background: #e2e8f0; }

/* Top Eleven Stili Yeni Kulüp Kurulum Ekranı (Onboarding Dialog Card) */
.onboarding-dialog-card {
  position: relative;
  background: linear-gradient(145deg, #0b1324 0%, #111d33 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(2, 132, 199, 0.2);
  color: #ffffff;
  box-sizing: border-box;
}
.ob-header { text-align: center; margin-bottom: 24px; }
.ob-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.ob-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 6px 0;
}
.ob-sub { font-size: 13px; color: #94a3b8; margin: 0 auto; max-width: 480px; line-height: 1.45; }

.ob-body-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
}
@container game (max-width: 640px) {
  .ob-body-grid { grid-template-columns: 1fr; }
}

/* Canlı Arma Önizleme Kolonu */
.ob-preview-column {
  display: flex;
  justify-content: center;
}
.ob-crest-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.ob-crest-shield {
  width: 100px;
  height: 115px;
  margin: 0 auto 14px auto;
  border-radius: 12px 12px 50px 50px;
  background: linear-gradient(135deg, #1e3a8a, #f59e0b);
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-crest-inner {
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 28, 0.85);
  border-radius: 8px 8px 44px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-crest-icon { font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.ob-preview-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  word-break: break-word;
}
.ob-preview-mgr { font-size: 12px; color: #38bdf8; font-weight: 600; margin-bottom: 6px; }
.ob-preview-stadium { font-size: 10.5px; color: #64748b; }

/* Form Kolonu */
.ob-form-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.ob-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ob-form-group label .req { color: #f43f5e; }
.ob-form-group input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.ob-form-group input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* Renk Presets */
.ob-color-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-preset-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}
.color-preset-btn:hover { transform: scale(1.15); }
.color-preset-btn.active {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  transform: scale(1.15);
}

/* Arma İkon Presets */
.ob-icon-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-preset-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-preset-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.icon-preset-btn.active {
  background: rgba(14, 165, 233, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.ob-error-alert {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fecdd3;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-ob-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  transition: all 0.2s ease;
}
.btn-ob-submit:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.6);
}

.client-auth-footer-bar {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.client-auth-footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.caf-studio {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0f172a;
}
.caf-version {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
}
.client-server-dot {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.client-server-dot.online {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
.client-server-dot.offline {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* State 2: Manager Hub Header & Currencies (Soft Dark Graphite Grey Bar) */
.game-top-bar {
  background: #181d26; /* Koyu ama yumuşak grafit gri tonu */
  border-top: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  margin: 0;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.btn-menu-drawer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-menu-drawer:hover {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.menu-burger { font-size: 16px; }

/* Currencies: Token & Cash Square Boxes in Top Right Corner */
.top-currencies {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #222936; /* Şık koyu gri zemin */
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; /* Keskin ama hafif yuvarlatılmış estetik kutu */
  padding: 7px 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  height: 45px; /* Genel %5-7 büyütüldü */
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.currency-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}
.currency-pill.token-pill {
  border-color: rgba(245, 158, 11, 0.55);
}
.currency-pill.rest-pill {
  border-color: rgba(56, 189, 248, 0.55);
}
.currency-pill.morale-pill {
  border-color: rgba(217, 70, 239, 0.55);
}
.currency-pill.health-pill {
  border-color: rgba(239, 68, 68, 0.55);
}
.currency-pill.tactic-pill {
  border-color: rgba(99, 102, 241, 0.55);
}
.currency-pill.cash-pill {
  border-color: rgba(52, 211, 153, 0.55);
}

.currency-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}
/* Token ikonu ideal 28px */
.currency-icon.token-icon svg,
.currency-icon.token-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
/* Diğer ikonlar (Para, Sağlık, Moral, Enerji, Taktik) azıcık daha büyük (31px) */
.currency-icon:not(.token-icon) svg,
.currency-icon:not(.token-icon) img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.currency-amount {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff !important; /* Sabit BEYAZ renk */
  letter-spacing: 0.5px;
}

.currency-add-btn {
  width: 21px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #10b981;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}
.currency-add-btn:hover {
  transform: scale(1.12);
  background: #34d399;
}

/* Hub Tab Views */
.hub-tab-view {
  padding: 20px;
  flex: 1;
}

.hub-tab-view.pes-squad-fullview,
.hub-tab-view.training-fullview {
  padding: 0;
}

/* FPS göstergesi (Game/Core/fpsCounter.js) — Menü düğmesinin yanında, varsayılan kapalı */
.fps-counter {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #22c55e;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* The one Unity player's canvas (Game/Core/unity3d.js): it fills the box of the screen that shows it; parked,
   it waits in an invisible, sized holder (Unity needs a canvas with a real size). */
.unity3d-holder { position: absolute; left: 0; top: 0; width: 960px; height: 540px; visibility: hidden; pointer-events: none; z-index: -1; overflow: hidden; }
.unity3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: 0; touch-action: none; }

/* Touch drag & drop (Game/Core/touchDragDrop.js): a long press drags, it must not select text or open a menu. */
[draggable="true"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.touch-drag-ghost { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }

/* The strip above a phone's keyboard (Game/Core/keyboardBar.js): what is being typed. Screen pixels (not in the window). */
.keyboard-bar { position: fixed; left: 0; right: 0; top: 0;   /* top: KeyboardBar.place (above the keyboard) */ z-index: 2147483600; display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; background: #fff; border-top: 1px solid #cbd5e1; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.25);
  font-family: 'Outfit', sans-serif; color: #0f172a; box-sizing: border-box; }
.keyboard-bar[hidden] { display: none; }
.keyboard-bar-name { flex: none; font-size: 12px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.keyboard-bar-text { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.keyboard-bar-text.empty { color: #94a3b8; font-weight: 500; }
