/* CoreXaPay v6.6.2 - light theme + auth sizing + logout + withdrawal hotfix UI */

/* Login / register: banner column exactly follows the form card's width and height. */
.auth-split-shell{
  /* v6.6.3: Sol form genişliği yaklaşık korunur, yalnız sağ banner kolonu yatayda genişletilir. */
  width:min(1180px,calc(100% - 36px))!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.16fr)!important;
  align-items:stretch!important;
  gap:24px!important;
}
.auth-split-shell .auth-wrap,
.auth-split-shell .auth-ad-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  min-height:100%!important;
}
.auth-split-shell .auth-ad-card{
  aspect-ratio:auto!important;
  align-self:stretch!important;
  justify-self:stretch!important;
}
.auth-split-shell .auth-ad-card img{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#101827!important;
}
@media(max-width:900px){
  .auth-split-shell{width:min(620px,calc(100% - 28px))!important;grid-template-columns:1fr!important;align-items:start!important}
  .auth-split-shell .auth-ad-card{width:min(100%,420px)!important;min-height:0!important;aspect-ratio:1/1!important;justify-self:center!important}
  .auth-split-shell .auth-ad-card img{min-height:0!important;aspect-ratio:1/1!important;object-fit:contain!important;object-position:center center!important}
}

/* Light mode: contract / legal documents */
html[data-theme="light"] .legal-document{color:#251a34!important}
html[data-theme="light"] .legal-document h1,
html[data-theme="light"] .legal-document h2,
html[data-theme="light"] .legal-document h3,
html[data-theme="light"] .legal-document strong{color:#21152f!important}
html[data-theme="light"] .legal-document p,
html[data-theme="light"] .legal-document li{color:#51445e!important}
html[data-theme="light"] .legal-document hr{border-color:#e5dcef!important}
html[data-theme="light"] .legal-document a{color:#6034a5!important}
html[data-theme="light"] .legal-document a:hover{color:#462276!important}
html[data-theme="light"] .legal-example{
  background:linear-gradient(145deg,#f9f5ff,#ffffff)!important;
  border-color:#ded0ed!important;
  color:#251a34!important;
  box-shadow:0 8px 24px rgba(86,50,129,.06)!important;
}
html[data-theme="light"] .legal-example p,
html[data-theme="light"] .legal-example span{color:#51445e!important}
html[data-theme="light"] .legal-example strong{color:#251a34!important}

/* Light mode: mandatory terms acceptance page, fully adapted. */
html[data-theme="light"] .terms-gate-wrap{
  background:linear-gradient(145deg,#f4edff 0%,#fbf9ff 48%,#ffffff 100%)!important;
}
html[data-theme="light"] .terms-gate{
  background:#fff!important;
  border-color:#ddd1eb!important;
  box-shadow:0 26px 70px rgba(65,36,101,.12)!important;
}
html[data-theme="light"] .terms-gate h1{color:#241631!important}
html[data-theme="light"] .terms-gate .muted{color:#74667f!important}
html[data-theme="light"] .terms-version{
  background:#f2eaff!important;
  border-color:#d9c7ee!important;
  color:#5d4a6c!important;
}
html[data-theme="light"] .terms-version strong{color:#4f267f!important}
html[data-theme="light"] .terms-scroll{
  background:#fcfaff!important;
  border-color:#dfd4eb!important;
  color:#342840!important;
}
html[data-theme="light"] .terms-scroll h1,
html[data-theme="light"] .terms-scroll h2,
html[data-theme="light"] .terms-scroll h3,
html[data-theme="light"] .terms-scroll strong{color:#21152f!important}
html[data-theme="light"] .terms-scroll p,
html[data-theme="light"] .terms-scroll li{color:#51445e!important}
html[data-theme="light"] .terms-check{
  background:#f8f4fd!important;
  border-color:#d9cae9!important;
  color:#2d2138!important;
}
html[data-theme="light"] .terms-check span,
html[data-theme="light"] .terms-check strong{color:#2d2138!important}

/* Official brand appearance for the three footer social icons in light mode. */
html[data-theme="light"] .footer-socials a{
  background:#fff!important;
  border-width:1px!important;
  opacity:1!important;
}
html[data-theme="light"] .footer-socials a svg{opacity:1!important;width:20px!important;height:20px!important}
html[data-theme="light"] .footer-socials a:nth-child(1){color:#C13584!important;border-color:#e4b8d2!important;background:#fff5fb!important}
html[data-theme="light"] .footer-socials a:nth-child(1):hover{color:#E1306C!important;background:#ffeaf4!important;border-color:#db8fb6!important}
html[data-theme="light"] .footer-socials a:nth-child(2){color:#25D366!important;border-color:#a9e8bf!important;background:#f1fff6!important}
html[data-theme="light"] .footer-socials a:nth-child(2):hover{color:#128C7E!important;background:#e5fff0!important;border-color:#79dba1!important}
html[data-theme="light"] .footer-socials a:nth-child(3){color:#5865F2!important;border-color:#bdc2fa!important;background:#f4f5ff!important}
html[data-theme="light"] .footer-socials a:nth-child(3):hover{color:#4752C4!important;background:#e9ebff!important;border-color:#969ff5!important}
html[data-theme="light"] .footer-socials a:nth-child(1) svg rect,
html[data-theme="light"] .footer-socials a:nth-child(1) svg circle{fill:none!important;stroke:currentColor!important;stroke-width:2!important}
html[data-theme="light"] .footer-socials a:nth-child(2) svg path:first-child{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
html[data-theme="light"] .footer-socials a:nth-child(2) svg path:last-child{fill:currentColor!important;stroke:none!important}
html[data-theme="light"] .footer-socials a:nth-child(3) svg path{fill:currentColor!important;stroke:none!important}
html[data-theme="light"] .footer-socials a:nth-child(3) svg circle{fill:#fff!important;stroke:none!important}

/* Dedicated red logout action for both customer/admin navigation. */
.side-nav .side-logout{
  margin-top:10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  color:#ffd9df!important;
  background:linear-gradient(135deg,#8e2031,#b52840)!important;
  border:1px solid #c84458!important;
  box-shadow:0 9px 22px rgba(155,28,49,.18)!important;
}
.side-nav .side-logout:hover,
.side-nav .side-logout:focus{
  color:#fff!important;
  background:linear-gradient(135deg,#a72136,#cf304c)!important;
  border-color:#e0586b!important;
  transform:translateY(-1px);
}
.side-logout-icon{font-size:18px;line-height:1;font-weight:800}
html[data-theme="light"] .side-nav .side-logout{
  color:#fff!important;
  background:linear-gradient(135deg,#d7354f,#b8213b)!important;
  border-color:#dc5367!important;
  box-shadow:0 10px 24px rgba(180,31,55,.16)!important;
}
html[data-theme="light"] .side-nav .side-logout:hover{color:#fff!important;background:linear-gradient(135deg,#c72843,#a91b33)!important}
.terms-logout{background:#9f2638!important;border-color:#be3b50!important;color:#fff!important}
.terms-logout:hover{background:#bb2c43!important;color:#fff!important}
html[data-theme="light"] .terms-logout{background:#c92f49!important;border-color:#d84d63!important;color:#fff!important}

/* Withdrawal form states */
.withdrawal-low-balance{background:#2a1a13;border-color:#76513c;color:#f2c8a9}
html[data-theme="light"] .withdrawal-low-balance{background:#fff7ed!important;border-color:#efd0a7!important;color:#7b4a1d!important}
.withdrawal-submit:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.65)}


/* v6.6.6 - 1000x1000 auth banner: show the WHOLE image, never crop */
.auth-split-shell .auth-ad-card{
  overflow:hidden!important;
  background:#101827!important;
}
.auth-split-shell .auth-ad-card > img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  transform:none!important;
}
html[data-theme="light"] .auth-split-shell .auth-ad-card{
  background:#f7f4ff!important;
}
