/* MOONZON V128 — standalone portal layout repair + screenshot palette alignment.
   Visual-only: preserves existing page content, links, login routes and data placeholders. */
:root{--mz128-cream:#fff8e9;--mz128-paper:#fffdf8;--mz128-plum:#4b064f;--mz128-plum2:#68136a;--mz128-gold:#e5b83f;--mz128-line:#e8d7b2;--mz128-ink:#281b2c;--mz128-green:#07563e;--mz128-mint:#c8efd7;}
html,body{min-height:100%;width:100%;}
body.customer-theme,body.seller-theme,body.admin-theme{background:linear-gradient(135deg,#fffaf0 0%,#f8f0df 100%)!important;color:var(--mz128-ink)!important;overflow-x:hidden!important;}
body.customer-theme .top,body.seller-theme .top,body.admin-theme .top{width:100%!important;min-height:78px!important;padding:12px clamp(14px,2.5vw,36px)!important;background:linear-gradient(100deg,#fffdf8,#f6e8c9)!important;color:#321c39!important;border-bottom:1px solid #e5d2a8!important;box-shadow:0 4px 18px #43234412!important;}
body.customer-theme .brand,body.seller-theme .brand,body.admin-theme .brand{color:var(--mz128-plum)!important;font-size:27px!important;}
body.customer-theme .brand small,body.seller-theme .brand small,body.admin-theme .brand small{color:#6c5360!important;}
body.customer-theme .topnav a,body.seller-theme .topnav a,body.admin-theme .topnav a{color:#38243d!important;padding:8px 10px!important;border-radius:9px!important;}
body.customer-theme .topnav a.login,body.seller-theme .topnav a.login,body.admin-theme .topnav a.login{background:linear-gradient(120deg,#f7dc83,#d9a936)!important;color:#321536!important;}
body.customer-theme .layout,body.seller-theme .layout,body.admin-theme .layout{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;gap:16px!important;width:100%!important;max-width:1600px!important;margin:16px auto!important;padding:0 16px!important;align-items:start!important;}
body.customer-theme .layout>aside,body.seller-theme .layout>aside,body.admin-theme .layout>aside{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;position:sticky!important;top:92px!important;max-height:calc(100vh - 108px)!important;overflow-y:auto!important;padding:12px!important;border-radius:17px!important;}
body.customer-theme .layout>main,body.seller-theme .layout>main,body.admin-theme .layout>main{display:block!important;grid-column:2!important;width:100%!important;max-width:none!important;min-width:0!important;overflow:visible!important;}
body.customer-theme .layout>aside{background:linear-gradient(180deg,#fffdf8,#fff6e4)!important;border:1px solid #e5d5b4!important;box-shadow:0 6px 20px #4b064f12!important;}
body.customer-theme .profile{background:linear-gradient(120deg,#5b0b60,#390445)!important;color:#fff!important;border:0!important;border-bottom:3px solid var(--mz128-gold)!important;border-radius:13px!important;}
body.customer-theme .profile b,body.customer-theme .profile small{color:#fff!important;}
body.customer-theme .side a{color:#351b3a!important;border-radius:10px!important;margin:3px 0!important;padding:12px 11px!important;}
body.customer-theme .side a:hover,body.customer-theme .side a.active{background:linear-gradient(100deg,#f6d979,#d9a638)!important;color:#35113d!important;}
body.seller-theme .layout>aside{background:linear-gradient(180deg,#fffdf7,#f1f8ef)!important;border:1px solid #d6e5d7!important;box-shadow:0 6px 20px #07563e12!important;}
body.seller-theme .profile{background:linear-gradient(120deg,#07563e,#063526)!important;color:#fff!important;border:0!important;border-bottom:3px solid #a6dfb8!important;border-radius:13px!important;}
body.seller-theme .profile b,body.seller-theme .profile small{color:#fff!important;}
body.seller-theme .side a{color:#183c2d!important;border-radius:10px!important;margin:3px 0!important;padding:11px!important;}
body.seller-theme .side a:hover,body.seller-theme .side a.active{background:linear-gradient(100deg,#c8efd7,#8bd4a7)!important;color:#063c2c!important;}
body.admin-theme .layout>aside{background:linear-gradient(180deg,#4b064f,#2b0030)!important;color:#fff!important;border:0!important;box-shadow:0 8px 24px #39044525!important;}
body.admin-theme .profile{background:linear-gradient(120deg,#6a126c,#3b0645)!important;color:#fff!important;border:0!important;border-bottom:3px solid var(--mz128-gold)!important;border-radius:13px!important;}
body.admin-theme .profile b,body.admin-theme .profile small{color:#fff!important;}
body.admin-theme .side a{color:#fff8e9!important;border-radius:10px!important;margin:3px 0!important;padding:11px!important;}
body.admin-theme .side a:hover,body.admin-theme .side a.active{background:linear-gradient(100deg,#f6d979,#d9a638)!important;color:#321536!important;}
body.customer-theme .hero,body.admin-theme .hero{background:linear-gradient(110deg,#fff0c8,#fffaf0 58%,#e8c978)!important;border:1px solid #dfbd70!important;color:#321b39!important;border-radius:18px!important;box-shadow:0 7px 20px #43234412!important;}
body.customer-theme .hero h1,body.admin-theme .hero h1,body.customer-theme .sectionhead h2,body.admin-theme .sectionhead h2{color:var(--mz128-plum)!important;}
body.seller-theme .hero{background:linear-gradient(110deg,#dff3e5,#fffdf8 58%,#b9e5ca)!important;border:1px solid #c8e1ce!important;color:#173b2e!important;border-radius:18px!important;box-shadow:0 7px 20px #07563e12!important;}
body.seller-theme .hero h1,body.seller-theme .sectionhead h2{color:var(--mz128-green)!important;}
body.customer-theme .metric,body.customer-theme .quick,body.customer-theme .module,body.customer-theme .dashboard-panel,body.admin-theme .metric,body.admin-theme .quick,body.admin-theme .module,body.admin-theme .dashboard-panel{background:linear-gradient(145deg,#fffdf8,#fff7e8)!important;border:1px solid var(--mz128-line)!important;border-radius:15px!important;box-shadow:0 4px 14px #43234410!important;}
body.seller-theme .metric,body.seller-theme .quick,body.seller-theme .module,body.seller-theme .dashboard-panel{background:linear-gradient(145deg,#fffefa,#f3faf2)!important;border:1px solid #d2e4d3!important;border-radius:15px!important;box-shadow:0 4px 14px #07563e10!important;}
body.customer-theme .metric strong,body.admin-theme .metric strong{color:var(--mz128-plum)!important;}body.seller-theme .metric strong{color:var(--mz128-green)!important;}
body.customer-theme .quick,body.admin-theme .quick{color:var(--mz128-plum)!important;background:linear-gradient(120deg,#fff4d8,#fffdf8)!important;}body.seller-theme .quick{color:var(--mz128-green)!important;background:linear-gradient(120deg,#e5f7e9,#fffdf8)!important;}
body.customer-theme .module,body.admin-theme .module{color:#321b39!important;}body.seller-theme .module{color:#183c2d!important;}
body.customer-theme .dashboard-panel h3,body.admin-theme .dashboard-panel h3{color:var(--mz128-plum)!important;}body.seller-theme .dashboard-panel h3{color:var(--mz128-green)!important;}
body.customer-theme table,body.admin-theme table{border-color:var(--mz128-line)!important;}body.seller-theme table{border-color:#d2e4d3!important;}
body.customer-theme thead th,body.admin-theme thead th{background:#f5e8c9!important;color:#2f1c35!important;}body.seller-theme thead th{background:#e5f3e6!important;color:#173b2e!important;}
body.customer-theme footer,body.seller-theme footer,body.admin-theme footer{color:#786b73!important;}
@media(max-width:900px){body.customer-theme .layout,body.seller-theme .layout,body.admin-theme .layout{grid-template-columns:minmax(0,1fr)!important;margin:10px auto!important;padding:0 10px!important;}body.customer-theme .layout>aside,body.seller-theme .layout>aside,body.admin-theme .layout>aside{position:static!important;top:auto!important;width:100%!important;max-height:none!important;}body.customer-theme .layout>main,body.seller-theme .layout>main,body.admin-theme .layout>main{grid-column:1!important;width:100%!important;}}
@media(max-width:620px){body.customer-theme .side,body.seller-theme .side,body.admin-theme .side{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.customer-theme .metrics,body.seller-theme .metrics,body.admin-theme .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.customer-theme .quickgrid,body.seller-theme .quickgrid,body.admin-theme .quickgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}body.customer-theme .modules,body.seller-theme .modules,body.admin-theme .modules{grid-template-columns:1fr!important;}body.customer-theme .topnav,body.seller-theme .topnav,body.admin-theme .topnav{width:100%!important;}}
