:root{
  --maf-blue:#1664e8;
  --maf-blue-dark:#0f4fc4;
  --maf-green:#12a566;
  --maf-red:#e54848;
  --maf-orange:#f59e0b;
  --maf-ink:#0f172a;
  --maf-muted:#64748b;
  --maf-line:#e3ebf5;
  --maf-soft:#f7faff;
  --maf-page:#f8fafc;
  --maf-card:#fff;
  --maf-shadow:0 14px 36px rgba(15,23,42,.07);
}

body{
  background:var(--maf-page)!important;
  color:var(--maf-ink);
  font-family:Tajawal,Cairo,Arial,sans-serif!important;
}

body.maf-platform-page #masthead,
body.maf-platform-page .site-header,
body.maf-platform-page .main-header-bar-wrap,
body.maf-platform-page .ast-primary-header-bar,
body.maf-platform-page .ast-above-header-wrap,
body.maf-platform-page .ast-below-header-wrap,
body.maf-platform-page .ast-mobile-header-wrap,
body.maf-platform-page .ast-desktop-header-content,
body.maf-platform-page .ast-custom-header,
body.maf-platform-page .ast-mobile-popup-drawer,
body.maf-platform-page #colophon,
body.maf-platform-page .site-footer,
body.maf-platform-page .ast-footer-overlay,
body.maf-platform-page .ast-small-footer,
body.maf-platform-page .ast-footer-copyright{
  display:none!important;
}

.maf-wrap,
.ms-platform-shell{
  direction:rtl;
  max-width:1180px;
  margin:18px auto;
  padding:0 16px;
  color:var(--maf-ink);
  font-family:Tajawal,Cairo,Arial,sans-serif;
}

.maf-wrap *,
.ms-platform-shell *{box-sizing:border-box}

.maf-muted{color:var(--maf-muted)!important}
.center{text-align:center}
.maf-ltr,
.maf-money{direction:ltr;unicode-bidi:isolate;white-space:nowrap;display:inline-block}

.ms-main-header{
  position:sticky;
  top:0;
  z-index:9990;
  min-height:66px;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px;
  padding:10px 16px;
  background:#fff;
  border:1px solid var(--maf-line);
  border-radius:16px;
  box-shadow:var(--maf-shadow);
}

.ms-logo{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:9px;
  min-width:max-content;
  color:var(--maf-ink)!important;
  text-decoration:none!important;
  font-weight:900;
}

.ms-logo-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:#0b1f3a;
  color:#fff;
  font-weight:950;
  letter-spacing:0;
}

.ms-desktop-menu,
.ms-header-actions,
.ms-role-header div{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px;
  flex-wrap:wrap;
}

.ms-desktop-menu a,
.ms-role-header a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px;
  min-height:36px;
  padding:8px 11px;
  border-radius:10px;
  color:#334155!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:850;
  line-height:1.2;
  white-space:nowrap;
}

.ms-desktop-menu a:hover,
.ms-role-header a:hover,
.ms-role-header a.is-active{
  background:#eef5ff;
  color:var(--maf-blue)!important;
}

.ms-header-actions{justify-content:flex-end!important}
.ms-user-name{font-weight:850;color:#475569;white-space:nowrap}

.ms-login-btn,
.ms-register-btn,
.ms-icon-btn,
.maf-btn,
.maf-form button,
.maf-filter-bar button,
.maf-wp-search button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px;
  min-height:42px;
  border:0;
  border-radius:10px;
  padding:10px 16px;
  background:linear-gradient(135deg,var(--maf-blue),var(--maf-blue-dark));
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(22,100,232,.2);
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}

.ms-login-btn,
.maf-btn-light{
  background:#eef5ff!important;
  color:var(--maf-blue)!important;
  border:1px solid #cfe0ff!important;
  box-shadow:none!important;
}

.ms-register-btn:hover,
.ms-login-btn:hover,
.ms-icon-btn:hover,
.maf-btn:hover,
.maf-form button:hover{transform:translateY(-1px);opacity:.95}

.ms-icon-btn{
  position:relative;
  width:34px;
  min-width:34px;
  min-height:34px!important;
  padding:0!important;
  border-radius:10px!important;
}

.ms-icon-btn .dashicons{font-size:17px;width:17px;height:17px}

.ms-notification-btn{
  background:#eef5ff!important;
  color:var(--maf-blue)!important;
  border:1px solid #cfe0ff!important;
  box-shadow:none!important;
}

.ms-notification-btn em{
  position:absolute;
  top:-6px;
  left:-6px;
  min-width:16px;
  height:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-style:normal;
  font-weight:900;
  line-height:1;
}

.ms-logout-icon,
.ms-role-logout{
  background:#fff1f2!important;
  color:#be123c!important;
  border:1px solid #fecdd3!important;
  box-shadow:none!important;
}

.maf-btn-success{background:linear-gradient(135deg,#13b973,#05995c)!important;color:#fff!important}
.maf-btn-danger{background:var(--maf-red)!important;color:#fff!important}

.ms-menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border:0;
  border-radius:11px;
  background:#f1f5f9;
  color:var(--maf-ink);
  cursor:pointer;
}

.ms-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  background:rgba(15,23,42,.48);
}

.ms-overlay[hidden]{display:none}

.ms-offcanvas{
  position:fixed;
  inset:0 0 0 auto;
  z-index:99999;
  width:min(86vw,360px);
  height:100vh;
  padding:20px;
  background:#fff;
  box-shadow:-18px 0 40px rgba(15,23,42,.18);
  transform:translateX(105%);
  transition:transform .24s ease;
  overflow:auto;
}

.ms-offcanvas.is-active{transform:translateX(0)}
.ms-offcanvas-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.ms-close-menu{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:11px;background:#f1f5f9;color:var(--maf-ink);cursor:pointer}

.ms-mobile-links{display:grid;gap:4px}
.ms-mobile-links a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:12px 10px;
  border-bottom:1px solid #eef2f7;
  color:var(--maf-ink)!important;
  text-decoration:none!important;
  font-weight:850;
}

.ms-mobile-links .dashicons,
.ms-bottom-nav .dashicons,
.ms-role-header .dashicons{color:var(--maf-blue)}

.ms-bottom-nav{
  position:fixed;
  right:0;
  bottom:0;
  left:0;
  z-index:9990;
  height:66px;
  display:none;
  background:#fff;
  border-top:1px solid var(--maf-line);
  box-shadow:0 -8px 24px rgba(15,23,42,.08);
}

.ms-bottom-nav a{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#64748b!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:850;
  min-width:0;
}

.ms-bottom-nav .dashicons{font-size:20px;width:20px;height:20px}

.ms-role-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px;
  margin-top:10px;
  padding:10px 14px;
  background:#fff;
  border:1px solid var(--maf-line);
  border-radius:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}

.ms-role-header>strong{white-space:nowrap;font-size:15px}
.ms-role-pending{justify-content:center!important;background:#fff8e6;border-color:#fde68a;color:#92400e}
.ms-role-pending a{color:#92400e;font-weight:900}

.maf-card,
.maf-form,
.maf-kpi-card,
.maf-product-card,
.maf-product,
.maf-table-wrap{
  background:var(--maf-card);
  border:1px solid var(--maf-line);
  border-radius:14px;
  box-shadow:var(--maf-shadow);
}

.maf-card,
.maf-form{padding:22px;margin-bottom:16px}
.maf-form{max-width:760px;margin-left:auto;margin-right:auto}
.maf-form label{display:block;margin:0 0 7px;color:#263449;font-weight:850}
.maf-form input,
.maf-form select,
.maf-form textarea{
  width:100%;
  min-height:48px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #dbe4ef;
  border-radius:10px;
  background:#fff;
  color:var(--maf-ink);
  outline:0;
}
.maf-form textarea{min-height:112px;resize:vertical}
.maf-form input:focus,
.maf-form select:focus,
.maf-form textarea:focus{border-color:var(--maf-blue);box-shadow:0 0 0 3px rgba(22,100,232,.1)}

.maf-alert{border-radius:12px;padding:13px 15px;margin-bottom:14px;font-weight:850}
.maf-alert-success{background:#e8fff4;color:#057647;border:1px solid #b9f2d4}
.maf-alert-error{background:#fff0f0;color:#b42318;border:1px solid #ffd1d1}
.maf-alert-warning{background:#fff7df;color:#92400e;border:1px solid #fde68a}

.maf-auth-page{min-height:calc(100vh - 110px);display:flex;align-items:center;justify-content:center}
.maf-auth-form{width:min(100%,430px);padding:30px}
.maf-auth-form h2{margin:0 0 8px;text-align:center;font-size:24px}
.maf-auth-form h2:before{content:"M";display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:0 auto 16px;border-radius:11px;background:#0b1f3a;color:#fff;font-weight:950;font-size:22px}
.maf-auth-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:16px}
.maf-auth-links a{color:var(--maf-blue);text-decoration:none;font-weight:850}
.maf-role-select{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px}
.maf-role-option input{position:absolute;opacity:0}
.maf-role-option span{display:grid;place-items:center;min-height:128px;border:1px solid #dbe4ef;border-radius:13px;background:#fff;padding:15px;text-align:center;font-weight:900;color:#1f2937}
.maf-role-option .dashicons{font-size:38px;width:38px;height:38px;color:var(--maf-blue);margin-bottom:8px}
.maf-role-option input:checked+span{border-color:var(--maf-blue);box-shadow:0 0 0 3px rgba(22,100,232,.1)}
.maf-role-option small{display:block;margin-top:6px;color:var(--maf-muted);font-size:12px;font-weight:700;line-height:1.5}
.maf-check-line{display:flex!important;align-items:center;gap:9px;margin:6px 0 16px;font-weight:850;color:#334155}
.maf-check-line input{width:auto!important;min-height:auto!important;margin:0!important}

.maf-dashboard-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin-bottom:18px;
  padding:26px;
  background:linear-gradient(135deg,#fff 0%,#f4f8ff 58%,#eaf3ff 100%);
  border:1px solid var(--maf-line);
  border-radius:16px;
  box-shadow:var(--maf-shadow);
}
.maf-dashboard-hero h1{margin:0 0 8px;font-size:31px;line-height:1.25;color:#0b1f3a}
.maf-dashboard-hero p{margin:0;color:var(--maf-muted);line-height:1.8}
.maf-eyebrow{margin:0 0 7px!important;color:var(--maf-blue);font-size:13px;font-weight:950}
.maf-hero-actions{display:flex;gap:10px;flex-wrap:wrap}

.maf-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.maf-kpi-card{position:relative;min-height:116px;padding:18px;overflow:hidden}
.maf-kpi-card:before{content:"\f185";font-family:dashicons;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:#eef5ff;color:var(--maf-blue);font-size:22px;margin-bottom:12px}
.maf-kpi-card:nth-child(2):before{content:"\f174";background:#fff4e5;color:var(--maf-orange)}
.maf-kpi-card:nth-child(3):before{content:"\f147";background:#e9fff5;color:var(--maf-green)}
.maf-kpi-card:nth-child(4):before{content:"\f239";background:#eef2ff;color:#6d5dfc}
.maf-kpi-card span{display:block;color:var(--maf-muted);font-weight:850;font-size:13px}
.maf-kpi-card strong{display:block;margin:5px 0;font-size:25px;color:var(--maf-ink)}
.maf-kpi-card small{color:var(--maf-muted)}

.maf-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px;margin-bottom:16px}
.maf-panel{margin-bottom:0}
.maf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.maf-panel-head h2{font-size:18px;margin:0}
.maf-panel-head a{color:var(--maf-blue);text-decoration:none;font-weight:900}
.maf-status,
.maf-mini-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;background:#eff6ff;color:var(--maf-blue)}
.maf-status.is-active{background:#e8fff4;color:#059669}
.maf-status.is-warning{background:#fff7df;color:#92400e}

.maf-table-wrap{overflow:auto;border-radius:14px}
.maf-table{width:100%;min-width:0;border-collapse:separate;border-spacing:0;background:#fff}
.maf-table th,
.maf-table td{padding:13px;border-bottom:1px solid var(--maf-line);text-align:right;vertical-align:middle}
.maf-table th{background:#f8fbff;color:#475569;font-size:13px}
.maf-table tr:last-child td{border-bottom:0}

.maf-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}
.maf-product-card{padding:0;overflow:hidden}
.maf-product-image{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#f4f8ff;color:var(--maf-muted);text-decoration:none;font-weight:900}
.maf-product-image img{width:100%;height:100%;object-fit:cover}
.maf-product-body{padding:14px;display:grid;gap:10px}
.maf-product-body h3{margin:0;font-size:17px;line-height:1.35}
.maf-product-tags{display:flex;justify-content:space-between;gap:8px;align-items:center}
.maf-product-tags span{background:#eef5ff;color:var(--maf-blue);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900}
.maf-product-tags strong{color:var(--maf-green)}
.maf-product-actions{display:grid;grid-template-columns:1fr 86px;gap:8px}
.maf-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) 220px 180px auto;gap:10px;align-items:end}
.maf-filter-bar input,
.maf-filter-bar select{margin:0;min-height:42px;border:1px solid #dbe4ef;border-radius:10px;padding:10px 12px}

.maf-details-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr);gap:16px;margin-bottom:16px}
.maf-gallery-card{display:grid;gap:12px}
.maf-main-image{display:flex;align-items:center;justify-content:center;min-height:360px;background:#f8fbff;border:1px solid var(--maf-line);border-radius:14px;overflow:hidden}
.maf-main-image img{width:100%;height:100%;object-fit:contain}
.maf-image-downloads,
.maf-copy-grid{display:grid;gap:10px}
.maf-meta-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.maf-meta-list span{background:var(--maf-soft);border:1px solid var(--maf-line);border-radius:12px;padding:10px;font-weight:850}
.maf-copy{white-space:pre-wrap;background:#f8fbff;border:1px solid var(--maf-line);border-radius:12px;padding:13px}

.maf-product-editor .maf-form{max-width:920px}
.maf-two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.maf-current-images{background:#f8fbff;border:1px solid var(--maf-line);border-radius:12px;padding:12px;margin-bottom:14px}
.maf-current-images img{width:72px;height:72px;object-fit:cover;border:1px solid var(--maf-line);border-radius:10px;margin:8px 0 0 8px}
.maf-gallery-preview{display:flex;gap:8px;flex-wrap:wrap}

.maf-quick-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.maf-quick-actions a{display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:12px;background:#eef5ff;color:var(--maf-blue);text-decoration:none;font-weight:900;text-align:center;padding:10px}
.maf-product-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--maf-line);background:#f8fbff;border-radius:12px;padding:12px}
.maf-product-row strong{display:block}
.maf-product-row span{display:block;color:var(--maf-muted);font-size:13px;margin-top:3px}

.maf-subscription-box,
.maf-order-state-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.maf-subscription-box div,
.maf-order-state-list div{background:var(--maf-soft);border:1px solid var(--maf-line);border-radius:12px;padding:12px}
.maf-subscription-box span,
.maf-order-state-list span{display:block;color:var(--maf-muted);font-size:13px;font-weight:850}
.maf-subscription-box strong,
.maf-order-state-list strong{display:block;margin-top:4px;font-size:20px}
.maf-progress{height:9px;background:#e5edf7;border-radius:999px;overflow:hidden;margin:12px 0}
.maf-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--maf-blue),#22c55e);border-radius:999px}

.maf-order-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.maf-order-tabs a{display:inline-flex;gap:6px;align-items:center;border-radius:999px;background:#f1f5f9;color:#334155!important;text-decoration:none!important;font-weight:900;padding:7px 11px}
.maf-order-tabs a.is-active{background:var(--maf-blue);color:#fff!important}
.maf-order-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.maf-order-details-grid div{background:#f8fafc;border:1px solid var(--maf-line);border-radius:12px;padding:12px}
.maf-order-details-grid span{display:block;color:var(--maf-muted);font-weight:850;font-size:13px}
.maf-order-details-grid strong{display:block;margin-top:4px}
.maf-order-actions{display:flex;gap:8px;flex-wrap:wrap}
.maf-order-money-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.maf-wp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.maf-wp-head h1{margin:0;font-size:26px}
.maf-wp-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}
.maf-wp-tabs a{color:#2271b1!important;text-decoration:none!important;font-weight:700;padding:4px 0}
.maf-wp-tabs a:after{content:"|";color:#c3c4c7;margin:0 8px}
.maf-wp-tabs a:last-child:after{display:none}
.maf-wp-tabs a.is-active{color:#000!important}
.maf-wp-tabs span{color:#50575e}
.maf-wp-search{display:flex;justify-content:flex-end;gap:8px;margin-bottom:10px}
.maf-wp-search input{min-height:36px;min-width:260px;border:1px solid #8c8f94;border-radius:4px;padding:6px 8px}
.maf-wp-search button{min-height:36px;border-radius:4px;padding:6px 12px}
.maf-wp-table th,
.maf-wp-table td{font-size:13px}
.maf-check{width:36px;text-align:center!important}
.maf-product-thumb{width:64px}
.maf-product-thumb img,
.maf-product-thumb span{display:block;width:48px;height:48px;border:1px solid #dcdcde;background:#f6f7f7;object-fit:cover}
.maf-row-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px;color:#646970}
.maf-row-actions a{font-size:12px;text-decoration:none!important;color:#2271b1!important}
.maf-row-actions a.is-danger{color:#b32d2e!important}

.maf-inline-form{margin:0}
.maf-notification-list{display:grid;gap:10px}
.maf-notification-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid var(--maf-line);
  border-radius:12px;
  background:#fff;
}
.maf-notification-item>.dashicons{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#eef5ff;
  color:var(--maf-blue);
}
.maf-notification-item strong{display:block;margin-bottom:4px}
.maf-notification-item small{color:var(--maf-muted)}
.maf-notification-item em{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 9px;
  border-radius:999px;
  background:#e8fff4;
  color:#047857;
  font-style:normal;
  font-size:12px;
  font-weight:900;
}
.maf-notification-item.is-unread{border-color:#bfdbfe;background:#f8fbff}

.maf-about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.maf-about-card{min-height:180px}
.maf-rich-text{color:#334155;line-height:1.9;font-weight:600}
.maf-rich-text p{margin:0 0 10px}

.maf-pending-icon{display:flex;align-items:center;justify-content:center;width:118px;height:118px;border-radius:999px;background:#eef7ff;margin:18px auto}
.maf-pending-icon .dashicons{font-size:64px;width:64px;height:64px;color:var(--maf-orange)}

@media(min-width:1280px){
  .maf-wrap,
  .ms-platform-shell{max-width:1240px}
}

@media(max-width:920px){
  body{padding-bottom:76px;background:#fff!important}
  .maf-wrap,
  .ms-platform-shell{max-width:430px;margin:0 auto;padding:10px}
  .ms-main-header{min-height:60px;border:0;border-radius:0;box-shadow:none;padding:10px 4px}
  .ms-menu-toggle{display:inline-flex}
  .ms-desktop-menu,
  .ms-header-actions{display:none!important}
  .ms-logo span:last-child{font-size:14px}
  .ms-role-header{overflow:auto;justify-content:flex-start!important;white-space:nowrap;box-shadow:none}
  .ms-role-header>strong{display:none}
  .ms-role-header div{flex-wrap:nowrap!important;justify-content:flex-start!important}
  .ms-bottom-nav{display:flex}
  .maf-dashboard-hero{display:block;padding:18px;border-radius:20px;box-shadow:none}
  .maf-dashboard-hero h1{font-size:24px}
  .maf-hero-actions{margin-top:14px}
  .maf-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .maf-kpi-card{min-height:126px;padding:14px;border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
  .maf-dashboard-grid,
  .maf-details-grid,
  .maf-about-grid{grid-template-columns:1fr}
  .maf-filter-bar{grid-template-columns:1fr}
  .maf-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .maf-product-actions{grid-template-columns:1fr}
  .maf-product-body h3{font-size:14px}
  .maf-table{min-width:0}
  .maf-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  .maf-auth-page{min-height:auto;padding-top:18px}
  .maf-auth-form{box-shadow:none;border:0;padding:18px 10px}
  .maf-order-details-grid,
  .maf-order-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maf-subscription-box,
  .maf-order-state-list,
  .maf-meta-list{grid-template-columns:1fr}
  .maf-main-image{min-height:260px}
}

@media(max-width:560px){
  .maf-wrap,
  .ms-platform-shell{padding:8px}
  .maf-kpi-card strong{font-size:22px}
  .maf-two-cols{grid-template-columns:1fr}
  .maf-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maf-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maf-btn,
  .maf-form button{width:100%}
  .maf-auth-links{display:grid;gap:8px}
  .maf-wp-head{display:block}
  .maf-wp-head .maf-btn{margin-top:10px}
  .maf-wp-search{display:block}
  .maf-wp-search input,
  .maf-wp-search button{width:100%;margin-bottom:8px}
  .maf-order-details-grid,
  .maf-order-money-grid{grid-template-columns:1fr}
}

.ms-logo-image{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--maf-line)}
.ms-logo-image img{width:100%;height:100%;object-fit:contain;display:block}
.ms-offcanvas,.ms-overlay,.ms-bottom-nav,.ms-menu-toggle{display:none!important}
.ms-role-header a[href*="logout"]{background:#fff1f2!important;color:#be123c!important}
.ms-role-header a[href*="logout"] .dashicons{color:#be123c!important}
@media(max-width:920px){body{padding-bottom:0!important}.ms-main-header{overflow-x:auto;gap:10px}.ms-desktop-menu{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;white-space:nowrap;max-width:100%}.ms-header-actions{display:flex!important;flex-wrap:nowrap!important}.ms-user-name{display:none}.ms-role-header{overflow-x:auto;padding:8px 6px}.ms-role-header div{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto}.ms-role-header a{min-width:max-content}.ms-logo-image{width:36px;height:36px}.ms-logo span:last-child{font-size:13px}}

body.maf-platform-page .entry-header,
body.maf-platform-page .entry-title,
body.maf-platform-page .page-title,
body.maf-platform-page .wp-block-post-title,
body.maf-platform-page .elementor-page-title,
body.maf-platform-page .elementor-widget-theme-post-title,
body.maf-platform-page article.page > header,
body.maf-platform-page .site-main > article > header,
body.maf-platform-page .ast-single-post .entry-title,
body.maf-platform-page .ast-archive-description,
body.maf-platform-page .ast-breadcrumbs-wrapper,
body.maf-platform-page .post-thumb-img-content{
  display:none!important;
}

body.maf-platform-page .site-content,
body.maf-platform-page .content-area,
body.maf-platform-page .site-main,
body.maf-platform-page .entry-content{
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

.maf-wrap,
.maf-wrap *{
  max-width:100%;
}

.maf-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
}

.maf-table{
  table-layout:auto;
}

.maf-table th,
.maf-table td{
  overflow-wrap:anywhere;
  word-break:normal;
}

@media(max-width:920px){
  body.maf-platform-page{
    overflow-x:hidden!important;
  }

  .maf-wrap,
  .ms-platform-shell{
    width:100%;
    max-width:430px;
    overflow-x:hidden;
  }

  .ms-main-header{
    width:100%;
    max-width:100%;
    border-bottom:1px solid var(--maf-line);
  }

  .ms-logo{
    flex:0 0 auto;
    min-width:0;
  }

  .ms-desktop-menu{
    flex:1 1 auto;
    min-width:0;
    scrollbar-width:none;
  }

  .ms-desktop-menu::-webkit-scrollbar,
  .ms-role-header::-webkit-scrollbar,
  .ms-role-header div::-webkit-scrollbar,
  .maf-table-wrap::-webkit-scrollbar{
    display:none;
  }

  .ms-header-actions{
    flex:0 0 auto;
    gap:6px!important;
  }

  .ms-login-btn,
  .ms-register-btn{
    min-height:30px;
    padding:5px 7px;
    border-radius:8px;
    font-size:11px;
    line-height:1.15;
    box-shadow:0 7px 16px rgba(22,100,232,.16);
  }

  .ms-login-btn .dashicons,
  .ms-register-btn .dashicons{
    font-size:14px;
    width:14px;
    height:14px;
  }

  .ms-icon-btn{
    width:32px;
    min-width:32px;
    min-height:32px!important;
    border-radius:9px!important;
  }

  .maf-card,
  .maf-form,
  .maf-kpi-card,
  .maf-product-card,
  .maf-table-wrap{
    border-radius:12px;
  }

  .maf-card,
  .maf-form{
    padding:14px;
  }

  .maf-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .maf-table{
    width:100%;
    min-width:0!important;
    font-size:12px;
  }

  .maf-table th,
  .maf-table td{
    padding:10px 8px;
    min-width:105px;
    max-width:180px;
    white-space:normal;
    line-height:1.45;
  }

  .maf-table th:first-child,
  .maf-table td:first-child{
    min-width:88px;
  }

  .maf-table .maf-btn,
  .maf-table button,
  .maf-row-actions a{
    min-height:30px;
    padding:6px 9px;
    font-size:12px;
    border-radius:8px;
  }

  .maf-row-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:5px;
  }

  .maf-product-row{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:560px){
  .maf-wrap,
  .ms-platform-shell{
    max-width:100%;
    padding-inline:10px;
  }

  .ms-main-header{
    padding-inline:0;
  }

  .ms-logo-icon,
  .ms-logo-image{
    width:32px!important;
    height:32px!important;
    border-radius:9px;
  }

  .ms-logo span:last-child{
    max-width:96px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ms-login-btn,
  .ms-register-btn{
    padding:7px 8px;
    max-width:76px;
    text-align:center;
  }

  .maf-auth-form .maf-btn,
  .maf-auth-form button{
    width:100%;
  }

  .maf-dashboard-hero,
  .maf-card,
  .maf-form,
  .maf-kpi-card,
  .maf-product-card,
  .maf-table-wrap{
    box-shadow:0 8px 22px rgba(15,23,42,.05);
  }
}

@media(max-width:560px){
  html,
  body,
  body.maf-platform-page{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
  }

  .maf-auth-page{
    display:block;
    width:100%;
    max-width:100%;
    padding:10px 0 18px!important;
    overflow-x:hidden;
  }

  .maf-auth-page .maf-auth-form{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:14px 10px!important;
    border-radius:0!important;
    overflow:hidden;
  }

  .maf-auth-page .maf-role-select{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px;
  }

  .maf-auth-page .maf-role-option,
  .maf-auth-page .maf-role-option span,
  .maf-auth-page .maf-two-cols,
  .maf-auth-page p,
  .maf-auth-page input,
  .maf-auth-page select,
  .maf-auth-page textarea{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .maf-auth-page .maf-role-option span{
    min-height:86px;
    padding:10px 6px;
  }

  .maf-auth-page .maf-role-option .dashicons{
    font-size:26px;
    width:26px;
    height:26px;
    margin-bottom:5px;
  }

  .maf-auth-page .maf-role-option small{
    font-size:10px;
    line-height:1.35;
  }

  .maf-auth-page .maf-auth-form h2{
    font-size:21px;
  }

  .maf-auth-page .maf-form input,
  .maf-auth-page .maf-form select,
  .maf-auth-page .maf-form textarea{
    min-height:42px;
    padding:10px 11px;
    margin-bottom:10px;
  }

  .maf-auth-page .maf-auth-links{
    width:100%;
    max-width:100%;
    grid-template-columns:1fr;
    text-align:center;
  }
}

.maf-compact-table th,
.maf-compact-table td{
  min-width:0!important;
}

.maf-mini-product-list,
.maf-withdrawal-list{
  display:grid;
  gap:10px;
}

.maf-mini-product-row{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center!important;
  gap:12px;
}

.maf-mini-product-row>div{
  min-width:0;
}

.maf-mini-product-row strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.maf-mini-product-row span{
  display:block;
}

.maf-mini-thumb{
  display:block;
  width:64px;
  height:64px;
  border-radius:10px;
  overflow:hidden;
  background:#f1f5f9;
  border:1px solid var(--maf-line);
}

.maf-mini-thumb img,
.maf-mini-thumb span{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.maf-products-table .maf-mini-thumb{
  margin:auto;
}

.maf-products-table th:first-child,
.maf-products-table td:first-child{
  width:78px;
  min-width:78px!important;
}

.maf-withdrawal-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--maf-line);
  border-radius:12px;
  background:#f8fbff;
}

.maf-withdrawal-item strong,
.maf-withdrawal-item span,
.maf-withdrawal-item small{
  display:block;
}

.maf-withdrawal-item small{
  color:var(--maf-muted);
  margin-top:3px;
}

.maf-title-copy{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.maf-title-copy h1{
  margin-top:0;
  min-width:0;
}

.maf-copy-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:1px solid #cfe0ff;
  border-radius:10px;
  background:#eef5ff;
  color:var(--maf-blue);
  cursor:pointer;
}

.maf-copy-icon.is-copied{
  background:#e8fff4;
  color:#059669;
  border-color:#b9f2d4;
}

.maf-gallery-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(74px,1fr));
  gap:10px;
}

.maf-gallery-thumb{
  position:relative;
  display:block;
  aspect-ratio:1;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--maf-line);
  background:#f8fbff;
}

.maf-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.maf-gallery-thumb .dashicons{
  position:absolute;
  inset:auto 8px 8px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:9px;
  background:rgba(15,23,42,.78);
  color:#fff;
  opacity:0;
  transition:opacity .18s ease;
}

.maf-gallery-thumb:hover .dashicons,
.maf-gallery-thumb:focus .dashicons{
  opacity:1;
}

@media(max-width:560px){
  .maf-compact-table{
    table-layout:fixed;
  }

  .maf-compact-table th,
  .maf-compact-table td{
    min-width:0!important;
    max-width:none!important;
    font-size:12px;
    padding:9px 6px;
  }

  .maf-mini-product-row{
    grid-template-columns:54px minmax(0,1fr);
  }

  .maf-mini-thumb{
    width:54px;
    height:54px;
  }

  .maf-withdrawal-item{
    align-items:flex-start;
  }

  .maf-gallery-preview{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .maf-products-table th,
  .maf-products-table td{
    min-width:0!important;
    max-width:none!important;
    padding:8px 6px;
    font-size:12px;
  }

  .maf-products-table th:first-child,
  .maf-products-table td:first-child{
    width:58px;
    min-width:58px!important;
  }

  .maf-products-table .maf-row-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}
