/* MMO HUB Production UI — 2026-07-10 */
:root{
  --font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-title:var(--font-sans);--title:var(--font-sans);
  --primary:#705225;--primary-hover:#705225;--primary-soft:#f8f3e9;
  --navy:#171612;--text:#171612;--muted:#777064;--line:#e7dfd3;
  --surface:#fff;--surface-soft:#fbf8f1;--page:#f3efe7;
  --success:#16a34a;--green:#16a34a;--warning:#705225;--orange:#705225;
  --danger:#755143;--red:#755143;--info:#5e716c;--blue:#705225;--purple:#80663e;
  --radius-xs:8px;--radius-sm:10px;--radius:14px;--radius-lg:18px;
  --shadow-sm:0 1px 2px rgba(23, 22, 18, .05),0 4px 12px rgba(23, 22, 18, .04);
  --shadow:0 12px 32px rgba(23, 22, 18, .08);
  --focus:0 0 0 3px rgba(166, 124, 60, .18)
}
*{box-sizing:border-box}
html{font-family:var(--font-sans);background:var(--page);color:var(--text);scroll-behavior:smooth}
body,button,input,select,textarea{font-family:var(--font-sans)}
body{margin:0;background:var(--page);color:var(--text);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6,.brand-title{font-family:var(--font-sans);letter-spacing:-.02em;color:var(--text)}
a{color:inherit}.container{width:min(1440px,calc(100% - 40px));margin-inline:auto}.main{min-width:0}
.app-header{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);box-shadow:0 1px 8px rgba(23, 22, 18, .04);backdrop-filter:blur(14px);position:sticky;top:0;z-index:90}
.header-inner{min-height:68px;gap:20px}.brand-mark{background:linear-gradient(135deg,var(--primary),#baa06f)!important;color:#fff!important;box-shadow:none!important}.brand-sub{letter-spacing:.13em;color:var(--muted)!important}
.top-note{min-height:34px;background:var(--navy)!important;color:#fff;font-size:12px}.top-nav a{border-radius:9px;font-size:13px;font-weight:700}.top-nav a:hover,.top-nav a.active{background:var(--primary-soft);color:var(--primary)}
.search.global-search{height:42px;border:1px solid var(--line);background:#fff;border-radius:12px;box-shadow:none}.search.global-search:focus-within{border-color:var(--primary);box-shadow:var(--focus)}.search-submit{background:var(--primary)!important;border-radius:8px!important;color:#fff!important;font-weight:750!important}
.card,.card-3d,.side-card,.stat,.pro-form-card,.pro-side-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);transform:none!important}.card:hover,.card-3d:hover{transform:none!important}
.btn{min-height:40px;border-radius:10px;font-weight:750;letter-spacing:0;box-shadow:none;transition:.18s ease}.btn:focus-visible,.input:focus,.select:focus,textarea:focus{outline:0;box-shadow:var(--focus);border-color:var(--primary)}.btn-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}.btn-primary:hover{background:var(--primary-hover)!important}.btn-soft,.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--text)}.btn-danger{background:var(--danger);color:#fff;border-color:var(--danger)}.btn:disabled{cursor:not-allowed;opacity:.55}
.input,.select,.pro-input,input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],select,textarea{min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-size:13.5px;padding:9px 12px;transition:.18s ease}textarea{min-height:100px;resize:vertical}.field label,.pro-field-label{display:block;margin-bottom:6px;color:#4c473f;font-size:12.5px;font-weight:750}.form-grid{gap:16px}
.table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#fff}.table{width:100%;border-collapse:separate;border-spacing:0}.table th{position:sticky;top:0;z-index:1;background:#fbf8f1;color:#625c53;font-size:11.5px;text-transform:uppercase;letter-spacing:.035em;padding:12px 14px;border-bottom:1px solid var(--line)}.table td{padding:13px 14px;border-bottom:1px solid #eef2f7;font-size:13px}.table tbody tr:hover{background:#f7f1e8}.table tbody tr:last-child td{border-bottom:0}
.status,.badge,.tag{border-radius:999px!important;font-weight:750!important}.status.success,.tag.green{background:#eef6f1;color:#15803d}.status.pending,.tag.orange{background:#fbf6ec;color:#a67c3c}.status.cancel,.status.danger{background:#f3ece6;color:#654b3d}
.empty{padding:36px 20px!important;text-align:center;color:var(--muted)}
.notice{border-radius:12px;border:1px solid var(--line);padding:13px 15px}.notice.warning{background:#f7f1e8;border-color:#e7cf96;color:#705225}.notice.success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.site-footer{margin-top:56px;background:var(--navy);color:#d8d0c4;border-top:0}.footer-inner{width:min(1440px,calc(100% - 40px));margin:auto;padding:50px 0 34px;display:grid;grid-template-columns:minmax(230px,1.35fr) repeat(4,minmax(150px,1fr));gap:34px}.footer-brand p{color:#9b9285;max-width:340px;line-height:1.75}.footer-brand .brand-title{color:#fff}.footer-col h4{color:#fff;font-size:13px;margin:0 0 14px}.footer-col a{display:block;color:#9b9285;font-size:12.5px;margin:9px 0;text-decoration:none}.footer-col a:hover{color:#fff}.footer-trust-list{display:grid;gap:9px;margin-top:18px;font-size:12px}.footer-trust-list span{display:flex;align-items:center;gap:7px}.payment-list{display:flex;flex-wrap:wrap;gap:7px}.payment-list span{border:1px solid #4c473f;background:#28251f;color:#e7dfd3;border-radius:8px;padding:6px 9px;font-size:11px}.footer-bottom{border-top:1px solid #28251f;color:#777064;padding:18px 20px;text-align:center;font-size:11.5px}
.shell,.seller-layout,.admin-shell{gap:20px}.sidebar,.market-left-sidebar,.pro-market-left{min-width:0}.side-card,.admin-side-card{position:sticky;top:88px}.side-nav{display:grid;gap:3px}.side-nav a{min-height:38px;padding:9px 11px;border-radius:9px;color:#625c53;font-size:12.5px;font-weight:680}.side-nav a:hover,.side-nav a.active{background:var(--primary-soft);color:var(--primary)}
.admin-pro-page{background:#f3efe7}.admin-sidebar .side-card{background:var(--navy);border-color:var(--navy)}.admin-sidebar .side-nav a{color:#d8d0c4}.admin-sidebar .side-nav a:hover,.admin-sidebar .side-nav a.active{background:#705225;color:#fff}.admin-main,.seller-layout>.main{min-width:0}
.stats-grid,.seller-kpi-grid{gap:14px}.stat{padding:17px}.stat strong{font-size:22px}.stat-icon{box-shadow:none!important}
.pro-marketplace-page,.pro-product-page{padding-top:22px}.pro-market-shell{gap:18px}.pro-market-hero,.pro-product-hero{border:1px solid var(--line)!important;background:#fff!important;box-shadow:var(--shadow-sm)!important;border-radius:var(--radius-lg)!important}.product-result-grid{gap:15px}.product-card{border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:var(--shadow-sm)!important;background:#fff}.product-card:hover{border-color:#dfcfb2!important;box-shadow:var(--shadow)!important;transform:translateY(-2px)!important}
.pro-checkout-dialog,.modal-content{border-radius:18px;border:1px solid var(--line);box-shadow:0 28px 80px rgba(23, 22, 18, .22)}
.production-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px}.production-page-head h1,.production-page-head h2{margin:0 0 5px}.production-page-head p{margin:0;color:var(--muted)}
.production-empty{display:grid;place-items:center;min-height:190px;text-align:center;padding:28px;color:var(--muted)}
.production-skeleton{background:linear-gradient(90deg,#eef2f7 25%,#fbf8f1 37%,#eef2f7 63%);background-size:400% 100%;animation:production-shimmer 1.4s ease infinite;border-radius:9px}@keyframes production-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.production-security-note{display:flex;gap:10px;align-items:flex-start;padding:13px 14px;border:1px solid #dfcfb2;background:#f8f3e9;border-radius:12px;color:#705225;font-size:12.5px}
.fake-popup-notif-card{display:none!important}
@media(max-width:1180px){.footer-inner{grid-template-columns:repeat(3,1fr)}.pro-market-right{display:none!important}.pro-market-shell{grid-template-columns:230px minmax(0,1fr)!important}.header-inner{flex-wrap:wrap;padding-block:10px}.global-search{order:3;width:100%;max-width:none!important}}
@media(max-width:900px){.container{width:min(100% - 24px,1440px)}.footer-inner{width:min(100% - 28px,1440px);grid-template-columns:repeat(2,1fr)}.shell,.seller-layout,.admin-shell,.pro-market-shell{display:block!important}.sidebar,.admin-sidebar,.market-left-sidebar,.pro-market-left{position:static!important;width:100%!important;margin-bottom:16px}.side-card,.admin-side-card{position:static}.right-rail{display:none}.top-nav{overflow-x:auto;width:100%}.seller-hero-banner{padding:20px!important}.seller-hero-banner>div:first-child{max-width:100%!important}.seller-hero-banner>div:last-child{display:none}.wallet-compact-grid{grid-template-columns:1fr!important}}
@media(max-width:640px){.container{width:min(100% - 16px,1440px)}.footer-inner{grid-template-columns:1fr;padding-top:36px}.header-inner{gap:10px}.top-nav a span{display:none}.auth-actions .btn-ghost{display:none}.grid-2,.stats-grid,.seller-kpi-grid{grid-template-columns:1fr!important}.table{min-width:720px}.card,.card-3d{border-radius:12px}.pro-product-page{padding-inline:0}.production-page-head{padding:16px}.btn{min-height:42px}.footer-bottom{padding-inline:12px}}

/* API-backed list and safe production-state components */
.production-list{display:flex;flex-direction:column;gap:10px;width:100%}
.production-list-item{display:flex;align-items:center;gap:12px;padding:13px 14px;background:var(--surface,#fff);border:1px solid var(--border,#e7dfd3);border-radius:14px;color:var(--text,#171612);text-decoration:none;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a.production-list-item:hover{border-color:var(--primary,#705225);box-shadow:0 10px 24px rgba(23, 22, 18, .07);transform:translateY(-1px)}
.production-avatar,.production-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;background:#f8f3e9;color:#705225;font-weight:800}
.production-icon.success{background:#eef6f1;color:#15803d}
.production-list-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}
.production-list-copy strong{font-size:13px;line-height:1.4;white-space:normal}
.production-list-copy small,.production-list-meta small,.production-list-item time{font-size:11px;color:var(--muted,#777064)}
.production-list-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;text-align:right;white-space:nowrap}
.production-list-meta b{font-size:12px;color:#705225}
.production-page-state{max-width:1180px;margin:0 auto;padding:72px 20px;min-height:62vh;display:grid;place-items:center}
.production-state-card{max-width:680px;padding:36px;text-align:center;background:#fff;border:1px solid #e7dfd3;border-radius:22px;box-shadow:0 20px 45px rgba(23, 22, 18, .08)}
.production-state-card>svg{color:#705225;margin-bottom:12px}
.production-state-card h1{font-size:26px;margin:0 0 10px;color:#171612}
.production-state-card p{max-width:560px;margin:0 auto;color:#777064;line-height:1.7}
.production-state-actions{margin-top:22px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.empty-state.compact{padding:18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;color:#777064;background:#fbf8f1;border:1px dashed #d8d0c4;border-radius:12px}
.empty-state.compact strong{color:#4c473f;font-size:12px}.empty-state.compact small{font-size:11px}
@media(max-width:640px){.production-list-item{align-items:flex-start}.production-list-meta{display:none}.production-list-item time{display:none}.production-state-card{padding:26px 18px}.production-state-card h1{font-size:22px}}
