/* MOONZON V114 — reference-layout implementation for real unified portal sections.
   Visual-only additive layer. Existing IDs, data bindings, forms, buttons and JS handlers remain intact. */
:root{--v114-cream:#fff8eb;--v114-paper:#fffdf8;--v114-gold:#d7a52e;--v114-gold2:#f4d98f;--v114-plum:#5b0b60;--v114-plum2:#3d0849;--v114-green:#07563e;--v114-mint:#b9efd2;--v114-navy:#132f59;--v114-ink:#211b27;--v114-line:#e8d8b5;--v114-shadow:0 5px 18px rgba(55,35,12,.09)}
/* Shared canvas and premium card system */
body{background:linear-gradient(135deg,#fffaf1,#f7efdf)!important;color:var(--v114-ink)}
#sellerSection,#adminSection,#customerDashboard{max-width:1500px!important;margin:16px auto!important;padding:0 12px!important}
#sellerSection .panel,#adminSection .panel,#customerDashboard>.panel{background:var(--v114-paper)!important;border:1px solid var(--v114-line)!important;border-radius:18px!important;box-shadow:var(--v114-shadow)!important;padding:18px!important;color:var(--v114-ink)!important}
#sellerSection h2,#sellerSection h3,#adminSection h2,#adminSection h3,#customerDashboard h2,#customerDashboard h3{color:var(--v114-plum)!important;font-weight:850!important}
#sellerSection button,#adminSection button,#customerDashboard button{border-radius:10px!important;font-weight:750!important;min-height:38px}
#sellerSection input,#sellerSection select,#sellerSection textarea,#adminSection input,#adminSection select,#adminSection textarea,#customerDashboard input,#customerDashboard select,#customerDashboard textarea{border:1px solid #dfcfad!important;border-radius:9px!important;background:#fffefa!important;padding:10px 12px!important;max-width:100%}
/* Customer dashboard: reference-style welcome, profile summary, metrics and order/wishlist panels */
#customerDashboard{display:grid!important;grid-template-columns:minmax(230px,285px) minmax(0,1fr)!important;grid-template-areas:"welcome welcome" "profile profile" "orders wishlist" "shortcuts shortcuts" "extras extras"!important;gap:14px!important;align-items:start}
#customerDashboard>.shop-heading{grid-area:welcome;background:linear-gradient(105deg,#fff0c8,#fffaf0 58%,#e5c477)!important;border:1px solid #dfbd70!important;border-radius:18px!important;padding:22px!important;box-shadow:var(--v114-shadow)!important}
#customerDashboard>.shop-heading h2{font-size:clamp(22px,3vw,32px)!important;color:var(--v114-plum)!important}
#customerDashboard>.shop-heading p{margin:6px 0!important}
#customerDashboard>.shop-heading button{background:linear-gradient(120deg,#ffe6a0,#d2a039)!important;color:#35113d!important}
#customerDashboard> .panel:nth-of-type(2){grid-area:profile;display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,2fr)!important;gap:14px!important}
#customerDashboard> .panel:nth-of-type(2)>h3{grid-column:1/-1}
#customerDashboard #customerProfileForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 14px!important}
#customerDashboard #customerProfileForm label{font-weight:700!important;color:#49334a!important}
#customerDashboard #customerProfileForm textarea,#customerDashboard #customerProfileForm button{grid-column:1/-1}
#customerDashboard .customer-actions{grid-area:shortcuts;display:flex!important;flex-wrap:wrap!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#customerDashboard .customer-actions button{flex:1 1 180px!important;background:linear-gradient(120deg,#fff0c8,#e8c46d)!important;color:#35113d!important;border:1px solid #d9b45e!important}
#customerDashboard>.panel:has(#customerOrderHistory){grid-area:orders}
#customerDashboard>#customerRefundAccountPanel{grid-area:extras}
#customerDashboard>#customerSafetyPanel{grid-area:extras}
#customerDashboard>.panel:has(#customerOrderHistory) #customerOrderHistory{overflow-x:auto}
#customerDashboard .panel:has(#customerOrderHistory) h3{display:flex;align-items:center;gap:8px}
/* Seller dashboard: dark green seller identity, cream workspace, KPI tiles and structured modules */
#sellerSection>.panel:first-child{background:linear-gradient(115deg,#064b37,#08714e)!important;color:#fff!important;border:1px solid #27855f!important;padding:22px!important}
#sellerSection>.panel:first-child h2,#sellerSection>.panel:first-child p,#sellerSection>.panel:first-child .muted{color:#fff!important}
#sellerSection .workflow-steps{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:16px 0!important}
#sellerSection .workflow-step{background:#fffdf5!important;color:#173b2e!important;border:1px solid #cfe4d4!important;border-radius:12px!important;padding:11px!important;min-width:0}
#sellerSection .seller-hub-nav{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:14px 0!important}
#sellerSection .seller-hub-nav a{background:linear-gradient(120deg,#c9f2d8,#8ed7ad)!important;color:#063d2c!important;border:1px solid #7fc59c!important;border-radius:10px!important;padding:9px 12px!important;font-weight:800!important;text-decoration:none!important}
#sellerSection .seller-hub-nav a:hover{filter:brightness(.97);transform:translateY(-1px)}
#sellerSection>.row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important}
#sellerSection .stat{background:linear-gradient(145deg,#fffdf8,#eaf7ed)!important;border:1px solid #cfe4d4!important;border-radius:16px!important;padding:18px!important;box-shadow:var(--v114-shadow)!important;color:#173b2e!important;font-weight:700!important}
#sellerSection .stat strong{display:block;color:var(--v114-green)!important;font-size:clamp(23px,3vw,34px)!important}
#sellerSection>[id$="Panel"]{margin:12px 0!important}
#sellerSection>[id$="Panel"]>h2{border-bottom:1px solid #e4eadf!important;padding-bottom:10px!important}
#sellerSection .seller-hub-nav a:focus-visible,#sellerSection button:focus-visible{outline:3px solid var(--v114-gold)!important}
/* Admin portal: plum/navy control sidebar feel and gold operational controls */
#adminSection>.panel:first-child{background:linear-gradient(115deg,#4b0755,#24063f)!important;color:#fff!important;border:1px solid #81518a!important;padding:20px!important}
#adminSection>.panel:first-child h2,#adminSection>.panel:first-child p{color:#fff!important}
#adminSection .admin-nav{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:14px 0!important}
#adminSection .admin-nav a{background:linear-gradient(120deg,#fff0c8,#e8c36b)!important;color:#32153b!important;border:1px solid #d5ac4f!important;border-radius:10px!important;padding:9px 12px!important;font-weight:800!important;text-decoration:none!important}
#adminSection .admin-nav a:hover{filter:brightness(.97);transform:translateY(-1px)}
#adminSection>[id$="Panel"]{margin:12px 0!important}
#adminSection>[id$="Panel"]>h2{border-bottom:1px solid #ead9b8!important;padding-bottom:10px!important}
#adminSection .row{gap:12px!important}
/* Consistent enterprise tables: gold header, striped rows, clear statuses, compact actions */
#sellerSection table,#adminSection table,#customerDashboard table,
#sellerSection [id$="Table"] table,#adminSection [id$="Table"] table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fffdf8!important;border:1px solid var(--v114-line)!important;border-radius:14px!important;overflow:hidden!important;box-shadow:var(--v114-shadow)!important}
#sellerSection thead th,#adminSection thead th,#customerDashboard thead th{background:linear-gradient(120deg,#fff0c8,#efd99e)!important;color:#38213b!important;font-weight:850!important;padding:12px 13px!important;border-bottom:1px solid #ddc58e!important;white-space:nowrap!important}
#sellerSection tbody td,#adminSection tbody td,#customerDashboard tbody td{padding:11px 13px!important;border-bottom:1px solid #f0e6d4!important;vertical-align:middle!important}
#sellerSection tbody tr:nth-child(even),#adminSection tbody tr:nth-child(even),#customerDashboard tbody tr:nth-child(even){background:#fff9ef!important}
#sellerSection tbody tr:hover,#adminSection tbody tr:hover,#customerDashboard tbody tr:hover{background:#fff0d0!important}
#sellerSection table button,#adminSection table button,#customerDashboard table button{padding:7px 10px!important;min-height:32px!important;white-space:nowrap!important}
#sellerSection [style*="overflow"],#adminSection [style*="overflow"],#customerDashboard [style*="overflow"]{max-width:100%}
/* Homepage hero and product tiles: plum/gold marketplace reference palette */
body.portal-customer .mz-header{background:linear-gradient(100deg,#3b0647,#6a126c)!important;color:#fff!important;border-bottom:2px solid var(--v114-gold)!important}
body.portal-customer .mz-brand h1,body.portal-customer .mz-brand p{color:#fff!important}
body.portal-customer .mz-search input{background:#fff!important;border:1px solid var(--v114-gold)!important}
body.portal-customer .mz-search button{background:linear-gradient(120deg,#ffe28b,#c99529)!important;color:#35113d!important}
body.portal-customer .mz-categories{background:linear-gradient(90deg,#ffe7a0,#fff4d6)!important;color:#2f1738!important;border-bottom:1px solid #d8ae4b!important}
body.portal-customer .mz-shop .shop-hero{background:linear-gradient(110deg,#390445 0%,#68106d 50%,#d6a33b 100%)!important;border:2px solid #d6a33b!important;border-radius:22px!important;color:#fff!important;box-shadow:0 8px 24px #35113d25!important}
body.portal-customer .mz-shop .shop-hero h2,body.portal-customer .mz-shop .shop-hero p{color:#fff!important}
body.portal-customer .mz-portal-customer{background:linear-gradient(120deg,#650d68,#3d0849)!important}
body.portal-customer .mz-portal-seller{background:linear-gradient(120deg,#08764e,#06432f)!important}
body.portal-customer .mz-portal-admin{background:linear-gradient(120deg,#173f78,#0c2448)!important}
body.portal-customer .mz-shop .product-card{border:1px solid #e6d2a6!important;border-radius:16px!important;box-shadow:var(--v114-shadow)!important;background:#fffdf8!important}
body.portal-customer .mz-shop .product-card button{background:linear-gradient(120deg,#650d68,#3d0849)!important;color:#fff!important}
/* Small screens: preserve controls and allow table scroll rather than crushing columns */
@media(max-width:900px){#customerDashboard{grid-template-columns:1fr!important;grid-template-areas:"welcome" "profile" "orders" "wishlist" "shortcuts" "extras"!important}#sellerSection .workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}#sellerSection>.row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){#customerDashboard> .panel:nth-of-type(2){grid-template-columns:1fr!important}#customerDashboard #customerProfileForm{grid-template-columns:1fr!important}#sellerSection .workflow-steps{grid-template-columns:1fr!important}#sellerSection>.row{grid-template-columns:repeat(2,minmax(0,1fr))!important}#sellerSection table,#adminSection table,#customerDashboard table{min-width:680px!important}#sellerSection [style*="overflow"],#adminSection [style*="overflow"],#customerDashboard [style*="overflow"]{overflow-x:auto!important}}
