/* Masrur Creators 1.6 • Day/Night appearance. Complements creators-halai.css.
   No data model, coupon, authentication or payout logic is changed here. */
:root { --theme-time: .25s; }
.theme-toggle{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:41px;min-width:107px;padding:8px 13px;margin:0;
  border:1px solid rgba(188,157,255,.28);border-radius:14px;
  background:linear-gradient(112deg,rgba(156,113,243,.18),rgba(228,146,209,.075));
  color:#f2e9ff;font-weight:800;font-size:.83rem;line-height:1.2;
  transition:background .22s,border .22s,color .22s,transform .2s,box-shadow .22s;
  white-space:nowrap;box-shadow:inset 0 1px rgba(255,255,255,.06);
}
.theme-toggle:hover{transform:translateY(-1px);border-color:#b69aff;background:rgba(160,123,232,.25)}
.theme-toggle:focus-visible{outline:3px solid #be91fa;outline-offset:3px}
.theme-toggle svg{width:18px;height:18px;flex:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;fill:none}
.theme-toggle .theme-icon-moon{display:none}
html[data-theme=light] .theme-toggle .theme-icon-sun{display:none}
html[data-theme=light] .theme-toggle .theme-icon-moon{display:block}
@media(max-width:900px){.theme-toggle{min-width:44px;width:44px;padding:9px}.theme-toggle .theme-toggle-label{display:none}}
@media(max-width:620px){.topbar{gap:9px}.toplinks{gap:7px}.toplinks>a:not(.nav-pill){display:none!important}.toplinks .link-btn{padding:8px;font-size:.75rem}.theme-toggle{width:42px;min-width:42px;min-height:42px}.topbar .brand{flex-shrink:0}}

/* DAY MODE — crisp lilac surfaces, warm white canvas, readable ink. */
html[data-theme=light]{
  color-scheme:light;
  --bg:#f7f6fd;--bg2:#f0edfb;--surface:#ffffff;--surface2:#f5f2ff;
  --line:#e5ddf4;--ink:#25203c;--sub:#69637d;
  --lime:#6b42c4;--pink:#b93e86;--purple:#7250bd;--blue:#3777bf;
  --shadow:0 16px 55px rgba(59,39,105,.07);--focus:rgba(117,77,199,.18);
}
html[data-theme=light] body.mc-page{
  background:radial-gradient(ellipse 62% 37% at 80% -4%,rgba(197,173,255,.26),transparent 78%),
             radial-gradient(ellipse 43% 32% at 0 95%,rgba(255,182,221,.20),transparent 86%),
             linear-gradient(160deg,#faf9ff,#f6f5fc 50%,#f9f7fd);
  color:var(--ink);
}
html[data-theme=light] .ambient.a{background:#bc97fa;opacity:.11}
html[data-theme=light] .ambient.b{background:#f6abd4;opacity:.1}
html[data-theme=light] body.mc-page h1,
html[data-theme=light] body.mc-page h2,
html[data-theme=light] body.mc-page h3{color:#2b2343}
html[data-theme=light] body.mc-page p{color:#69637d}
html[data-theme=light] body.mc-page a:hover{color:#6840b3}
html[data-theme=light] body.mc-page :focus-visible{outline-color:#8254d5}
html[data-theme=light] ::selection{color:#fff;background:#7b58d0}

/* Top navigation / identity */
html[data-theme=light] .topbar{
  background:rgba(255,255,255,.92);border-bottom:1px solid #e9e3f2;
  box-shadow:0 4px 28px rgba(71,46,107,.06);
}
html[data-theme=light] .brand strong{color:#302347}
html[data-theme=light] .brand strong span{color:#9d6de5}
html[data-theme=light] .brand small{color:#7546cf}
html[data-theme=light] .topbar-context{background:#f9f6ff;color:#786d90;border-color:#e9def9}
html[data-theme=light] .topbar-pulse{background:#a775de;box-shadow:0 0 12px #c7a6f8}
html[data-theme=light] .toplinks>a:not(.nav-pill){color:#504861}
html[data-theme=light] .toplinks>a:not(.nav-pill):hover{color:#7043bc}
html[data-theme=light] .toplinks .nav-pill{color:#6337ae;border-color:#e1d2f7;background:linear-gradient(110deg,#f4edff,#fbedf8)}
html[data-theme=light] .link-btn{background:#f7f2ff;border:1px solid #e4d7f5;color:#6d43b6}
html[data-theme=light] .link-btn:hover{background:#eee3ff;color:#512b9b}
html[data-theme=light] .theme-toggle{background:linear-gradient(125deg,#f3edff,#fff1f9);color:#7043b5;border-color:#decff6;box-shadow:0 4px 12px rgba(95,66,142,.07)}
html[data-theme=light] .theme-toggle:hover{background:#e9dcff;border-color:#ad8be1}

/* Layout / content */
html[data-theme=light] .sidebar{background:linear-gradient(160deg,#fff,#fbfaff);border:1px solid #e8e0f3;box-shadow:0 15px 45px rgba(80,56,127,.075)}
html[data-theme=light] .side-caption{color:#87809a}
html[data-theme=light] .side-caption::before{background:#a17af4;box-shadow:0 0 0 5px #aa8bed23}
html[data-theme=light] .side-link{color:#615a72}
html[data-theme=light] .side-link .nav-icon{color:#85769d}
html[data-theme=light] .side-link:hover{color:#683aac;background:#f3edff;border-color:#ebddfa}
html[data-theme=light] .side-link:hover .nav-icon{color:#8155c3}
html[data-theme=light] .side-link.on{color:#5d339f;background:linear-gradient(112deg,#efe6ff,#fbf1fc);border-color:#dfcff9;box-shadow:inset -3px 0 #9468e0}
html[data-theme=light] .side-link.on .nav-icon{color:#7744c5}
html[data-theme=light] .side-bottom{border-top-color:#ece5f6;color:#8b819d}
html[data-theme=light] .side-bottom a{color:#7344c4}
html[data-theme=light] .eyebrow,html[data-theme=light] .pagehead .eyebrow{color:#7e4cc8}
html[data-theme=light] .eyebrow::before{background:#b478e1;box-shadow:0 0 9px #d8b6ef80}
html[data-theme=light] .creator-welcome .sparkle{color:#ba68c6}
html[data-theme=light] .section-header a{color:#6e45b5}
html[data-theme=light] .section-header a:hover{color:#46238a}

/* Surfaces with a subtle color signature instead of flat inversion */
html[data-theme=light] .panel{
  background:linear-gradient(155deg,#fff,#fefcff 84%);
  border:1px solid #e9e1f1;
  box-shadow:0 12px 36px rgba(72,45,120,.067),0 2px 5px rgba(70,40,115,.026);
}
html[data-theme=light] .panel.bright{background:radial-gradient(ellipse 90% 120% at 2% 2%,#e9dcff,transparent 72%),linear-gradient(135deg,#fbf7ff,#fff5fd);border-color:#e5d1f9}
html[data-theme=light] .panel .panel{background:#faf8ff;box-shadow:none}
html[data-theme=light] .stat{background:linear-gradient(155deg,#fff,#f8f5ff);border:1px solid #e9e1f5;box-shadow:0 10px 24px rgba(81,55,133,.055)}
html[data-theme=light] .stat:nth-child(2){background:linear-gradient(155deg,#fff,#fff5fb)}
html[data-theme=light] .stat:nth-child(3){background:linear-gradient(155deg,#fff,#f4f8ff)}
html[data-theme=light] .stat::before{background:linear-gradient(135deg,#e8d9ff,#f8e8f7);border-color:#e9d9f6}
html[data-theme=light] .stat small{color:#736b84}
html[data-theme=light] .stat strong{color:#5e35ad}
html[data-theme=light] .stat:nth-child(2) strong{color:#b73c85}
html[data-theme=light] .stat:nth-child(3) strong{color:#3573b5}
html[data-theme=light] .stat span{color:#837a94}

/* Buttons */
html[data-theme=light] .btn{background:#f5f0fd;color:#623e9e;border:1px solid #e5d9f4;box-shadow:0 3px 9px rgba(88,50,139,.04)}
html[data-theme=light] .btn:hover:not(:disabled){background:#eee4fb;color:#4f278f;border-color:#caaeea;box-shadow:0 10px 23px rgba(82,49,137,.13)}
html[data-theme=light] .btn.primary{color:#fff;background:linear-gradient(110deg,#7142c4,#9663d8 63%,#c276c9);border-color:#8355ce;box-shadow:0 10px 21px rgba(114,67,199,.18)}
html[data-theme=light] .btn.primary:hover{color:#fff;background:linear-gradient(110deg,#6632c3,#8c56d6,#b869c9);box-shadow:0 15px 28px rgba(114,67,199,.24)}
html[data-theme=light] .btn.glass{color:#5b339f;background:#fff7ffb8;border-color:#decaf2}

/* Forms: explicit !important to out-rank dark v1.5 form rules */
html[data-theme=light] label{color:#433755}
html[data-theme=light] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme=light] select,
html[data-theme=light] textarea{background:#fff!important;color:#29223b!important;border:1px solid #dcd2eb!important;box-shadow:inset 0 1px 3px rgba(81,55,121,.035)!important}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#9589a6!important}
html[data-theme=light] input:focus,html[data-theme=light] select:focus,html[data-theme=light] textarea:focus{border-color:#a17be1!important;box-shadow:0 0 0 3px rgba(133,89,213,.16)!important}
html[data-theme=light] input[readonly]{background:#f7f2ff!important;color:#59318e!important;border:1px dashed #c9b6e4!important}
html[data-theme=light] input[type=file]{background:#fcfaff!important;border:1px dashed #c8b5e2!important}
html[data-theme=light] input[type=file]::file-selector-button{background:#7651c2;color:white}
html[data-theme=light] input[type=checkbox],html[data-theme=light] input[type=radio]{accent-color:#8053cc}
html[data-theme=light] .auth-card{background:radial-gradient(circle at 0 0,#e8d9ff70,transparent 45%),#fff;border:1px solid #e7dcef;box-shadow:0 25px 75px rgba(80,51,127,.095)}
html[data-theme=light] .auth-card .eyebrow{color:#8f59d6}
html[data-theme=light] .foot-note a,html[data-theme=light] .check a{color:#713db9}
html[data-theme=light] .radio-cards label{background:#fcfaff;border-color:#e8deef}
html[data-theme=light] .radio-cards label:has(input:checked){background:#f1e8ff;border-color:#b594ed;box-shadow:inset 0 0 0 1px #ccaeed}

/* Landing: an attractive light layout, not flat white */
html[data-theme=light] .hero{background:radial-gradient(circle at 78% 10%,#f1d8ffbf,transparent 33%),radial-gradient(circle at 4% 97%,#e5e6ffae,transparent 37%),linear-gradient(138deg,#fff,#f6f0ff 73%,#fff4f8);border-color:#e7d7f8;box-shadow:0 25px 65px rgba(96,57,143,.095)}
html[data-theme=light] .hero::before{border-color:#b99ae34c;box-shadow:0 0 0 42px #b99ae30b,0 0 0 85px #b99ae30a}
html[data-theme=light] .hero::after{color:#693baf11}
html[data-theme=light] .hero h1{color:#2e2147}
html[data-theme=light] .hero h1 em{background:linear-gradient(105deg,#7343c9,#be559f,#6558ce);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme=light] .hero p{color:#655974}
html[data-theme=light] .hero .eyebrow{color:#8750c0}
html[data-theme=light] .hero-circles span{background:#f7efffe0;border-color:#b998e7;color:#8251c9}
html[data-theme=light] .hero-circles span:nth-child(2){background:linear-gradient(125deg,#8959d4,#b478d2);color:#fff;border-color:#925ecf}
html[data-theme=light] .hero-circles span:nth-child(3){color:#b3508c;border-color:#d99bc6}
html[data-theme=light] .feature,html[data-theme=light] .feature.lime,html[data-theme=light] .feature.pink{background:linear-gradient(150deg,#fff,#fbf7ff);border:1px solid #eadff4;box-shadow:0 10px 28px rgba(72,45,120,.055);color:#3a2c53}
html[data-theme=light] .feature.lime{background:linear-gradient(145deg,#fff,#f3f4ff)}
html[data-theme=light] .feature.pink{background:linear-gradient(145deg,#fff,#fff4f9)}
html[data-theme=light] .feature b{color:#8250bb!important}
html[data-theme=light] .feature.lime b{color:#5269bd!important}
html[data-theme=light] .feature.pink b{color:#b54f8c!important}
html[data-theme=light] .feature h2{color:#2e2447!important}
html[data-theme=light] .feature p{color:#70667f!important}

/* Links, report tables, uploads, status badges, FAQ and legal */
html[data-theme=light] .coupon{background:linear-gradient(120deg,#fcf9ff,#f6f0ff);border:1px dashed #c8b1e8}
html[data-theme=light] .coupon>span:first-child{color:#a04f9c}
html[data-theme=light] .bigcode{color:#693eac;text-shadow:none}
html[data-theme=light] .locked{background:#f9f5ff;border:1px dashed #d7c2eb}
html[data-theme=light] .locked a{color:#7143b7}
html[data-theme=light] .notice,html[data-theme=light] .alert{color:#593c8c;background:#f1e9ff;border-color:#dac7f8}
html[data-theme=light] .notice a{color:#6f3bb0}
html[data-theme=light] .alert.success{background:#e7f7f0;color:#247457;border-color:#bee6d3}
html[data-theme=light] .alert.error{background:#fff0f4;color:#ac3d5e;border-color:#f3cad7}
html[data-theme=light] .tag{background:#f3edfa;color:#725c8d;border-color:#e3d7ed}
html[data-theme=light] .tag.active,html[data-theme=light] .tag.eligible,html[data-theme=light] .tag.approved,html[data-theme=light] .tag.paid{background:#e8f8f1;color:#1d8263;border-color:#bae8d3}
html[data-theme=light] .tag.reversed,html[data-theme=light] .tag.rejected,html[data-theme=light] .tag.error,html[data-theme=light] .tag.suspended{background:#fff0f4;color:#b13d68;border-color:#f5cfdb}
html[data-theme=light] .tag.pending,html[data-theme=light] .tag.requested,html[data-theme=light] .tag.draft{background:#fff5e8;color:#9a6324;border-color:#f5dbb3}
html[data-theme=light] .tablewrap{border-color:#e9e1f2}
html[data-theme=light] th{background:#f4f0fb;color:#554d68}
html[data-theme=light] th,html[data-theme=light] td{border-bottom-color:#ece5f3}
html[data-theme=light] td{color:#3e3752}
html[data-theme=light] tr:hover td{background:#f8f4ff}
html[data-theme=light] code{color:#6843a1}
html[data-theme=light] .cell-note{color:#81788f}
html[data-theme=light] .tabs{background:#f5f0fb;border-color:#e3d7f2}
html[data-theme=light] .tab{color:#756789}
html[data-theme=light] .tab:hover{background:#ede3fb;color:#5d3499}
html[data-theme=light] .tab.selected{background:#e7d7ff;color:#6136a4;border-color:#d6bdf3}
html[data-theme=light] .mini-stat{background:#f7f2fe;border-color:#e9dff5;color:#70627f}
html[data-theme=light] .mini-stat b{color:#693eab}
html[data-theme=light] .faq{background:linear-gradient(145deg,#fff,#fdfaff);border-color:#e9dfef;box-shadow:0 5px 18px rgba(64,35,99,.04)}
html[data-theme=light] .faq summary{color:#302543}
html[data-theme=light] .faq[open]{background:#f8f3ff;border-color:#cdb6ee}
html[data-theme=light] .legal h2{border-right-color:#9e6add}
html[data-theme=light] .creator-request{border-color:#e9dfef}
html[data-theme=light] .creator-request b{color:#633da2}
html[data-theme=light] .statement .stat{background:#fbf8ff}
html[data-theme=light] .footer{border-top-color:#e6dcf0;background:#fcfaff;color:#8c819a}
html[data-theme=light] .footer a{color:#695879}
html[data-theme=light] .footer a:hover{color:#703db8}
html[data-theme=light] #toast{background:linear-gradient(115deg,#6f43b8,#9e62ca);color:white;border-color:#e6d1ff}

@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none!important}}
@media print{.theme-toggle{display:none!important}}

/* v1.7 — Icon-only button: a compact, accessible header control. */
.theme-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;gap:0;border-radius:14px}
.theme-toggle svg{width:19px;height:19px}
.theme-toggle .theme-toggle-label{display:none!important}
@media(max-width:900px){.theme-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}}
@media(max-width:620px){.theme-toggle{width:42px;min-width:42px;height:42px;min-height:42px;padding:0}}
