:root {
  --bc-color-primary: #FF6A00 !important;
  --primary-color: #FF6A00 !important;
  --color-primary: #FF6A00 !important;
  --bs-accent: #FF6A00 !important;
}

/* Buttons / CTAs — always readable */
.MuiButton-containedPrimary,
.MuiButton-root.MuiButton-containedPrimary,
button[class*="containedPrimary"],
a[class*="containedPrimary"],
.btn-primary,
[class*="btnPrimary"],
[class*="primaryButton"],
button.primary,
.button-primary {
  background-color: #FF6A00 !important;
  background-image: none !important;
  border-color: #FF6A00 !important;
  color: #041405 !important;
}
.MuiButton-containedPrimary:hover,
button[class*="containedPrimary"]:hover,
.btn-primary:hover,
button.primary:hover {
  background-color: #0A9A00 !important;
  border-color: #0A9A00 !important;
  color: #041405 !important;
}

/* Outlined / text primary accents */
.MuiButton-outlinedPrimary,
.MuiButton-textPrimary {
  color: #FF6A00 !important;
  border-color: #FF6A00 !important;
}

/* Tabs indicator only — do NOT force all selected text green in light mode */
.MuiTabs-indicator,
[class*="tabIndicator"] {
  background-color: #FF6A00 !important;
}
html[data-site-mode='dark'] .MuiTab-root.Mui-selected,
html[data-site-mode='dark'] .Mui-selected {
  color: #FF6A00 !important;
}
html[data-site-mode='light'] .MuiTab-root.Mui-selected {
  color: #FF6A00 !important;
}

input:focus, textarea:focus, select:focus,
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #FF6A00 !important;
}

.MuiCheckbox-colorPrimary.Mui-checked,
.MuiSwitch-colorPrimary.Mui-checked .MuiSwitch-thumb,
.MuiRadio-colorPrimary.Mui-checked {
  color: #FF6A00 !important;
}
.MuiSwitch-colorPrimary.Mui-checked + .MuiSwitch-track,
.MuiSwitch-colorPrimary.Mui-checked .MuiSwitch-track {
  background-color: #FF6A00 !important;
}

/* Background primary helpers only */
[class*="bgPrimary"],
[class*="backgroundPrimary"] {
  background-color: #FF6A00 !important;
}

a[href*="affigates.com"] { display: none !important; }

/* Logo: no plate */
img[src*="logo-overwrite"],
img[src*="/logo/logo"],
header img[src*="logo"],
a[href="/"] img,
.logo img,
[class*="logo"] img,
[class*="Logo"] img {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
[class*="logo"],
[class*="Logo"],
a[href="/"] {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.bayspin-powered {
  text-align: center;
  padding: 18px 12px 32px;
  color: #6b7280;
  font-size: 13px;
  position: relative;
  z-index: 5;
}
html[data-site-mode='dark'] .bayspin-powered { color: #cfcfcf; }
.bayspin-powered a {
  color: #FF6A00;
  text-decoration: none;
  font-weight: 600;
}
html[data-site-mode='dark'] .bayspin-powered a { color: #FF6A00; }
.bayspin-powered a:hover { text-decoration: underline; }

/* ===== Light mode readability ===== */
html[data-site-mode='light'] {
  color-scheme: light;
}
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc,
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc,
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc .paper,
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc .paper {
  color: #1f2937 !important;
}
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="Title"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="title"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="Label"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="label"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="getTitle"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="Title"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="title"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="Label"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="label"] {
  color: #374151 !important;
  opacity: 1 !important;
}
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="Value"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="value"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="Amount"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [class*="amount"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="Value"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="value"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="Amount"],
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [class*="amount"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc strong,
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc strong {
  color: #111827 !important;
  opacity: 1 !important;
}

/* Light: kill washed lime/yellow text on white cards */
html[data-site-mode='light'] .dashboardTotalsWidgetEl-bc [style*="color"],
html[data-site-mode='light'] .dashboardSmallWidgetEl-bc [style*="color"] {
  /* JS also cleans; CSS fallback for known washed accents */
}

/* ===== Dark mode accents ===== */
html[data-site-mode='dark'] {
  color-scheme: dark;
}
html[data-site-mode='dark'] a:hover {
  color: #FF6A00 !important;
}

/*aff-mobile-fix*/
@media (max-width: 900px) {
  html, body { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
  #root { min-height: 100vh; overflow-x: hidden; }
  html[data-site-mode='dark'] [class*="hero"],
  html[data-site-mode='dark'] [class*="Hero"],
  html[data-site-mode='dark'] [class*="slogan"],
  html[data-site-mode='dark'] [class*="Slogan"] {
    background-color: #0b0f0c !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .MuiButton-containedPrimary, button[class*="containedPrimary"] {
    min-height: 44px !important;
  }
  img { max-width: 100%; height: auto; }
}

/* dashboard affiliate link card — theme aware */

/* ===== AFF LINK CARD ===== */

/* Toplamlar grid card — Digitain small widget hizasinda */
.bayspin-aff-link-card--toplamlar{
  min-width: 0 !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  float: none !important;
  z-index: auto !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-paper{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-widget{
  width: 100%;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-right: none !important;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-kicker{
  text-align: left !important;
  font-weight: 700 !important;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-tagwrap{
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-value{
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid transparent;
  word-break: normal;
}
html[data-site-mode='light'] .bayspin-aff-link-card--toplamlar .bayspin-aff-link-kicker{ color:#FF6A00 !important; }
html[data-site-mode='dark'] .bayspin-aff-link-card--toplamlar .bayspin-aff-link-kicker{ color:#FFB000 !important; }
html[data-site-mode='light'] .bayspin-aff-link-card--toplamlar .bayspin-aff-link-value{
  color:#1a0f00 !important;
  background:#FFF3E6 !important;
  border-color:rgba(255,106,0,.35) !important;
}
html[data-site-mode='dark'] .bayspin-aff-link-card--toplamlar .bayspin-aff-link-value{
  color:#fff !important;
  background:rgba(255,106,0,.18) !important;
  border-color:rgba(255,106,0,.45) !important;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-copy{
  border:0;
  border-radius:8px;
  padding:7px 12px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  background:#FF6A00;
  color:#041405;
  flex-shrink:0;
}
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-copy:hover{ filter:brightness(1.08); }
/* Eski floating/widget stillerini etkisizlestir */
.bayspin-aff-link-card--widget{
  position: static !important;
  top: auto !important;
  right: auto !important;
  box-shadow: none !important;
}

/* grid width — Toplamlar flex satirinda diger kartlarla hizali */
.bayspin-aff-link-card--toplamlar.dashboardTotalsWidgetEl-bc{
  flex: 0 0 33.3333% !important;
  max-width: 33.3333% !important;
  width: 33.3333% !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.bayspin-aff-link-card--toplamlar .dashboardSmallWidgetEl-bc,
.bayspin-aff-link-card--toplamlar .bayspin-aff-link-widget{
  height: auto !important;
  min-height: 6rem;
  margin-bottom: 1.5rem !important;
  border-right: 0.1rem solid rgba(0,0,0,0.08) !important;
}
html[data-site-mode='dark'] .bayspin-aff-link-card--toplamlar .bayspin-aff-link-widget{
  border-right-color: rgba(255,255,255,0.1) !important;
}
@media (max-width: 991px){
  .bayspin-aff-link-card--toplamlar.dashboardTotalsWidgetEl-bc{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Bitutarsa header logo fix v1792076520 */
.logo-bc {
  width: auto !important;
  min-width: 140px !important;
  max-width: 220px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}
.logo-bc a {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  height: 54px !important;
  background: transparent !important;
}
.logo-bc img,
.logo-bc a img,
header img[src*="logo-overwrite"],
.wrapper-bc .logo-bc img {
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  height: 48px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

