/* MJ Marketplace Stable Admin Theme
   Bootstrap-based custom admin shell. No legacy admin theme CSS/JS dependency. */
:root{
  --mj-admin-primary:#2563eb;
  --mj-admin-primary-dark:#1e40af;
  --mj-admin-purple:#7c3aed;
  --mj-admin-bg:#f5f7fb;
  --mj-admin-panel:#ffffff;
  --mj-admin-border:#e5e7eb;
  --mj-admin-text:#111827;
  --mj-admin-muted:#64748b;
  --mj-admin-sidebar:#0f172a;
  --mj-admin-sidebar-2:#172554;
  --mj-admin-sidebar-width:280px;
  --mj-admin-topbar-height:58px;
}
html,body{min-height:100%;}
body{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;background:var(--mj-admin-bg);color:var(--mj-admin-text);}
a{color:var(--mj-admin-primary)}
a:hover{color:var(--mj-admin-primary-dark)}

/* Login */
.login-page-shell{width:100%;min-height:100vh;}
.mj-admin-login-page{min-height:100vh;background:#eef2ff;}
.mj-login-split{min-height:100vh;display:flex;width:100%;background:linear-gradient(120deg,#172554 0%,#312e81 45%,#f8fafc 45%,#fff 100%)}
.mj-login-hero{width:56%;position:relative;color:#fff;overflow:hidden;padding:50px 70px;flex-direction:column;justify-content:space-between}
.mj-login-hero:before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 20% 20%,rgba(56,189,248,.32),transparent 30%),radial-gradient(circle at 80% 40%,rgba(168,85,247,.28),transparent 35%);pointer-events:none}
.mj-login-brand,.mj-login-hero-copy{position:relative;z-index:1}.mj-login-brand{display:flex;align-items:center;gap:16px}.mj-login-logo{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#38bdf8,#7c3aed);display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 12px 35px rgba(0,0,0,.22)}.mj-login-brand h2{font-weight:800;margin:0}.mj-login-brand p{margin:0;color:#c7d2fe}.mj-login-hero-copy h1{font-size:48px;font-weight:800;line-height:1.05;margin-bottom:18px}.mj-login-hero-copy p{font-size:18px;color:#dbeafe;max-width:580px}.mj-hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:30px}.mj-hero-points div{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:18px;backdrop-filter:blur(8px)}.mj-hero-points i{font-size:24px;color:#67e8f9}.mj-hero-points b{display:block;margin-top:10px}.mj-hero-points span{display:block;font-size:13px;color:#dbeafe}.mj-login-illustration{position:absolute;right:30px;bottom:24px;width:330px;opacity:.9}.mj-login-form-wrap{width:44%;display:flex;align-items:center;justify-content:center;padding:38px}.mj-login-box{width:min(420px,100%)}.mj-login-card{border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.18);overflow:hidden}.mj-login-card .card-header{background:#fff;padding:30px}.mj-login-note{background:#eff6ff;border:1px solid #dbeafe;color:#1e40af;border-radius:12px;padding:12px;font-size:13px}.login-box-msg{font-size:15px}

/* Layout shell */
.wrapper{min-height:100vh;position:relative;background:var(--mj-admin-bg);}
.main-header{position:fixed;top:0;left:var(--mj-admin-sidebar-width);right:0;z-index:1035;height:var(--mj-admin-topbar-height);border-bottom:1px solid var(--mj-admin-border)!important;background:#fff!important;box-shadow:0 4px 20px rgba(15,23,42,.04);padding:.35rem .75rem;}
.main-header .navbar-nav{align-items:center}.main-header .nav-link{color:#334155;border-radius:10px;padding:.52rem .72rem;position:relative}.main-header .nav-link:hover{background:#f1f5f9;color:#0f172a;text-decoration:none}.mj-top-search input{min-width:340px;border-radius:10px 0 0 10px}.btn-navbar{background:#f1f5f9;border:1px solid #ced4da;border-left:0;border-radius:0 10px 10px 0}.form-control-navbar{background:#f8fafc}
.main-sidebar{position:fixed;top:0;left:0;bottom:0;z-index:1040;width:var(--mj-admin-sidebar-width);background:linear-gradient(180deg,var(--mj-admin-sidebar-2) 0%,var(--mj-admin-sidebar) 100%);color:#e5e7eb;box-shadow:12px 0 30px rgba(15,23,42,.16);overflow:hidden;transition:transform .2s ease,width .2s ease;}
.sidebar{height:calc(100vh - 72px);overflow-y:auto;overflow-x:hidden;padding:.25rem .65rem 1.2rem;scrollbar-width:thin;scrollbar-color:#475569 transparent;}
.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-thumb{background:#475569;border-radius:999px}.brand-link{height:64px;color:#fff!important;display:flex;align-items:center;padding:.75rem 1rem;border-bottom:1px solid rgba(255,255,255,.12);text-decoration:none!important}.brand-text{font-size:1.05rem}.mj-brand-mark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#38bdf8,#7c3aed);color:#fff;font-weight:900;margin-right:.65rem;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.user-panel{border-bottom:1px solid rgba(255,255,255,.10)!important}.mj-user-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;display:inline-flex;align-items:center;justify-content:center}.user-panel .info a{color:#fff;text-decoration:none}.user-panel small,.main-sidebar .text-muted{color:#cbd5e1!important}
.content-wrapper{margin-left:var(--mj-admin-sidebar-width);padding-top:var(--mj-admin-topbar-height);min-height:100vh;background:linear-gradient(180deg,#f6f8ff 0,#f5f7fb 420px,#f5f7fb 100%);transition:margin-left .2s ease;}
.content-header{padding:1.25rem 1rem .6rem}.mj-content-header h1{font-weight:800;color:#111827;margin-bottom:.15rem;font-size:1.75rem}.content{padding:0 1rem 1.8rem}.main-footer{margin-left:var(--mj-admin-sidebar-width);background:#fff;border-top:1px solid var(--mj-admin-border);padding:1rem;color:#64748b;transition:margin-left .2s ease;}
.container-fluid{max-width:100%;}

/* Sidebar nav */
.nav-sidebar{display:block;padding-left:0;list-style:none}.nav-sidebar .nav-item{display:block}.nav-sidebar .nav-link{display:flex;align-items:center;gap:.62rem;color:#dbeafe;border-radius:12px;margin:.12rem 0;padding:.62rem .75rem;text-decoration:none;line-height:1.2;position:relative}.nav-sidebar .nav-link p{margin:0;flex:1;white-space:normal}.nav-sidebar .nav-link:hover{background:rgba(255,255,255,.10);color:#fff}.nav-sidebar .nav-link.active{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.25)}.nav-sidebar .nav-icon{width:20px;text-align:center;opacity:.95}.nav-sidebar .right{margin-left:auto}.nav-header{display:block;color:#93c5fd!important;font-size:.74rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:1.05rem .75rem .35rem}.nav-treeview{display:none;list-style:none;margin:.15rem 0 .4rem 0;padding-left:.55rem;border-left:1px solid rgba(255,255,255,.12)}.menu-open>.nav-treeview{display:block}.nav-treeview .nav-link{font-size:.92rem;padding:.52rem .65rem .52rem .85rem;color:#cbd5e1}.has-treeview>a .fa-angle-left{transition:transform .18s ease}.has-treeview.menu-open>a .fa-angle-left{transform:rotate(-90deg)}.mj-view-site{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08)}

/* Components reused by existing admin pages */
.card{border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 8px 28px rgba(15,23,42,.06);overflow:hidden}.card-header{background:#fff;border-bottom:1px solid #eef2f7}.card-title{font-weight:800;margin-bottom:0}.card-outline{border-top:4px solid var(--mj-admin-primary)}.card-primary.card-outline{border-top-color:#2563eb}.card-success.card-outline{border-top-color:#16a34a}.card-warning.card-outline{border-top-color:#f59e0b}.card-danger.card-outline{border-top-color:#dc2626}.card-info.card-outline{border-top-color:#0ea5e9}.card-purple.card-outline{border-top-color:#7c3aed}.btn{border-radius:10px;font-weight:650}.form-control,.custom-select{border-radius:10px}.input-group-text{border-radius:10px}.alert{border:0;border-radius:14px}.badge{border-radius:999px}.table{background:#fff}.table th{border-top:0;color:#475569;font-size:.82rem;text-transform:uppercase;letter-spacing:.035em}.table td{vertical-align:middle}.table-responsive{border-radius:14px}.dropdown-menu{border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 18px 48px rgba(15,23,42,.15);overflow:hidden}.dropdown-header,.dropdown-footer{font-weight:800}.dropdown-menu-lg{min-width:320px}.navbar-badge,.mj-v3-badge{position:absolute;top:2px;right:0;font-size:.65rem;line-height:1;min-width:18px;height:18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#ef4444;color:#fff;padding:2px 5px}.mj-v3-badge:empty{display:none}.text-sm{font-size:.82rem}.elevation-2,.elevation-4{box-shadow:none!important}
.small-box{position:relative;display:block;border-radius:18px;color:#fff!important;min-height:128px;padding:18px;overflow:hidden;box-shadow:0 12px 32px rgba(15,23,42,.12)}.small-box .inner h3{font-weight:900;font-size:2rem;margin:0}.small-box .inner p{margin:.25rem 0 0;font-weight:650}.small-box .icon{position:absolute;right:18px;top:16px;opacity:.22}.small-box .icon>i,.small-box .icon i{font-size:64px}.small-box-footer{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.16);color:#fff!important;text-align:center;padding:.45rem;text-decoration:none}.small-box-footer:hover{background:rgba(0,0,0,.24);text-decoration:none}.info-box{display:flex;align-items:center;min-height:96px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;box-shadow:0 8px 26px rgba(15,23,42,.06)}.info-box-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:16px;color:#fff;font-size:1.35rem;margin-right:14px}.info-box-content{flex:1}.info-box-text{display:block;color:#64748b;font-weight:750;text-transform:uppercase;font-size:.76rem;letter-spacing:.05em}.info-box-number{display:block;font-weight:900;font-size:1.35rem;color:#111827}.products-list{padding:0;list-style:none}.products-list .item{padding:.75rem 0;border-bottom:1px solid #e5e7eb}.products-list .product-info{margin-left:58px}.description-block .description-header{font-weight:800}.description-block .description-text{color:#64748b;text-transform:uppercase;font-size:.75rem;font-weight:750}.mj-country-flag{font-size:28px!important;text-align:center;line-height:48px;width:48px!important;height:48px!important;background:#f8fafc;border-radius:12px}.mj-main-footer strong{color:#334155}.mj-fab-admin{position:fixed;right:20px;bottom:22px;z-index:1030;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;border:0;border-radius:999px;padding:.85rem 1.1rem;box-shadow:0 18px 40px rgba(37,99,235,.35);font-weight:800}.mj-fab-admin:hover{filter:brightness(1.05)}.mj-admin-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.mj-admin-quick-grid a{display:flex;align-items:center;gap:.55rem;border:1px solid #e5e7eb;border-radius:14px;padding:1rem;color:#111827;text-decoration:none;background:#f8fafc}.mj-admin-quick-grid a:hover{background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.08)}

/* Simple grid/stat helpers used by older modules */
.admin-layout{display:block}.admin-menu{display:none!important}.admin-layout>section{display:block;width:100%}.grid{display:grid;gap:1rem}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{background:#fff;border-radius:16px;padding:1rem;box-shadow:0 8px 26px rgba(15,23,42,.06);border:1px solid #e5e7eb}.stat b{font-size:1.5rem}.muted{color:#64748b}.pill-row{display:flex;gap:.4rem;flex-wrap:wrap}.mj-chart-placeholder{position:relative;height:230px;border-radius:16px;background:linear-gradient(180deg,#fff,#eef2ff);overflow:hidden;border:1px solid #e5e7eb}.mj-chart-placeholder:before{content:"";position:absolute;inset:30px;background:repeating-linear-gradient(to bottom,transparent 0 36px,rgba(148,163,184,.25) 37px)}.mj-chart-line{position:absolute;left:40px;right:40px;top:50px;height:110px;background:linear-gradient(135deg,transparent 8%,#2563eb 9%,#2563eb 11%,transparent 12%,transparent 28%,#7c3aed 29%,#7c3aed 31%,transparent 32%,transparent 48%,#0ea5e9 49%,#0ea5e9 51%,transparent 52%,transparent 69%,#2563eb 70%,#2563eb 72%,transparent 73%);filter:drop-shadow(0 4px 6px rgba(37,99,235,.25))}.mj-chart-bars{position:absolute;bottom:22px;left:42px;right:42px;height:110px;display:flex;align-items:flex-end;gap:18px}.mj-chart-bars span{flex:1;background:linear-gradient(180deg,#38bdf8,#2563eb);border-radius:8px 8px 0 0;opacity:.75}.mj-quick-img{width:96px;height:72px;object-fit:contain;margin-right:18px}

/* Collapsed / mobile states */
body.mj-sidebar-collapsed .main-sidebar{width:82px}.mj-sidebar-collapsed .brand-text,.mj-sidebar-collapsed .user-panel .info,.mj-sidebar-collapsed .nav-sidebar .nav-link p,.mj-sidebar-collapsed .nav-header{display:none}.mj-sidebar-collapsed .main-header,.mj-sidebar-collapsed .content-wrapper,.mj-sidebar-collapsed .main-footer{margin-left:82px;left:82px}.mj-sidebar-collapsed .nav-sidebar .nav-link{justify-content:center}.mj-sidebar-collapsed .nav-treeview{display:none!important}
.mj-sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:1038}
@media(max-width:1199px){.mj-top-search input{min-width:230px}.dropdown-menu-lg{min-width:290px}}
@media(max-width:991px){:root{--mj-admin-sidebar-width:280px}.main-header{left:0}.content-wrapper,.main-footer{margin-left:0}.main-sidebar{transform:translateX(-105%)}body.mj-sidebar-open .main-sidebar{transform:translateX(0)}body.mj-sidebar-open .mj-sidebar-backdrop{display:block}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.mj-login-split{background:#eef2ff}.mj-login-form-wrap{width:100%}.mj-login-hero{display:none!important}.main-header .navbar-nav .d-md-inline-block,.main-header .navbar-nav .d-lg-inline-block{display:none!important}.mj-top-search input{min-width:170px}}
@media(max-width:767px){.content-header{padding:1rem .75rem .4rem}.content{padding:0 .75rem 1.4rem}.mj-content-header h1{font-size:1.35rem}.breadcrumb{display:none}.main-header{height:auto;min-height:var(--mj-admin-topbar-height);align-items:flex-start}.main-header .form-inline{display:none!important}.content-wrapper{padding-top:var(--mj-admin-topbar-height)}.small-box .icon{display:none}.mj-fab-admin{right:14px;bottom:14px;padding:.72rem .9rem}.mj-admin-quick-grid{grid-template-columns:1fr}.mj-login-form-wrap{padding:18px}.mj-login-card .card-header{padding:22px}}
@media(max-width:575px){.main-header .navbar-nav .d-sm-inline-block,.main-header .navbar-nav .d-sm-block{display:none!important}.main-header .nav-link{padding:.48rem .55rem}.content{padding-left:.6rem;padding-right:.6rem}.card{border-radius:14px}.table{font-size:.88rem}}
@media print{.main-header,.main-sidebar,.content-header,.main-footer,.mj-fab-admin,.btn,.no-print{display:none!important}.content-wrapper{margin:0!important;padding:0!important}.card{box-shadow:none!important;border:0!important}.table{font-size:12px}}
