/* Platform enjeksiyon katmanı — snapshot CSS'ine dokunmaz. */
:root {
  --pl-accent: #f5c51f;
  --pl-header: #0e1f04;
  --pl-header-text: #fff;
  --pl-primary: #0e1f04;
  --pl-surface: #fff;
  --pl-text: #191919;
  --pl-radius: 6px;
  --pl-font: "Source Sans Pro", "Roboto", sans-serif;
}

#pl-topbar.pl-topbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  height: 32px;
  background: var(--pl-header);
  color: var(--pl-header-text);
  font-family: var(--pl-font);
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
#pl-topbar.pl-topbar[hidden] { display: none; }
#pl-topbar.pl-topbar.pl-hidden { transform: translateY(-100%); }
.pl-topbar-inner {
  max-width: 1400px;
  height: 32px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.pl-user { font-weight: 700; opacity: 0.9; margin-right: auto; }
.pl-balance { font-weight: 800; color: var(--pl-accent); letter-spacing: 0.02em; }
.pl-topbar-btn {
  appearance: none;
  border: 0;
  background: var(--pl-accent);
  color: #111;
  font: inherit;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  line-height: 24px;
}
.pl-topbar-btn.pl-logout { background: transparent; color: var(--pl-header-text); border: 1px solid rgba(255, 255, 255, 0.4); }
.pl-topbar-btn:focus-visible,
.pl-chat-bubble:focus-visible,
.pl-chat button:focus-visible,
.pl-chat textarea:focus-visible {
  outline: 3px solid var(--pl-accent);
  outline-offset: 2px;
}

/* --- Toast --- */
.pl-toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.pl-toast {
  background: #111;
  color: #fff;
  font-family: var(--pl-font);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: pl-in 0.18s ease;
}
.pl-toast.is-error { background: #8f1d1d; }
.pl-toast.is-ok { background: #1c5f24; }

/* --- Chat --- */
/* Snapshot'taki işlevsiz LiveChat balonu; bizimki çalışır durumda */
.xzc-root, #chat-widget-container, iframe#chat-widget { display: none !important; }
.OperatorAccountContainer .OperatorHeaderDeposit .Currency { white-space: nowrap; display: inline-flex; flex-direction: row; }
.OperatorAccountContainer .OperatorHeaderDeposit .FormattedAmount { display: inline; white-space: nowrap; }
.OperatorAccountContainer .OperatorHeaderDeposit .CurrencyPlaceholder { display: none; }
.DropDownBackground.IsActive { display: block !important; }
.MyAccountMenuLink.pl-passive { opacity: .45; }
.MyAccountMenuLink.pl-passive:hover { opacity: .7; }
.MyAccountMenuLink:not(.pl-passive):hover { color: #b58900; }
.MyAccountMenu.TornamentsRankContainer:empty { display: none; }
@media (max-width: 767px) {
  .HamburgerButton {
    display: inline-flex !important;
    position: static !important;
    pointer-events: auto !important;
    left: auto;
    top: auto;
    width: 3.4rem !important;
    min-width: 3.4rem;
    height: 3.4rem;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff !important;
  }
  .HamburgerButton::before { content: ''; width: 18px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
  .HamburgerButton svg, .HamburgerButton .SvgIcon { display: none !important; }
  .OperatorLogo { margin-right: auto; }
  .OperatorLogoLink, .OperatorLogo .SvgIcon, .OperatorLogo svg { width: 50px !important; }
  .OperatorHeaderContainer { width: auto !important; }
  .OperatorMaxwidth.HeaderContainer { padding-left: .6rem !important; padding-right: .6rem !important; gap: .2rem; }
  .MenuDrawer { display: flex !important; }
  .pl-mobile-search { display: flex; align-items: center; gap: .8rem; height: 3.8rem; margin-top: 54px; padding: 0 1rem; background: #fff; color: #222; border-bottom: 1px solid #d8d8d8; position: sticky; top: 54px; z-index: 9; }
  .pl-mobile-search svg { width: 18px; height: 18px; fill: none; stroke: #5a6b4a; stroke-width: 2; flex: none; }
  .pl-mobile-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #222; }
  .Page-Sports .SectionContent { padding-top: 0 !important; }
}
@media (max-width: 479px) {
  .OperatorAccountContainer .GamificationDropdownContainer { display: none !important; }
  .OperatorAccountContainer .WhatsappIconWrapper { display: flex !important; }
  .OperatorAccountContainer .OperatorHeaderDeposit { padding-left: .6rem; padding-right: .6rem; margin-left: .4rem; flex-shrink: 0; }
  .HeaderContainer .OperatorMaxwidth { padding-left: .6rem; padding-right: .6rem; }
  .OperatorAccountContainer { flex-shrink: 0; }
}
.pl-logout:hover { background: rgba(0, 0, 0, .12); }
@media (max-width: 479px) { .pl-topbar-inner { gap: 8px; padding: 0 8px; font-size: 12px; } .pl-topbar-btn { padding: 4px 8px; } }
.pl-chat-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--pl-accent);
  color: #111;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-chat-bubble svg { width: 28px; height: 28px; }
.pl-chat-panel[hidden] { display: none; }
.pl-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 2147483001;
  width: 360px;
  height: 520px;
  background: #fff;
  color: #191919;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--pl-font);
}
.pl-chat-head { background: var(--pl-header); color: var(--pl-header-text); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.pl-chat-head strong { font-size: 15px; }
.pl-chat-head small { display: block; opacity: 0.75; font-weight: 400; }
.pl-chat-close { background: transparent; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.pl-chat-body { flex: 1; overflow-y: auto; padding: 12px; background: #f6f7f4; display: flex; flex-direction: column; gap: 8px; }
.pl-chat-body[hidden], .pl-chat-form[hidden] { display: none; }
.pl-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.pl-msg.user { align-self: flex-end; background: var(--pl-accent); color: #111; border-bottom-right-radius: 3px; }
.pl-msg.admin, .pl-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e2e4dd; border-bottom-left-radius: 3px; }
.pl-msg-meta { font-size: 10px; opacity: 0.6; margin-top: 3px; }
.pl-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.pl-options button { background: #fff; border: 1px solid var(--pl-accent); color: #111; border-radius: 14px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.pl-typing { font-size: 11px; color: #555; padding: 0 12px 6px; min-height: 18px; }
.pl-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff; }
.pl-chat-form textarea { flex: 1; resize: none; height: 40px; border: 1px solid #ccc; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 13px; }
.pl-chat-form button { border: 0; background: var(--pl-primary); color: var(--pl-header-text); padding: 0 14px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.pl-chat-start { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fff; overflow-y: auto; flex: 1; }
.pl-chat-greeting { margin: 0; font-size: 14px; font-weight: 700; color: #222; }
.pl-chat-start[hidden] { display: none; }
.pl-start-intro { margin: 0; font-size: 13px; color: #555; }
.pl-chat-start label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #333; }
.pl-chat-start label span { font-weight: 400; opacity: .55; font-size: 11px; }
.pl-chat-start input, .pl-chat-start textarea { width: 100%; border: 1px solid #ccc; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 13px; resize: vertical; }
.pl-chat-start input:focus, .pl-chat-start textarea:focus { outline: 2px solid var(--pl-accent); outline-offset: 1px; }
.pl-start-btn { border: 0; border-radius: 8px; padding: 10px; background: var(--pl-accent); color: #111; font-weight: 800; cursor: pointer; }
.pl-start-btn[disabled] { opacity: .6; cursor: wait; }
.pl-start-error { margin: 0; font-size: 12px; color: #8f1d1d; }
.pl-start-error[hidden] { display: none; }
.pl-chat-body { min-height: 70px; }

/* --- Giriş / kayıt katmanı --- */
.pl-auth-tabs {
  margin: 0 0 2px;
  text-align: center;
}
.pl-auth-tabs a {
  margin: 0 3px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--pl-accent);
  font-family: var(--pl-font);
}
.pl-auth-tabs a:focus-visible { outline: 3px solid var(--pl-accent); outline-offset: 2px; }
.pl-form-error {
  background: #fdecec;
  border: 1px solid #e3a1a1;
  color: #7d1616;
  border-radius: 4px;
  padding: 9px 11px;
  font-size: 13px;
  margin: 4px 0 10px;
}
.pl-form-error[hidden] { display: none; }
.pl-honey { display: block; font-size: 13px; color: #333; }
.pl-honey span { display: block; line-height: 20px; }
.pl-honey input { width: 100%; height: 42px; border: 1px solid #dedede; border-radius: 4px; padding: 10px 12px; font: inherit; background: #fff; }
.pl-remember { margin: 0; line-height: 20px; display: flex; align-items: center; gap: 7px; height: 20px; }
.pl-remember input { width: 16px; height: 16px; accent-color: var(--pl-accent); }
.LoginModal .pl-auth-tabs, .LoginModal .pl-remember, .LoginModal .pl-honey { display: none; }
.LoginModal .LoginFormWrapper { background: #fff; }
.pl-field-hint { font-size: 12px; color: #4c6b2f; padding: 4px 2px 0; min-height: 14px; }
.pl-field-hint.is-bad { color: #8f1d1d; }
.RegisterFormContent textarea { width: 100%; padding: 10px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; }
.RegisterFormContent .pl-auth-tabs { margin: 0 0 16px; }
.RegisterFormContent .pl-auth-tabs a { color: var(--pl-accent); }
.RegisterFormContent .pl-auth-tabs a.is-active { color: #111; }
.RegisterFormSubmitButton { cursor: pointer; }
.RegisterFormSubmitButton[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 767px) {
  .ModalWindow.LoginModal {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: block;
    overflow-y: auto;
    background: transparent;
  }
  .ModalWindow.LoginModal .ModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(33, 33, 33, 0.55);
    backdrop-filter: blur(4px);
  }
  .ModalWindow.LoginModal .ModalContent {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 100%;
    background: transparent;
  }
  .ModalWindow.LoginModal .ModalCloseButton {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    z-index: 50;
    border-radius: 50%;
    background: rgba(33, 33, 33, 0.6);
    color: #fff;
    fill: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .ModalWindow.LoginModal .ModalCloseButton .Icon { display: none; }
  .ModalWindow.LoginModal .ModalCloseButton::before { content: '×'; font-size: 28px; line-height: 1; }
  .ModalWindow.LoginModal .LoginFormWrapper {
    width: 100%;
    min-height: 100vh;
    height: auto;
    background: transparent;
    padding: 6px 0 24px;
  }
  .ModalWindow.LoginModal .LoginFormMobileHeader { height: auto; background: transparent; padding: 10px 16px 0; }
  .ModalWindow.LoginModal .LoginFormMobileHeader h2 { color: #fff; }
  .ModalWindow.LoginModal .CustomLoginContent { color: #fff; }
  .ModalWindow.LoginModal form.Form { background: transparent; }
}

@media (max-width: 600px) {
  .pl-topbar-inner { gap: 8px; padding: 0 8px; font-size: 12px; }
  .pl-topbar-btn { padding: 4px 8px; }
  .pl-chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .pl-chat-bubble { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
