/* =========================================================
   MC4FUN HOTFIX V3 - READABILITY / CLICK / PERFORMANCE
   Bu dosya mc4fun-rebuild-v1 ve performance-v2'den sonra yüklenir.
========================================================= */

:root{
  --mc4-hotfix-navy:#071026;
  --mc4-hotfix-navy-2:#0b1227;
  --mc4-hotfix-card:rgba(9,13,31,.94);
  --mc4-hotfix-card-2:rgba(15,23,42,.96);
  --mc4-hotfix-border:rgba(139,92,246,.32);
  --mc4-hotfix-text:#f8fafc;
  --mc4-hotfix-muted:#cbd5e1;
  --mc4-hotfix-dark-text:#111827;
  --mc4-hotfix-light-muted:#475569;
  --mc4-hotfix-gold:#facc15;
  --mc4-hotfix-purple:#7c3aed;
}

/* 1) Performans: blur/fixed/background maliyetini düşür */
html,body{scroll-behavior:auto!important;}
body.mc4-rebuild::before{
  filter:none!important;
  transform:none!important;
  opacity:.24!important;
  background-position:center top!important;
  background-attachment:scroll!important;
}
body.mc4-rebuild::after{opacity:.92!important;}
body.mc4-rebuild *,
body.mc4-rebuild *::before,
body.mc4-rebuild *::after{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.mc4-rebuild .card,
body.mc4-rebuild .mc4-card,
body.mc4-rebuild .mc4-master-shell,
body.mc4-rebuild .mc4-master-footer,
body.mc4-rebuild .mc4-global-recent,
body.mc4-rebuild .mc4-recent,
body.mc4-rebuild .mc4-store-card,
body.mc4-rebuild .mc4-product-detail-card{
  box-shadow:0 10px 24px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
@media (max-width:980px),(prefers-reduced-motion:reduce){
  body.mc4-rebuild *,body.mc4-rebuild *::before,body.mc4-rebuild *::after{
    animation:none!important;transition:none!important;text-shadow:none!important;
  }
  body.mc4-rebuild::before{display:none!important;}
  body.mc4-rebuild::after{background:linear-gradient(180deg,rgba(3,7,18,.92),rgba(3,7,18,.98))!important;}
}

/* 2) Scrollbar: küçük, beyaz tutamaç, lacivert kanal */
*{scrollbar-width:thin;scrollbar-color:#e5e7eb var(--mc4-hotfix-navy)!important;}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-track{background:var(--mc4-hotfix-navy)!important;border-radius:999px;}
::-webkit-scrollbar-thumb{background:#e5e7eb!important;border:2px solid var(--mc4-hotfix-navy)!important;border-radius:999px;}
::-webkit-scrollbar-thumb:hover{background:#ffffff!important;}

/* 3) LeaderOS branding: gizlemeden, görünür ve stabil */
a[href*="leaderos"],
footer a[href*="leaderos"],
.mc4-leaderos-credit,
.mc4-brand-credit{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  overflow:visible!important;
  position:relative!important;
  z-index:20!important;
  color:#94a3b8!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:700!important;
  text-decoration:none!important;
  pointer-events:auto!important;
  transform:none!important;
  clip:auto!important;
  clip-path:none!important;
  background:transparent!important;
}
.mc4-auth-powered,
.mc4-leaderos-fallback{
  width:100%;display:flex!important;justify-content:center;align-items:center;
  padding:10px 12px 16px;background:#030712;color:#94a3b8!important;font-size:12px;font-weight:700;
}

/* 4) Genel okunabilirlik: kart, tablo, rozet, modal */
body.mc4-rebuild .card,
body.mc4-rebuild .table,
body.mc4-rebuild table,
body.mc4-rebuild .modal-content,
body.mc4-rebuild .swal2-popup{
  color:var(--mc4-hotfix-text)!important;
}
body.mc4-rebuild table th,
body.mc4-rebuild table td,
body.mc4-rebuild .table th,
body.mc4-rebuild .table td{
  color:#e5e7eb!important;
  border-color:rgba(139,92,246,.18)!important;
}
body.mc4-rebuild table a,
body.mc4-rebuild table strong{color:#fff!important;}
body.mc4-rebuild .badge,
body.mc4-rebuild [class*="badge"],
body.mc4-rebuild [class*="status"],
body.mc4-rebuild td span[class*="bg-"],
body.mc4-rebuild td div[class*="bg-"]{
  color:#111827!important;
  background:#e5e7eb!important;
  border:1px solid rgba(15,23,42,.10)!important;
  box-shadow:none!important;
  opacity:1!important;
  visibility:visible!important;
}
body.mc4-rebuild .swal2-popup{
  background:#ffffff!important;
  color:#111827!important;
  border-radius:18px!important;
}
body.mc4-rebuild .swal2-title,
body.mc4-rebuild .swal2-html-container{color:#111827!important;}
body.mc4-rebuild .swal2-close,
body.mc4-rebuild [aria-label="Close"],
body.mc4-rebuild .modal .close,
body.mc4-rebuild .modal button.close{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  color:#111827!important;background:#fff!important;border:1px solid rgba(15,23,42,.12)!important;
  border-radius:999px!important;opacity:1!important;visibility:visible!important;z-index:999999!important;
  box-shadow:0 8px 20px rgba(0,0,0,.22)!important;cursor:pointer!important;
}

/* 5) Formlar / Destek mesaj / Yetkili başvuru: beyaz alanda yazılar net */
body.mc4-rebuild input:not([type="checkbox"]):not([type="radio"]),
body.mc4-rebuild textarea,
body.mc4-rebuild select,
body.mc4-rebuild .form-control,
body.mc4-rebuild .ck.ck-editor__main>.ck-editor__editable,
body.mc4-rebuild .ck-editor__editable,
body.mc4-rebuild .ck-content[contenteditable="true"]{
  background:#ffffff!important;
  color:#111827!important;
  border:1px solid rgba(99,102,241,.28)!important;
  border-radius:12px!important;
  caret-color:#111827!important;
  opacity:1!important;
}
body.mc4-rebuild input::placeholder,
body.mc4-rebuild textarea::placeholder{color:#64748b!important;opacity:1!important;}
body.mc4-rebuild label,
body.mc4-rebuild .form-label,
body.mc4-rebuild .ck-label,
body.mc4-rebuild form p,
body.mc4-rebuild form small{
  color:#e5e7eb!important;
  opacity:1!important;
}
body[class*="mc4-path-applications"] label,
body[class*="mc4-path-applications"] .form-label,
body[class*="mc4-path-forms"] label,
body[class*="mc4-path-forms"] .form-label{
  color:#111827!important;
  font-weight:800!important;
  text-shadow:none!important;
}
body[class*="mc4-path-applications"] .card,
body[class*="mc4-path-forms"] .card,
body[class*="mc4-path-applications"] section form,
body[class*="mc4-path-forms"] section form{
  background:rgba(255,255,255,.94)!important;
  color:#111827!important;
  border-color:rgba(99,102,241,.22)!important;
}
body[class*="mc4-path-applications"] input,
body[class*="mc4-path-applications"] textarea,
body[class*="mc4-path-forms"] input,
body[class*="mc4-path-forms"] textarea{
  background:#fff!important;color:#111827!important;border-color:rgba(99,102,241,.28)!important;
}
body.mc4-rebuild .ck.ck-toolbar{
  background:#f8fafc!important;
  border:1px solid rgba(99,102,241,.22)!important;
  color:#111827!important;
}
body.mc4-rebuild .ck.ck-button,
body.mc4-rebuild .ck.ck-button .ck-icon,
body.mc4-rebuild .ck.ck-dropdown__button{color:#111827!important;}

/* 6) EFT/Havale manuel ödeme: beyaz kartta yazılar okunur */
body[class*="mc4-path-payment-manual"] .card,
body[class*="mc4-path-payment-manual"] .bg-white,
body[class*="mc4-path-payment-manual"] .ck-content,
body[class*="mc4-path-payment-manual"] .ck-content *{
  color:#111827!important;
  text-shadow:none!important;
}
body[class*="mc4-path-payment-manual"] .card,
body[class*="mc4-path-payment-manual"] .bg-white{
  background:#fffaf0!important;
  border:1px solid rgba(234,179,8,.42)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
body[class*="mc4-path-payment-manual"] .ck-content strong,
body[class*="mc4-path-payment-manual"] .ck-content b,
body[class*="mc4-path-payment-manual"] .ck-content h1,
body[class*="mc4-path-payment-manual"] .ck-content h2,
body[class*="mc4-path-payment-manual"] .ck-content h3{color:#0f172a!important;}
body[class*="mc4-path-payment-manual"] .ck-content .bg-red-100,
body[class*="mc4-path-payment-manual"] .ck-content [class*="red"]{
  color:#fff!important;background:#b91c1c!important;border-color:#ef4444!important;
}

/* 7) Sepet / kredi kullan / sözleşme kabul: tıklanabilirlik */
body[class*="mc4-path-store-cart"] input[type="checkbox"],
body[class*="mc4-path-store-cart"] input[type="radio"],
body[class*="mc4-path-cart"] input[type="checkbox"],
body[class*="mc4-path-cart"] input[type="radio"],
body[class*="mc4-path-credits"] input[type="checkbox"],
body[class*="mc4-path-credits"] input[type="radio"]{
  -webkit-appearance:auto!important;
  appearance:auto!important;
  position:relative!important;
  z-index:50!important;
  pointer-events:auto!important;
  visibility:visible!important;
  opacity:1!important;
  cursor:pointer!important;
  accent-color:#7c3aed!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
}
body[class*="mc4-path-store-cart"] label,
body[class*="mc4-path-cart"] label,
body[class*="mc4-path-credits"] label,
body[class*="mc4-path-store-cart"] button,
body[class*="mc4-path-cart"] button,
body[class*="mc4-path-credits"] button{
  position:relative!important;
  z-index:40!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
body[class*="mc4-path-store-cart"] button:disabled,
body[class*="mc4-path-cart"] button:disabled,
body[class*="mc4-path-credits"] button:disabled{
  cursor:not-allowed!important;opacity:.55!important;
}
body[class*="mc4-path-store-cart"] .card,
body[class*="mc4-path-cart"] .card{overflow:visible!important;}

/* 8) Profil / sipariş geçmişi: durum ve tarih yanları görünür */
body[class*="mc4-path-account"] table,
body[class*="mc4-path-account"] .table{
  background:rgba(6,10,24,.78)!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
body[class*="mc4-path-account"] table th,
body[class*="mc4-path-account"] table td{
  color:#e5e7eb!important;
  background:rgba(10,15,35,.54)!important;
}
body[class*="mc4-path-account"] table td:last-child *,
body[class*="mc4-path-account"] table td [class*="badge"],
body[class*="mc4-path-account"] table td [class*="status"]{
  color:#111827!important;
  background:#e2e8f0!important;
  border-radius:999px!important;
  min-width:32px!important;
  min-height:22px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}

/* 9) Light mode: parlaklık azalt, yazıları koyulaştır */
html.mc4-theme-light body.mc4-rebuild,
body.mc4-theme-light.mc4-rebuild{
  color:#111827!important;
}
html.mc4-theme-light body.mc4-rebuild::after,
body.mc4-theme-light.mc4-rebuild::after{
  background:linear-gradient(180deg,rgba(241,245,249,.22),rgba(241,245,249,.52))!important;
}
html.mc4-theme-light body.mc4-rebuild .card,
html.mc4-theme-light body.mc4-rebuild .mc4-card,
html.mc4-theme-light body.mc4-rebuild .mc4-global-recent,
html.mc4-theme-light body.mc4-rebuild .mc4-recent,
body.mc4-theme-light.mc4-rebuild .card,
body.mc4-theme-light.mc4-rebuild .mc4-card,
body.mc4-theme-light.mc4-rebuild .mc4-global-recent,
body.mc4-theme-light.mc4-rebuild .mc4-recent{
  background:rgba(255,255,255,.94)!important;
  color:#111827!important;
  border-color:rgba(99,102,241,.24)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.13)!important;
}
html.mc4-theme-light body.mc4-rebuild .card *,
html.mc4-theme-light body.mc4-rebuild .mc4-global-recent *,
html.mc4-theme-light body.mc4-rebuild .mc4-recent *,
body.mc4-theme-light.mc4-rebuild .card *,
body.mc4-theme-light.mc4-rebuild .mc4-global-recent *,
body.mc4-theme-light.mc4-rebuild .mc4-recent *{
  color:#111827!important;
  text-shadow:none!important;
}
html.mc4-theme-light body.mc4-rebuild .text-gray-400,
html.mc4-theme-light body.mc4-rebuild .text-gray-500,
html.mc4-theme-light body.mc4-rebuild small,
body.mc4-theme-light.mc4-rebuild .text-gray-400,
body.mc4-theme-light.mc4-rebuild .text-gray-500,
body.mc4-theme-light.mc4-rebuild small{color:#475569!important;}

/* 10) Son kayıtlar: tüm kayıtlar okunur */
.mc4-global-recent-player,
.mc4-recent-player{
  min-width:0!important;
}
.mc4-global-recent-info,
.mc4-recent-player div{min-width:0!important;}
.mc4-global-recent-info strong,
.mc4-recent-player strong{
  color:#ffffff!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.mc4-global-recent-info small,
.mc4-recent-player span{color:#cbd5e1!important;}
html.mc4-theme-light .mc4-global-recent-info strong,
html.mc4-theme-light .mc4-recent-player strong,
body.mc4-theme-light .mc4-global-recent-info strong,
body.mc4-theme-light .mc4-recent-player strong{color:#111827!important;}
html.mc4-theme-light .mc4-global-recent-info small,
html.mc4-theme-light .mc4-recent-player span,
body.mc4-theme-light .mc4-global-recent-info small,
body.mc4-theme-light .mc4-recent-player span{color:#475569!important;}

/* 11) IP / online pill okunabilir */
.mc4-master-online,
.mc4-status-pill,
.mc4-header-quick-item,
[data-toggle="copyip"]{
  background:linear-gradient(180deg,rgba(7,16,38,.92),rgba(3,7,18,.96))!important;
  border:1px solid rgba(139,92,246,.34)!important;
  color:#ffffff!important;
}
.mc4-master-online *,
.mc4-status-pill *,
.mc4-header-quick-item *,
[data-toggle="copyip"] *{color:#ffffff!important;text-shadow:none!important;}

/* 12) Auth / footer yasal linkler */
.mc4-footer-legal a,
.mc4-auth-legal-links a{
  color:#e5e7eb!important;
  background:rgba(7,16,38,.72)!important;
  border-color:rgba(139,92,246,.24)!important;
}
html.mc4-theme-light .mc4-footer-legal a,
body.mc4-theme-light .mc4-footer-legal a{color:#334155!important;background:rgba(255,255,255,.74)!important;}

@media (max-width:640px){
  .mc4-global-recent-grid,.mc4-recent-grid{grid-template-columns:1fr!important;}
  .mc4-master-online strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
