
:root{--wm-primary:#f4a10a;--wm-ink:#111827;--wm-muted:#64748b;--wm-line:#e5e7eb;--wm-soft:#f8fafc;--wm-shadow:0 16px 44px rgba(15,23,42,.10)}
html,body.maf-platform-document{margin:0!important;padding:0!important;background:#f4f7fb!important}
body.maf-platform-document #wpadminbar{display:none!important}
html{margin-top:0!important}
.wm-app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr);direction:rtl}
.wm-app-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 18px;background:#0b1830;color:#dbe7fa;z-index:100;box-sizing:border-box}
.wm-app-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none!important;padding:0 8px}
.wm-app-brand img,.wm-app-brand>span{width:40px;height:40px;border-radius:12px;background:#fff;object-fit:contain;display:grid;place-items:center;color:#111;font-weight:900}
.wm-app-brand strong{font-size:18px}
.wm-workspace-label{margin:24px 10px 10px;color:#8193b2;font-size:11px;font-weight:900;letter-spacing:.08em}
.wm-app-nav{display:grid;gap:4px;overflow:auto}
.wm-app-nav a,.wm-app-sidebar-bottom a{min-height:46px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:11px;color:#bdcbe1!important;text-decoration:none!important;font-size:14px;box-sizing:border-box}
.wm-app-nav a:hover,.wm-app-nav a.is-active,.wm-app-sidebar-bottom a:hover{background:rgba(255,255,255,.09);color:#fff!important}
.wm-app-nav a.is-active{box-shadow:inset -3px 0 0 var(--wm-primary)}
.wm-app-nav .dashicons,.wm-app-sidebar-bottom .dashicons{width:22px;height:22px;font-size:22px}
.wm-app-nav em{margin-inline-start:auto;min-width:22px;height:22px;display:grid;place-items:center;border-radius:999px;background:#ef4444;color:#fff;font-style:normal;font-size:11px}
.wm-app-sidebar-bottom{margin-top:auto;display:grid;gap:4px;border-top:1px solid rgba(255,255,255,.1);padding-top:12px}
.wm-app-sidebar-bottom .wm-logout-link{color:#ffb9b9!important}
.wm-app-stage{min-width:0}
.wm-app-topbar{position:sticky;top:0;z-index:90;min-height:72px;display:flex;align-items:center;gap:14px;padding:10px 28px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--wm-line);backdrop-filter:blur(14px);box-sizing:border-box}
.wm-app-topbar>div:nth-child(2){display:grid}.wm-app-topbar small{color:var(--wm-muted);font-size:11px}.wm-app-topbar strong{font-size:17px}
.wm-app-actions{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.wm-app-menu-toggle{display:none;width:42px;height:42px;border:1px solid var(--wm-line);border-radius:10px;background:#fff;color:var(--wm-ink)}
.wm-notification-link{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--wm-line);border-radius:10px;color:var(--wm-ink)!important;text-decoration:none!important}
.wm-notification-link em{position:absolute;inset:-5px auto auto -5px;min-width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-style:normal}
.wm-profile-menu{position:relative}.wm-profile-menu summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer}.wm-profile-menu summary::-webkit-details-marker{display:none}
.wm-profile-menu summary>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff3d9;color:#a96300;font-weight:900}.wm-profile-menu summary>b{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-profile-menu>div{position:absolute;z-index:40;inset-inline-end:0;top:calc(100% + 10px);width:200px;padding:8px;background:#fff;border:1px solid var(--wm-line);border-radius:12px;box-shadow:var(--wm-shadow)}
.wm-profile-menu>div a{display:block;padding:9px 11px;border-radius:8px;color:var(--wm-ink)!important;text-decoration:none!important;font-size:13px;font-weight:700}.wm-profile-menu>div a:hover{background:var(--wm-soft)}.wm-profile-menu>div .wm-logout-link{color:#b42318!important}
.wm-app-main{min-width:0;padding-bottom:50px}.wm-app-main .maf-wrap{max-width:1440px;margin:24px auto;padding:0 28px;box-sizing:border-box}
.wm-app-backdrop{display:none}
.maf-settings-card{border:1px solid var(--wm-line);border-radius:16px;padding:20px;margin:18px 0;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.03)}
.maf-settings-card h2{margin:0 0 14px;font-size:17px}.maf-settings-card p:last-child{margin-bottom:0}
.maf-settings-form>.maf-panel-head{margin-bottom:16px}.maf-settings-form>.maf-panel-head h1{margin:0}.maf-settings-form>.maf-panel-head .maf-eyebrow{margin:0 0 5px}
.maf-settings-form .maf-save-row{display:flex;justify-content:flex-end;position:sticky;bottom:12px;z-index:20;padding:12px;border-radius:14px;background:rgba(244,247,251,.92);backdrop-filter:blur(8px)}
.maf-settings-tabs{position:sticky;top:82px;z-index:20;display:flex;gap:6px;overflow:auto;padding:8px;margin:14px 0;background:rgba(255,255,255,.96);border:1px solid var(--wm-line);border-radius:12px}
.maf-settings-tabs a{white-space:nowrap;text-decoration:none!important;padding:8px 12px;border-radius:8px;font-weight:700;color:#475569!important}.maf-settings-tabs a:hover{background:#fff4db;color:#8a5200!important}
.wm-public-app-main{max-width:900px;margin:0 auto;padding:28px 16px}
.wm-no-scroll{overflow:hidden}
@media(max-width:1050px){
 .wm-app-shell{grid-template-columns:1fr}
 .wm-app-sidebar{position:fixed;inset:0 0 0 auto;width:min(300px,86vw);transform:translateX(105%);transition:transform .2s ease;box-shadow:-20px 0 50px rgba(5,15,30,.22)}
 .wm-app-shell.is-drawer-open .wm-app-sidebar{transform:translateX(0)}
 .wm-app-menu-toggle{display:grid;place-items:center}
 .wm-app-backdrop{position:fixed;inset:0;z-index:95;border:0;background:rgba(5,15,30,.52)}
 .wm-app-shell.is-drawer-open .wm-app-backdrop{display:block}
}
@media(max-width:680px){
 .wm-app-topbar{padding:8px 13px;min-height:62px}.wm-app-topbar>div:nth-child(2) small{display:none}.wm-app-topbar>div:nth-child(2) strong{font-size:14px}
 .wm-profile-menu summary>b{display:none}.wm-app-actions{gap:6px}.wm-app-main .maf-wrap{margin:16px auto;padding:0 13px}
 .maf-two-cols{grid-template-columns:1fr!important}.maf-form input,.maf-form select,.maf-form textarea,.maf-btn,.maf-form button{min-height:44px}
 .maf-settings-tabs{top:68px}
}

.maf-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.maf-admin-form-grid p{margin:0}.maf-admin-form-grid label,.maf-settings-card>p>label,.maf-settings-plan-card label{display:block;font-weight:800;margin-bottom:6px}.maf-admin-form-grid small,.maf-settings-plan-card small{display:block;color:var(--wm-muted);margin-top:4px}
.maf-settings-subcard{margin-top:16px;padding:16px;border:1px solid var(--wm-line);border-radius:13px;background:#fbfcfe}.maf-settings-subcard h3{margin:0 0 12px}
.maf-plan-settings{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px}.maf-settings-plan-card{border:1px solid var(--wm-line);border-radius:14px;padding:16px}.maf-settings-plan-card legend{padding:0 7px;font-size:15px;font-weight:900}.maf-settings-plan-card p{margin:10px 0}
.maf-setting-toggle{display:flex;align-items:center;gap:8px;padding:12px;border-radius:11px;background:#f8fafc;margin-bottom:12px;font-weight:800}
.maf-provider-status{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;margin-top:12px;border:1px solid var(--wm-line);border-radius:12px;background:#f8fafc}
@media(max-width:900px){.maf-plan-settings{grid-template-columns:1fr}.maf-admin-form-grid{grid-template-columns:1fr}}

/* Standalone admin component bundle */
.maf-admin-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.maf-admin-card{background:#fff;border:1px solid #ccd0d4;padding:14px;border-radius:8px}

.maf-logo-preview{display:flex;align-items:center;justify-content:center;width:170px;height:90px;border:1px solid #ccd0d4;border-radius:8px;background:#fff;margin-bottom:10px;overflow:hidden}.maf-logo-preview img{max-width:100%;max-height:100%;object-fit:contain}.maf-logo-preview span{color:#646970}

.toplevel_page_maf-users .widefat td,
.winmarket_page_maf-users .widefat td,
.winmarket_page_maf-platform-commissions .widefat td,
.winmarket_page_maf-popular-products .widefat td{
  unicode-bidi:isolate;
}

.toplevel_page_maf-users .widefat td:nth-child(3),
.winmarket_page_maf-users .widefat td:nth-child(3),
.maf-admin-settings input[inputmode="numeric"],
.maf-admin-settings input[type="number"]{
  direction:ltr;
  text-align:left;
}

.maf-admin-settings input[type="color"]{
  width:70px;
  height:36px;
  padding:2px;
}

.maf-money{
  direction:ltr;
  unicode-bidi:isolate;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  flex-direction:row;
  gap:4px;
}

.maf-money-amount{direction:ltr;unicode-bidi:isolate}
.maf-money-currency{direction:rtl;unicode-bidi:isolate}

.maf-admin-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin:16px 0;
}

.maf-admin-summary-card{
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:8px;
  padding:14px;
  box-shadow:0 1px 1px rgba(0,0,0,.04);
}

.maf-admin-summary-card span{
  display:block;
  color:#646970;
  margin-bottom:8px;
}

.maf-admin-summary-card strong{
  display:block;
  font-size:20px;
  color:#1d2327;
}

.maf-admin-summary-card-due{
  border-color:#f0b849;
  background:#fff8e5;
}

.maf-admin-inline-form{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}

.maf-admin-inline-form input[type="number"]{
  width:110px;
  direction:ltr;
  text-align:left;
}

.maf-admin-paid-badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#e7f7ed;
  color:#0a7f3f;
  font-weight:600;
}

@media (max-width: 782px){
  .maf-admin-responsive-table thead,
  .maf-admin-responsive-table tfoot{
    display:none;
  }

  .maf-admin-responsive-table tr{
    display:block;
    margin:0 0 12px;
    border:1px solid #dcdcde;
    background:#fff;
  }

  .maf-admin-responsive-table td{
    display:flex;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid #f0f0f1;
  }

  .maf-admin-responsive-table td:before{
    content:attr(data-label);
    font-weight:700;
    color:#1d2327;
  }
}


/* WinMarket Admin App */
body.maf-winmarket-admin{background:#f5f6f8}
body.maf-winmarket-admin #wpcontent{padding-left:0}
body.maf-winmarket-admin #wpbody-content{padding-bottom:40px}
body.maf-winmarket-admin #screen-meta-links,
body.maf-winmarket-admin .update-nag{display:none!important}
body.maf-winmarket-admin #wpadminbar{box-shadow:0 1px 0 rgba(17,17,17,.08)}
body.maf-winmarket-admin #adminmenumain{display:none}
body.maf-winmarket-admin #wpcontent,
body.maf-winmarket-admin #wpfooter{margin-left:0}
body.maf-winmarket-admin #wpfooter{display:none}
body.maf-winmarket-admin.rtl #wpcontent,
body.maf-winmarket-admin.rtl #wpfooter{margin-right:0}

.maf-winmarket-admin #wpbody{padding-top:0}
.maf-winmarket-admin .wrap,
.maf-admin-dashboard{max-width:1480px;margin:0 auto;padding:28px 28px 48px;box-sizing:border-box}
.maf-admin-dashboard{direction:rtl}
.maf-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#111;color:#fff;border-radius:24px;padding:28px 32px;margin-bottom:22px;box-shadow:0 16px 45px rgba(17,17,17,.12)}
.maf-admin-hero h1{color:#fff;font-size:30px;line-height:1.2;margin:6px 0 8px}
.maf-admin-hero p{margin:0;color:#c9c9c9;font-size:14px}
.maf-admin-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;color:#f4a10a}
.maf-admin-primary{display:inline-flex;align-items:center;justify-content:center;background:#f4a10a;color:#111!important;text-decoration:none;font-weight:800;border-radius:12px;padding:12px 18px;white-space:nowrap}
.maf-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.maf-admin-kpi{display:flex;min-height:118px;position:relative;flex-direction:column;justify-content:flex-end;background:#fff;border:1px solid #e9e9e9;border-radius:18px;padding:18px;text-decoration:none!important;color:#111!important;box-shadow:0 5px 18px rgba(17,17,17,.035)}
.maf-admin-kpi .dashicons{position:absolute;top:16px;left:16px;width:34px;height:34px;font-size:24px;display:grid;place-items:center;background:#fff5df;color:#d88700;border-radius:10px}
.maf-admin-kpi small{font-size:12px;color:#777;font-weight:700}
.maf-admin-kpi strong{font-size:25px;line-height:1.25;margin-top:5px}
.maf-admin-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}
.maf-admin-panel,.maf-admin-detail-card,.maf-admin-table-card{background:#fff;border:1px solid #e9e9e9;border-radius:18px;padding:20px;box-shadow:0 5px 18px rgba(17,17,17,.035)}
.maf-admin-panel-head,.maf-module-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.maf-admin-panel-head h2,.maf-module-head h1{margin:3px 0 0;font-size:20px}
.maf-admin-panel-head a{color:#b66e00;text-decoration:none;font-weight:700}
.maf-admin-status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.maf-admin-status-grid div{background:#f7f7f7;border-radius:13px;padding:16px}
.maf-admin-status-grid span{display:block;color:#777;font-size:12px}
.maf-admin-status-grid strong{display:block;font-size:22px;margin-top:5px}
.maf-admin-task{display:flex;justify-content:space-between;align-items:center;text-decoration:none!important;color:#222!important;padding:14px 2px;border-bottom:1px solid #eee}
.maf-admin-task:last-child{border-bottom:0}
.maf-admin-task strong{background:#fff5df;color:#9b5e00;padding:5px 10px;border-radius:999px}
.maf-admin-module{direction:rtl}
.maf-admin-table-card{padding:0;overflow:hidden}
.maf-admin-table-card table{border:0;box-shadow:none}
.maf-admin-table-card th{font-weight:800;background:#fafafa;padding:13px 12px}
.maf-admin-table-card td{padding:13px 12px;vertical-align:middle}
.maf-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.maf-detail-grid>div{background:#f8f8f8;border-radius:12px;padding:13px}
.maf-detail-grid span{display:block;color:#777;font-size:11px;margin-bottom:4px}
.maf-detail-grid strong{font-size:14px;word-break:break-word}
.maf-detail-grid .is-wide{grid-column:span 2}
.maf-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}
.maf-status-approved{background:#e8f7ee;color:#18713a}
.maf-status-pending{background:#fff4d8;color:#8a5b00}
.maf-status-suspended,.maf-status-rejected{background:#fee9e7;color:#a12b22}
.maf-actions{white-space:normal}
.maf-actions .button{margin:2px}

@media(max-width:960px){
 body.maf-winmarket-admin #wpadminbar{display:none}
 html.wp-toolbar body.maf-winmarket-admin{padding-top:0}
 .maf-winmarket-admin .wrap,.maf-admin-dashboard{padding:16px 12px 36px}
 .maf-admin-hero{padding:22px;border-radius:18px;align-items:flex-start;flex-direction:column}
 .maf-admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .maf-admin-grid{grid-template-columns:1fr}
 .maf-admin-status-grid{grid-template-columns:repeat(2,1fr)}
 .maf-detail-grid{grid-template-columns:1fr}
 .maf-detail-grid .is-wide{grid-column:auto}
 .maf-admin-table-card{overflow-x:auto}
}
@media(max-width:520px){
 .maf-admin-kpis{grid-template-columns:1fr 1fr;gap:9px}
 .maf-admin-kpi{min-height:102px;padding:14px}
 .maf-admin-kpi strong{font-size:20px}
 .maf-admin-hero h1{font-size:24px}
}

.maf-admin-app-nav{direction:rtl;display:flex;align-items:center;gap:22px;background:#fff;border-bottom:1px solid #e7e7e7;padding:0 26px;min-height:64px;position:sticky;top:32px;z-index:90;box-sizing:border-box}
.maf-admin-brand{display:flex;align-items:baseline;gap:7px;text-decoration:none!important;color:#111!important;white-space:nowrap}
.maf-admin-brand strong{font-size:20px}.maf-admin-brand span{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:1px}
.maf-admin-nav-links{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none}
.maf-admin-nav-links::-webkit-scrollbar{display:none}
.maf-admin-nav-links a{padding:22px 10px 18px;border-bottom:3px solid transparent;text-decoration:none!important;color:#555!important;font-weight:700;white-space:nowrap}
.maf-admin-nav-links a:hover,.maf-admin-nav-links a.is-active{color:#111!important;border-bottom-color:#f4a10a}
@media(max-width:960px){.maf-admin-app-nav{top:0;padding:0 12px;gap:12px;min-height:58px}.maf-admin-nav-links a{padding:19px 8px 16px;font-size:12px}.maf-admin-brand strong{font-size:17px}}


/* WinMarket Admin v14 — unified modules */
.maf-module-head p{margin:7px 0 0;color:#777;font-size:13px}
.maf-admin-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 18px}
.maf-admin-summary-card{background:#fff;border:1px solid #e9e9e9;border-radius:16px;padding:16px;box-shadow:0 5px 18px rgba(17,17,17,.035)}
.maf-admin-summary-card span{display:block;color:#777;font-size:11px;font-weight:700;margin-bottom:6px}
.maf-admin-summary-card strong{font-size:20px;color:#111}
.maf-admin-summary-card-due{border-color:#f1d391;background:#fffaf0}
.maf-admin-paid-badge{display:inline-flex;background:#e8f7ee;color:#18713a;padding:6px 9px;border-radius:999px;font-weight:700;font-size:11px}
.maf-admin-inline-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.maf-admin-inline-form input[type=number]{max-width:120px}

/* Settings becomes a clean card stack instead of a long WordPress settings sheet */
.maf-admin-settings-form>h2{background:#111;color:#fff;border-radius:15px 15px 0 0;margin:18px 0 0;padding:15px 18px;font-size:16px}
.maf-admin-settings-form>.form-table,
.maf-admin-settings-form>table.widefat{background:#fff;border:1px solid #e9e9e9;border-top:0;border-radius:0 0 15px 15px;margin:0 0 18px;padding:8px 18px;box-sizing:border-box;box-shadow:0 5px 18px rgba(17,17,17,.025)}
.maf-admin-settings-form>.form-table th{width:220px;padding:15px 8px;font-size:12px}
.maf-admin-settings-form>.form-table td{padding:12px 8px}
.maf-admin-settings-form input[type=text],
.maf-admin-settings-form input[type=email],
.maf-admin-settings-form input[type=url],
.maf-admin-settings-form input[type=number],
.maf-admin-settings-form select,
.maf-admin-settings-form textarea{border:1px solid #ddd;border-radius:9px;min-height:38px;box-shadow:none}
.maf-admin-settings-form textarea{padding:10px}
.maf-admin-settings-form input:focus,
.maf-admin-settings-form select:focus,
.maf-admin-settings-form textarea:focus{border-color:#f4a10a;box-shadow:0 0 0 1px #f4a10a}
.maf-admin-settings-form .submit{position:sticky;bottom:12px;z-index:20;background:rgba(245,246,248,.94);backdrop-filter:blur(8px);padding:12px 0;margin:8px 0}
.maf-admin-settings-form .button-primary,
.maf-admin-module .button-primary{background:#111;border-color:#111;color:#fff}
.maf-admin-settings-form .button-primary:hover,
.maf-admin-module .button-primary:hover{background:#f4a10a;border-color:#f4a10a;color:#111}
.maf-logo-preview{background:#f8f8f8;border:1px dashed #ddd;border-radius:12px;padding:10px;display:inline-flex;min-width:100px;min-height:60px;align-items:center;justify-content:center}
.maf-logo-preview img{max-height:54px;max-width:180px}

/* Responsive tables become readable cards on small phones */
@media(max-width:782px){
 .maf-admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .maf-admin-responsive-table thead{display:none}
 .maf-admin-responsive-table,
 .maf-admin-responsive-table tbody,
 .maf-admin-responsive-table tr,
 .maf-admin-responsive-table td{display:block;width:100%;box-sizing:border-box}
 .maf-admin-responsive-table tr{background:#fff;border-bottom:8px solid #f5f6f8;padding:8px 0}
 .maf-admin-responsive-table td{border:0!important;padding:7px 12px!important}
 .maf-admin-settings-form>.form-table{display:block;padding:8px 12px}
 .maf-admin-settings-form>.form-table tbody,
 .maf-admin-settings-form>.form-table tr,
 .maf-admin-settings-form>.form-table th,
 .maf-admin-settings-form>.form-table td{display:block;width:100%;box-sizing:border-box}
 .maf-admin-settings-form>.form-table th{padding:12px 4px 4px}
 .maf-admin-settings-form>.form-table td{padding:4px 4px 12px}
 .maf-admin-settings-form input.regular-text,
 .maf-admin-settings-form input.large-text,
 .maf-admin-settings-form textarea,
 .maf-admin-settings-form select{width:100%;max-width:100%}
}
@media(max-width:520px){
 .maf-admin-summary-grid{grid-template-columns:1fr 1fr;gap:8px}
 .maf-admin-summary-card{padding:13px}
 .maf-admin-summary-card strong{font-size:17px}
}


/* v0.4.4 standalone admin hardening */
body.wm-workspace-document{margin:0!important;padding:0!important;overflow-x:hidden!important;font-family:Arial,"Noto Sans Arabic",sans-serif!important}
body.wm-workspace-document .wm-app-shell{width:100%!important;max-width:none!important;margin:0!important}
body.wm-workspace-document .wm-app-stage{width:100%!important;max-width:none!important;min-width:0!important}
body.wm-workspace-document .wm-app-main{width:100%!important;max-width:none!important;margin:0!important;padding:0 0 48px!important;box-sizing:border-box!important}
body.wm-workspace-document .wm-app-main>.maf-admin-dashboard,
body.wm-workspace-document .wm-app-main>.wrap,
body.wm-workspace-document .wm-app-main>.maf-admin-module{width:auto!important;max-width:1480px!important;margin:0 auto!important;padding:28px!important;box-sizing:border-box!important}
body.wm-workspace-document .maf-admin-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important}
body.wm-workspace-document .maf-admin-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
body.wm-workspace-document .maf-admin-kpi{display:flex!important;min-width:0!important;width:auto!important}
body.wm-workspace-document .maf-admin-grid{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;gap:18px!important}
body.wm-workspace-document .maf-admin-panel{min-width:0!important}
body.wm-workspace-document .maf-admin-table-card{width:100%!important;overflow:auto!important}
body.wm-workspace-document .maf-admin-module table{width:100%!important}
body.wm-workspace-document .maf-form.maf-card,
body.wm-workspace-document .maf-panel{width:100%!important;max-width:none!important;box-sizing:border-box!important}
body.wm-workspace-document .maf-settings-form{max-width:1100px!important;margin:24px auto!important}
body.wm-workspace-document .maf-settings-card input:not([type=checkbox]):not([type=radio]):not([type=color]),
body.wm-workspace-document .maf-settings-card select,
body.wm-workspace-document .maf-settings-card textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
@media(max-width:1200px){
 body.wm-workspace-document .maf-admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.wm-workspace-document .maf-admin-grid{grid-template-columns:1fr!important}
}
@media(max-width:680px){
 body.wm-workspace-document .wm-app-main>.maf-admin-dashboard,
 body.wm-workspace-document .wm-app-main>.wrap,
 body.wm-workspace-document .wm-app-main>.maf-admin-module{padding:14px!important}
 body.wm-workspace-document .maf-admin-hero{align-items:flex-start!important;flex-direction:column!important}
 body.wm-workspace-document .maf-admin-kpis{grid-template-columns:1fr 1fr!important;gap:9px!important}
 body.wm-workspace-document .maf-settings-form{margin:14px auto!important}
}


/* v0.4.5 — desktop workspace repair */
@media(min-width:1051px){
  body.wm-workspace-document .wm-app-shell{grid-template-columns:228px minmax(0,1fr)!important}
  body.wm-workspace-document .wm-app-sidebar{width:228px!important;padding:18px 12px!important;overflow:hidden!important}
  body.wm-workspace-document .wm-app-brand{padding:0 6px!important}
  body.wm-workspace-document .wm-workspace-label{margin:17px 8px 7px!important}
  body.wm-workspace-document .wm-app-nav{gap:2px!important;overflow-y:auto!important;scrollbar-width:none!important}
  body.wm-workspace-document .wm-app-nav::-webkit-scrollbar{display:none!important}
  body.wm-workspace-document .wm-app-nav a,
  body.wm-workspace-document .wm-app-sidebar-bottom a{min-height:39px!important;padding:7px 9px!important;border-radius:9px!important;font-size:12.5px!important;gap:9px!important}
  body.wm-workspace-document .wm-app-nav .dashicons,
  body.wm-workspace-document .wm-app-sidebar-bottom .dashicons{width:19px!important;height:19px!important;font-size:19px!important}
  body.wm-workspace-document .wm-app-topbar{min-height:64px!important;padding:8px 22px!important}

  body.wm-workspace-document .wm-app-main>.maf-admin-dashboard,
  body.wm-workspace-document .wm-app-main>.wrap,
  body.wm-workspace-document .wm-app-main>.maf-admin-module{width:100%!important;max-width:none!important;margin:0!important;padding:24px 26px 40px!important}
  body.wm-workspace-document .maf-admin-module .maf-module-head{margin-bottom:14px!important}
  body.wm-workspace-document .maf-admin-table-card{width:100%!important;overflow-x:auto!important;padding:0!important;border-radius:15px!important}
  body.wm-workspace-document .maf-admin-table-card table{width:100%!important;min-width:820px!important;table-layout:auto!important;border-collapse:collapse!important}
  body.wm-workspace-document .maf-admin-table-card th,
  body.wm-workspace-document .maf-admin-table-card td{white-space:nowrap!important;vertical-align:middle!important}
  body.wm-workspace-document .maf-actions{min-width:230px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important}
  body.wm-workspace-document .maf-actions .button{margin:0!important;min-height:30px!important;line-height:28px!important;padding:0 10px!important;border-radius:7px!important;font-size:11px!important}
  body.wm-workspace-document .maf-admin-settings-form{width:100%!important;max-width:none!important;margin:0!important}
  body.wm-workspace-document .maf-settings-tabs{top:72px!important;margin:0 0 14px!important}
  body.wm-workspace-document .maf-settings-card{width:100%!important;max-width:none!important;box-sizing:border-box!important}
  body.wm-workspace-document .maf-platform-content-editor textarea{min-height:105px!important}
}
body.wm-workspace-document .maf-admin-module .button{border-color:#d7dce3!important;background:#fff!important;color:#253047!important;box-shadow:none!important}
body.wm-workspace-document .maf-admin-module .button:hover{border-color:#f4a10a!important;color:#8b5600!important;background:#fffaf0!important}
body.wm-workspace-document .maf-admin-module .button-primary{background:#111827!important;border-color:#111827!important;color:#fff!important}
body.wm-workspace-document .maf-admin-module .button-primary:hover{background:#f4a10a!important;border-color:#f4a10a!important;color:#111827!important}


/* v0.4.6 — sidebar three-zone layout fix */
body.wm-workspace-document .wm-app-sidebar{
  display:flex!important;
  flex-direction:column!important;
  height:100vh!important;
  min-height:100vh!important;
  max-height:100vh!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.wm-workspace-document .wm-app-brand{
  flex:0 0 auto!important;
}
body.wm-workspace-document .wm-workspace-label{
  flex:0 0 auto!important;
}
body.wm-workspace-document .wm-app-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding-bottom:10px!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(255,255,255,.22) transparent!important;
}
body.wm-workspace-document .wm-app-nav::-webkit-scrollbar{
  width:5px!important;
}
body.wm-workspace-document .wm-app-nav::-webkit-scrollbar-track{
  background:transparent!important;
}
body.wm-workspace-document .wm-app-nav::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.22)!important;
  border-radius:999px!important;
}
body.wm-workspace-document .wm-app-sidebar-bottom{
  flex:0 0 auto!important;
  margin-top:10px!important;
  padding-top:10px!important;
  padding-bottom:2px!important;
  background:#0b1830!important;
  border-top:1px solid rgba(255,255,255,.10)!important;
  position:relative!important;
  z-index:2!important;
}
body.wm-workspace-document .wm-app-sidebar-bottom a{
  min-height:38px!important;
}
@media(min-width:1051px){
  body.wm-workspace-document .wm-app-sidebar{
    padding:16px 11px 12px!important;
  }
  body.wm-workspace-document .wm-app-brand{
    min-height:42px!important;
  }
  body.wm-workspace-document .wm-workspace-label{
    margin:14px 8px 6px!important;
  }
  body.wm-workspace-document .wm-app-nav{
    gap:1px!important;
    padding-right:1px!important;
  }
  body.wm-workspace-document .wm-app-nav a{
    min-height:36px!important;
    padding:6px 8px!important;
    font-size:12px!important;
  }
  body.wm-workspace-document .wm-app-sidebar-bottom{
    margin-top:7px!important;
  }
}
@media(max-height:760px) and (min-width:1051px){
  body.wm-workspace-document .wm-app-brand img,
  body.wm-workspace-document .wm-app-brand>span{
    width:34px!important;
    height:34px!important;
  }
  body.wm-workspace-document .wm-app-brand strong{
    font-size:16px!important;
  }
  body.wm-workspace-document .wm-workspace-label{
    margin:10px 8px 5px!important;
    font-size:10px!important;
  }
  body.wm-workspace-document .wm-app-nav a,
  body.wm-workspace-document .wm-app-sidebar-bottom a{
    min-height:33px!important;
    padding:5px 8px!important;
    font-size:11.5px!important;
  }
  body.wm-workspace-document .wm-app-nav .dashicons,
  body.wm-workspace-document .wm-app-sidebar-bottom .dashicons{
    width:18px!important;
    height:18px!important;
    font-size:18px!important;
  }
}


/* v0.4.7 — merchant subscription + settings */
.maf-subscription-page{max-width:1280px!important}
.maf-subscription-hero{padding:6px 2px 18px}
.maf-subscription-hero h1{margin:5px 0 8px;font-size:32px;line-height:1.25}
.maf-subscription-hero p{max-width:900px;margin:0;color:#64748b;line-height:1.9}

.maf-current-plan-sticky{
  position:sticky;top:80px;z-index:30;
  display:grid;grid-template-columns:minmax(190px,1.5fr) repeat(4,minmax(120px,1fr));
  gap:10px;align-items:stretch;
  padding:12px;margin:0 0 18px;
  border:1px solid #dbe4ef;border-radius:18px;
  background:rgba(255,255,255,.96);backdrop-filter:blur(14px);
  box-shadow:0 10px 28px rgba(15,23,42,.09);
}
.maf-current-plan-sticky>div{padding:10px 12px;border-radius:12px;background:#f8fafc}
.maf-current-plan-sticky span{display:block;font-size:11px;color:#64748b;margin-bottom:4px}
.maf-current-plan-sticky strong{font-size:14px;color:#111827}
.maf-current-plan-main strong{font-size:18px}
.maf-current-plan-sticky.plan-starter .maf-current-plan-main,
.maf-current-plan-sticky.plan-free .maf-current-plan-main{background:#eaf8ef}
.maf-current-plan-sticky.plan-pro .maf-current-plan-main{background:#edf1ff}
.maf-current-plan-sticky.plan-business .maf-current-plan-main{background:#fff5d9}

.maf-colored-plans{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
.maf-colored-plans .maf-subscription-plan{
  position:relative;overflow:hidden;
  border:1px solid transparent!important;border-radius:22px!important;
  padding:22px!important;box-shadow:0 12px 30px rgba(15,23,42,.07)!important;
}
.maf-colored-plans .maf-subscription-plan:before{
  content:"";position:absolute;inset:0 0 auto;height:6px
}
.maf-colored-plans .is-free{background:linear-gradient(180deg,#f0fff5,#ffffff 42%)!important;border-color:#b8e8c8!important}
.maf-colored-plans .is-free:before{background:#22a35a}
.maf-colored-plans .is-pro{background:linear-gradient(180deg,#f2f5ff,#ffffff 42%)!important;border-color:#c9d4ff!important}
.maf-colored-plans .is-pro:before{background:linear-gradient(90deg,#3958d8,#6c4de6)}
.maf-colored-plans .is-business{background:linear-gradient(180deg,#fff8e8,#ffffff 42%)!important;border-color:#efd38c!important}
.maf-colored-plans .is-business:before{background:linear-gradient(90deg,#c58a00,#172033)}
.maf-colored-plans .is-paid{background:linear-gradient(180deg,#f7f7fb,#fff)!important;border-color:#dddfea!important}
.maf-colored-plans .is-paid:before{background:#596579}
.maf-colored-plans .is-current{outline:3px solid rgba(244,161,10,.16)}
.maf-plan-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}
.maf-plan-badge,.maf-current-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10.5px;font-weight:900}
.is-free .maf-plan-badge{background:#dcf6e5;color:#13723b}
.is-pro .maf-plan-badge{background:#e1e6ff;color:#3346b4}
.is-business .maf-plan-badge{background:#fff0be;color:#8a5a00}
.maf-current-badge{background:#111827;color:#fff}
.maf-colored-plans h2{font-size:24px;margin:18px 0 8px}
.maf-colored-plans .maf-plan-price{display:flex;align-items:flex-end;gap:6px;margin:0 0 3px}
.maf-colored-plans .maf-plan-price strong{font-size:34px;line-height:1}
.maf-colored-plans .maf-plan-price span{color:#64748b;font-weight:800}
.maf-plan-duration{margin:3px 0 15px;color:#64748b}
.maf-colored-plans ul{display:grid;gap:9px;margin:16px 0 20px;padding:0;list-style:none}
.maf-colored-plans li:before{content:"✓";font-weight:900;margin-left:7px}
.is-free li:before{color:#22a35a}.is-pro li:before{color:#5267dc}.is-business li:before{color:#b27c00}
.maf-plan-action{
  width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:12px;font-weight:900;cursor:pointer;text-decoration:none!important
}
.is-free .maf-plan-action{background:#16864a;color:#fff}
.is-pro .maf-plan-action{background:linear-gradient(90deg,#3958d8,#6c4de6);color:#fff}
.is-business .maf-plan-action{background:linear-gradient(90deg,#c88d00,#172033);color:#fff}
.is-paid .maf-plan-action{background:#243047;color:#fff}
.maf-plan-action.is-disabled{background:#e8ebef!important;color:#7b8492!important;cursor:default}

.maf-pending-subscription{display:flex;align-items:center;gap:12px;border-color:#f1cf79!important;background:#fff9e9!important}
.maf-pending-subscription>.dashicons{font-size:26px;color:#c77c00}
.maf-payment-locked{padding:14px;border-radius:12px;background:#fff7df;color:#7c5612;font-weight:800}
.maf-local-payment-accounts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.maf-local-payment-accounts>div{padding:15px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.maf-local-payment-accounts span{display:block;color:#64748b;font-size:12px}
.maf-local-payment-accounts strong{display:block;margin-top:5px;font-size:17px}

.maf-account-email-box{
  display:flex;align-items:center;gap:12px;padding:14px 16px;margin:0 0 14px;
  border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc
}
.maf-account-email-box>.dashicons{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#fff1d6;color:#a86400;font-size:22px}
.maf-account-email-box small{display:block;color:#64748b}.maf-account-email-box strong{font-size:14px;word-break:break-all}
.maf-store-content-card textarea{min-height:110px}

@media(max-width:980px){
 .maf-colored-plans{grid-template-columns:1fr!important}
 .maf-current-plan-sticky{grid-template-columns:1fr 1fr 1fr!important}
 .maf-current-plan-main{grid-column:1/-1}
}
@media(max-width:680px){
 .maf-subscription-hero h1{font-size:27px}
 .maf-current-plan-sticky{
   top:68px;grid-template-columns:1fr 1fr!important;
   gap:7px;padding:8px;border-radius:15px;margin-bottom:14px
 }
 .maf-current-plan-main{grid-column:1/-1}
 .maf-current-plan-sticky>div{padding:9px}
 .maf-current-plan-sticky span{font-size:10px}
 .maf-current-plan-sticky strong{font-size:12px}
 .maf-current-plan-main strong{font-size:16px}
 .maf-colored-plans .maf-subscription-plan{padding:18px!important;border-radius:18px!important}
 .maf-colored-plans h2{font-size:22px}
 .maf-colored-plans .maf-plan-price strong{font-size:30px}
 .maf-local-payment-accounts{grid-template-columns:1fr}
}


/* v0.4.8 — contact, verified email change, modern product detail */
.maf-contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.maf-contact-action{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:15px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#111827!important;text-decoration:none!important}
.maf-contact-action .dashicons{width:28px;height:28px;font-size:24px;color:#3157c8}
.maf-contact-action.is-whatsapp{background:#effcf4;border-color:#bfe8cc}
.maf-contact-action.is-whatsapp .dashicons{color:#16864a}
.maf-contact-action b{font-size:14px}.maf-contact-action small{color:#64748b;word-break:break-all}

.maf-email-verification-box{margin:14px 0;padding:16px;border:1px solid #f1cf79;border-radius:14px;background:#fff9e9}
.maf-email-verification-box>div span{display:block;font-size:11px;color:#7c5612}.maf-email-verification-box>div strong{font-size:14px;word-break:break-all}
.maf-inline-verify-form{display:flex;gap:8px;align-items:center;margin-top:12px}
.maf-inline-verify-form input{max-width:170px!important;text-align:center;letter-spacing:6px;font-weight:900}
.maf-email-resend-form{margin-top:8px}
.maf-admin-pending-email{background:#fff9e9!important;border:1px solid #f1cf79!important}.maf-admin-pending-email small{display:block;color:#8a5a00;margin-top:4px}
.maf-pending-email-row{color:#9a6a00;font-weight:700}

/* Remove box-inside-box look from product pricing on mobile/desktop */
.maf-product-details-modern .maf-details-panel{padding:24px!important}
.maf-product-price-block{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid #eef1f5;border-bottom:1px solid #eef1f5}
.maf-product-price-block span{color:#64748b;font-size:13px;font-weight:800}
.maf-product-price-block strong{font-size:32px;line-height:1;color:#111827}
.maf-commission-highlight{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;margin:16px 0;border-radius:14px;background:#eefbf3;border:1px solid #c8ead4}
.maf-commission-highlight span{display:block;color:#397051;font-size:11px;margin-bottom:4px}
.maf-commission-highlight strong{font-size:21px;color:#14723d}
.maf-commission-highlight em{display:grid;place-items:center;min-width:48px;height:34px;padding:0 8px;border-radius:999px;background:#16864a;color:#fff;font-style:normal;font-weight:900}
.maf-product-simple-meta{display:grid;gap:0;border-top:1px solid #eef1f5}
.maf-product-simple-meta>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #eef1f5}
.maf-product-simple-meta span{color:#64748b;font-size:12px}.maf-product-simple-meta strong{font-size:14px}
.maf-product-order-btn{width:100%;margin-top:18px;display:flex!important;justify-content:center;align-items:center;min-height:48px}
.maf-product-info-modern .maf-title-copy{margin-bottom:16px}

@media(max-width:680px){
 .maf-contact-actions{grid-template-columns:1fr}
 .maf-inline-verify-form{display:grid;grid-template-columns:1fr}
 .maf-inline-verify-form input{max-width:none!important}
 .maf-product-details-modern .maf-details-panel{padding:18px!important}
 .maf-product-price-block strong{font-size:28px}
 .maf-commission-highlight strong{font-size:19px}
}

.maf-store-contact-preview{margin-top:18px;padding-top:16px;border-top:1px solid #e8edf3}.maf-store-contact-preview h3{margin:0 0 6px}


/* v0.4.9 — affiliate catalog polish */
.maf-product-price-block strong{
  font-size:38px!important;
  font-weight:900!important;
  letter-spacing:-.02em;
}
.maf-commission-highlight{
  align-items:center!important;
}
.maf-commission-highlight>div{width:100%}
.maf-commission-highlight strong{
  font-size:28px!important;
  font-weight:900!important;
  line-height:1.1!important;
}
.maf-commission-highlight em{display:none!important}

.maf-product-filter-pro{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  padding:16px!important;
}
.maf-filter-search-row{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#fff;
  padding:0 15px;
}
.maf-filter-search-row>.dashicons{
  flex:0 0 auto;
  color:#718096;
  font-size:22px;
}
.maf-filter-search-row input{
  width:100%!important;
  min-height:50px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
  font-size:15px!important;
}
.maf-filter-search-row input:focus{outline:0!important}

.maf-filter-pair{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}
.maf-filter-pair label{
  display:block;
  padding:10px 12px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#fff;
}
.maf-filter-pair label>span{
  display:block;
  margin-bottom:5px;
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.maf-filter-pair select{
  width:100%!important;
  min-height:34px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0 2px!important;
  font-size:14px!important;
  font-weight:800!important;
  color:#1f2937!important;
}
.maf-filter-submit{
  width:100%!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(90deg,#e9b40f,#155ed1)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

.maf-platform-contact-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:14px 0 18px;
  padding:13px 15px;
  border:1px solid #dfe6ef;
  border-radius:15px;
  background:linear-gradient(180deg,#fff,#f8fbff);
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.maf-platform-contact-strip>div:first-child{
  display:flex;
  align-items:center;
  gap:10px;
}
.maf-platform-contact-strip>div:first-child>.dashicons{
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:11px;
  background:#edf4ff;
  color:#245fc7;
  font-size:21px;
}
.maf-platform-contact-strip strong{display:block;font-size:14px;color:#111827}
.maf-platform-contact-strip small{display:block;color:#64748b;font-size:11px;margin-top:2px}
.maf-contact-strip-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.maf-contact-strip-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 10px;
  border-radius:9px;
  background:#fff;
  border:1px solid #d8e0e9;
  color:#253047!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:800;
}
.maf-contact-strip-actions a:hover{
  border-color:#f4a10a;
  background:#fffaf0;
}

.maf-product-card .maf-product-price{
  font-size:17px!important;
  font-weight:900!important;
}
.maf-product-card .maf-product-commission{
  font-size:14px!important;
  font-weight:900!important;
}

@media(max-width:680px){
  .maf-product-price-block strong{font-size:34px!important}
  .maf-commission-highlight strong{font-size:25px!important}
  .maf-product-filter-pro{padding:12px!important;gap:10px!important}
  .maf-filter-pair{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .maf-filter-pair label{padding:9px 10px!important}
  .maf-filter-pair label>span{font-size:10px!important}
  .maf-filter-pair select{font-size:13px!important}
  .maf-platform-contact-strip{
    align-items:flex-start;
    flex-direction:column;
    padding:12px;
  }
  .maf-contact-strip-actions{width:100%}
  .maf-contact-strip-actions a{flex:1 1 0}
}


/* v0.5.1 — affiliate stores */
.maf-stores-head{margin-bottom:16px}
.maf-stores-head h1{margin:5px 0 7px;font-size:30px}
.maf-stores-head p{margin:0;color:#64748b}

.maf-store-search{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 14px!important;
  margin-bottom:16px!important;
}
.maf-store-search>.dashicons{color:#64748b;font-size:22px}
.maf-store-search input{
  min-height:44px!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.maf-store-search button{
  min-height:40px;
  padding:0 18px;
  border:0;
  border-radius:10px;
  background:#111827;
  color:#fff;
  font-weight:900;
}

.maf-store-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.maf-store-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:18px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
}
.maf-store-card-top{display:flex;align-items:center;gap:12px}
.maf-store-avatar{
  flex:0 0 auto;
  width:58px;
  height:58px;
  border-radius:15px;
  overflow:hidden;
  background:linear-gradient(135deg,#fff3d8,#eaf2ff);
  display:grid;
  place-items:center;
  color:#8a5a00;
  font-size:22px;
  font-weight:900;
}
.maf-store-avatar img{width:100%;height:100%;object-fit:cover}
.maf-store-card h2{margin:0 0 4px;font-size:18px}
.maf-store-card-top p{margin:0;color:#64748b;font-size:12px;display:flex;align-items:center;gap:4px}
.maf-store-card-top .dashicons{font-size:15px;width:15px;height:15px}
.maf-store-about{min-height:42px;margin:14px 0;color:#526071;line-height:1.7;font-size:13px}
.maf-store-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 0;
  border-top:1px solid #eef2f6;
}
.maf-store-card-meta span{font-size:12px;color:#64748b}
.maf-store-card-meta strong{font-size:20px;color:#111827}
.maf-store-open{
  margin-top:auto;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:11px;
  background:linear-gradient(90deg,#e9b40f,#155ed1);
  color:#fff!important;
  text-decoration:none!important;
  font-weight:900;
}
.maf-store-open .dashicons{font-size:18px;width:18px;height:18px}

.maf-store-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:13px;
  color:#475569!important;
  text-decoration:none!important;
  font-weight:800;
}
.maf-store-hero-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:22px;
  margin-bottom:16px;
  border:1px solid #dfe6ef;
  border-radius:20px;
  background:linear-gradient(135deg,#fff,#f7faff);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.maf-store-avatar.is-large{width:82px;height:82px;border-radius:20px;font-size:30px}
.maf-store-hero-info h1{margin:5px 0 6px;font-size:29px}
.maf-store-hero-info>p{margin:4px 0;color:#64748b}
.maf-store-description{max-width:760px;line-height:1.8}
.maf-store-verified{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 9px;
  border-radius:999px;
  background:#e9f8ef;
  color:#18713a;
  font-size:11px;
  font-weight:900;
}
.maf-store-verified .dashicons{font-size:15px;width:15px;height:15px}
.maf-store-count{
  min-width:120px;
  padding:14px 16px;
  border-radius:14px;
  background:#111827;
  color:#fff;
  text-align:center;
}
.maf-store-count span{display:block;color:#cbd5e1;font-size:11px}
.maf-store-count strong{display:block;margin-top:3px;font-size:27px}
.maf-store-policy-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.maf-store-policy-grid article{margin:0!important}
.maf-store-policy-grid .dashicons{font-size:24px;color:#b77a00}
.maf-store-policy-grid h3{margin:8px 0}
.maf-store-policy-grid p{margin:0;color:#5f6d7e;line-height:1.7}
.maf-store-products-title{margin:20px 0 12px}
.maf-store-products-title h2{margin:4px 0 0;font-size:23px}

@media(max-width:980px){
  .maf-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .maf-stores-head h1{font-size:26px}
  .maf-store-grid{grid-template-columns:1fr}
  .maf-store-search{grid-template-columns:auto minmax(0,1fr)}
  .maf-store-search button{grid-column:1/-1;width:100%}
  .maf-store-hero-card{grid-template-columns:auto 1fr;gap:12px;padding:16px}
  .maf-store-avatar.is-large{width:64px;height:64px;border-radius:16px}
  .maf-store-hero-info h1{font-size:22px}
  .maf-store-count{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;text-align:initial}
  .maf-store-count strong{font-size:23px}
  .maf-store-policy-grid{grid-template-columns:1fr}
}


/* v0.5.2 — professional merchant storefront */
.maf-storefront-page{max-width:1320px!important}
.maf-storefront-header{
  overflow:hidden;
  margin-bottom:16px;
  border:1px solid #dfe6ef;
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.07);
}
.maf-storefront-cover{
  position:relative;
  min-height:150px;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 25%,rgba(244,161,10,.28),transparent 28%),
    radial-gradient(circle at 86% 28%,rgba(44,104,213,.30),transparent 28%),
    linear-gradient(135deg,#0b1830,#16345f 52%,#245fc7);
}
.maf-storefront-cover:after{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent);
}
.maf-storefront-cover-mark{
  position:absolute;
  left:24px;
  bottom:18px;
  z-index:2;
  color:rgba(255,255,255,.88);
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
}
.maf-storefront-profile{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:end;
  gap:18px;
  padding:0 24px 22px;
}
.maf-storefront-avatar{
  width:104px!important;
  height:104px!important;
  margin-top:-48px;
  border:5px solid #fff;
  border-radius:24px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
  background:linear-gradient(135deg,#fff1cf,#e9f2ff)!important;
}
.maf-storefront-identity{padding-top:18px}
.maf-storefront-identity h1{
  margin:7px 0 7px;
  font-size:30px;
  line-height:1.2;
  color:#111827;
}
.maf-storefront-meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.maf-storefront-meta>span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.maf-storefront-meta .dashicons{
  width:16px;height:16px;font-size:16px
}
.maf-storefront-products-cta{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 15px;
  border-radius:11px;
  background:#111827;
  color:#fff!important;
  text-decoration:none!important;
  font-size:12px;
  font-weight:900;
}
.maf-storefront-products-cta:hover{background:#245fc7}

.maf-storefront-about{
  margin:0 0 14px!important;
  padding:22px!important;
}
.maf-storefront-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.maf-storefront-section-head h2{
  margin:4px 0 0;
  font-size:23px;
}
.maf-storefront-section-head>.dashicons{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff3d8;
  color:#a56a00;
  font-size:24px;
}
.maf-storefront-about-content{
  color:#4d5b6d;
  font-size:14px;
  line-height:2;
}
.maf-storefront-about-content p{margin:0 0 8px}
.maf-storefront-about-content p:last-child{margin-bottom:0}

.maf-storefront-policies{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:18px;
}
.maf-storefront-policy{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:12px;
  margin:0!important;
  padding:18px!important;
}
.maf-storefront-policy-icon{
  width:42px;height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef4ff;
  color:#245fc7;
}
.maf-storefront-policy-icon .dashicons{font-size:22px}
.maf-storefront-policy>div:last-child>span{
  color:#8592a3;
  font-size:10px;
  font-weight:800;
}
.maf-storefront-policy h3{
  margin:3px 0 7px;
  font-size:17px;
}
.maf-storefront-policy p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.8;
}

.maf-storefront-products-section{scroll-margin-top:84px}
.maf-storefront-products-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:22px 0 12px;
}
.maf-storefront-products-head h2{margin:4px 0 0;font-size:24px}
.maf-storefront-product-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  background:#eef4ff;
  color:#2858b5;
  font-size:11px;
  font-weight:900;
}

@media(max-width:680px){
  .maf-storefront-header{border-radius:20px}
  .maf-storefront-cover{min-height:112px}
  .maf-storefront-profile{
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:12px;
    padding:0 16px 16px;
  }
  .maf-storefront-avatar{
    width:78px!important;
    height:78px!important;
    margin-top:-36px;
    border-width:4px;
    border-radius:19px!important;
  }
  .maf-storefront-identity{padding-top:12px}
  .maf-storefront-identity h1{font-size:22px;margin:5px 0}
  .maf-storefront-meta{gap:8px}
  .maf-storefront-products-cta{
    grid-column:1/-1;
    width:100%;
    box-sizing:border-box;
  }
  .maf-storefront-about{padding:17px!important}
  .maf-storefront-section-head h2{font-size:21px}
  .maf-storefront-policies{grid-template-columns:1fr}
  .maf-storefront-products-head h2{font-size:21px}
}


/* v0.5.3 — store search first + unified about store */
.maf-stores-compact-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}
.maf-stores-compact-head strong{
  font-size:18px;
  color:#111827;
}
.maf-affiliate-stores .maf-store-search{
  margin-top:0!important;
}

.maf-storefront-about-unified{
  padding:20px!important;
}
.maf-storefront-about-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.maf-about-store-block{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  padding:16px;
  border:1px solid #e4eaf1;
  border-radius:15px;
  background:#fbfcfe;
}
.maf-about-store-block.is-about{
  grid-column:1/-1;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.maf-about-store-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff3d8;
  color:#a56a00;
}
.maf-about-store-icon .dashicons{
  width:21px;
  height:21px;
  font-size:21px;
}
.maf-about-store-block h3{
  margin:0 0 7px;
  font-size:16px;
  color:#172033;
}
.maf-about-store-block .maf-storefront-about-content{
  font-size:13px;
  line-height:1.9;
}
.maf-about-store-block.is-contact{
  grid-column:1/-1;
  background:linear-gradient(135deg,#f7faff,#fffaf0);
}
.maf-about-store-contact-body{min-width:0}
.maf-storefront-contact-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}
.maf-storefront-contact-actions a{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 11px;
  border:1px solid #dbe3ed;
  border-radius:9px;
  background:#fff;
  color:#253047!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:900;
}
.maf-storefront-contact-actions a:hover{
  border-color:#f4a10a;
  background:#fffaf0;
}
.maf-storefront-contact-actions .dashicons{
  width:16px;height:16px;font-size:16px;
}

@media(max-width:680px){
  .maf-stores-compact-head{
    align-items:center;
    margin-bottom:7px;
  }
  .maf-stores-compact-head strong{font-size:16px}
  .maf-storefront-about-unified{padding:15px!important}
  .maf-storefront-about-grid{grid-template-columns:1fr}
  .maf-about-store-block,
  .maf-about-store-block.is-about,
  .maf-about-store-block.is-contact{
    grid-column:auto;
  }
  .maf-about-store-block{padding:13px}
  .maf-storefront-contact-actions{
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }
  .maf-storefront-contact-actions a{
    padding:0 6px;
    font-size:10px;
  }
}


/* v0.5.4 — dedicated merchant subscription payment */
.maf-subscription-payment-page{max-width:1080px!important}
.maf-payment-back{
  display:inline-flex;align-items:center;gap:6px;
  margin:0 0 14px;color:#475569!important;text-decoration:none!important;font-weight:800
}
.maf-payment-plan-hero{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;
  padding:24px;margin-bottom:16px;border:1px solid #dfe6ef;border-radius:22px;
  background:linear-gradient(135deg,#fff,#f7faff);
  box-shadow:0 12px 30px rgba(15,23,42,.06)
}
.maf-payment-plan-hero h1{margin:5px 0 8px;font-size:30px}
.maf-payment-plan-hero p{margin:0;max-width:720px;color:#64748b;line-height:1.8}
.maf-payment-plan-price{
  min-width:150px;padding:18px;border-radius:17px;text-align:center;
  background:#111827;color:#fff
}
.maf-payment-plan-price span{display:block;color:#cbd5e1;font-size:11px}
.maf-payment-plan-price strong{display:inline-block;margin-top:4px;font-size:30px;line-height:1}
.maf-payment-plan-price em{font-style:normal;font-weight:800;margin-right:4px}

.maf-payment-accounts-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.maf-payment-account-card{
  display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;
  padding:18px;border:1px solid #dfe6ef;border-radius:17px;background:#fff
}
.maf-payment-account-card.is-ccp{background:linear-gradient(180deg,#fffaf0,#fff)}
.maf-payment-account-card.is-rip{background:linear-gradient(180deg,#f5f8ff,#fff)}
.maf-payment-account-icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:13px;
  background:#fff;border:1px solid #e5e7eb;color:#a56a00
}
.maf-payment-account-card.is-rip .maf-payment-account-icon{color:#315fc7}
.maf-payment-account-icon .dashicons{font-size:24px;width:24px;height:24px}
.maf-payment-account-card span{display:block;color:#64748b;font-size:11px}
.maf-payment-account-card strong{display:block;margin:4px 0;font-size:19px;letter-spacing:.02em}
.maf-payment-account-card small{color:#8592a3}

.maf-payment-action-card{padding:20px!important}
.maf-payment-action-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.maf-payment-action-head>.dashicons{
  width:44px;height:44px;display:grid;place-items:center;border-radius:12px;
  background:#eaf8ef;color:#16864a;font-size:23px
}
.maf-payment-action-head h2{margin:0 0 5px;font-size:21px}
.maf-payment-action-head p{margin:0;color:#64748b;line-height:1.7}
.maf-payment-method-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.maf-payment-method-choice label{
  display:flex;align-items:center;gap:10px;padding:14px;
  border:1px solid #dfe6ef;border-radius:13px;background:#fafcff;cursor:pointer
}
.maf-payment-method-choice input{width:18px;height:18px}
.maf-payment-method-choice b{display:block;font-size:13px}
.maf-payment-method-choice small{display:block;margin-top:3px;color:#64748b;direction:ltr;text-align:right}
.maf-send-receipt-btn{
  width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:13px;background:#16864a;color:#fff;font-size:15px;font-weight:900;cursor:pointer
}
.maf-send-receipt-btn:hover{background:#11723d}
.maf-send-receipt-btn .dashicons{font-size:20px}
.maf-payment-pending-box{display:flex;align-items:center;gap:12px;background:#fff9e9!important;border-color:#f1cf79!important}
.maf-payment-pending-box>.dashicons{font-size:25px;color:#c77c00}
.maf-payment-pending-box p{margin:4px 0 0;color:#7c5612}
.maf-payment-note{
  display:flex;align-items:flex-start;gap:9px;padding:13px 15px;margin-top:14px;
  border-radius:13px;background:#eef4ff;color:#36547c
}
.maf-payment-note p{margin:0;line-height:1.7;font-size:12px}

@media(max-width:680px){
  .maf-payment-plan-hero{grid-template-columns:1fr;padding:18px}
  .maf-payment-plan-hero h1{font-size:25px}
  .maf-payment-plan-price{display:flex;align-items:center;justify-content:space-between;min-width:0;text-align:initial}
  .maf-payment-plan-price strong{font-size:27px}
  .maf-payment-accounts-grid{grid-template-columns:1fr}
  .maf-payment-method-choice{grid-template-columns:1fr}
}


/* v0.5.8 — professional terminal order workflow */
.maf-order-row-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.maf-order-row-actions .maf-btn{
  min-height:34px!important;
  padding:0 11px!important;
  white-space:nowrap;
}
.maf-order-closed-label,
.maf-order-final-note{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.maf-order-closed-label{background:#eef2f7;color:#526071}
.maf-order-final-note.is-done{background:#eaf8ef;color:#18713a}
.maf-order-final-note.is-canceled{background:#fff0f0;color:#ad2e2e}

.maf-reminder-form{margin:0}
.maf-remind-btn{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border:1px solid #dbe3ed;
  border-radius:9px;
  background:#fff7df;
  color:#8a5a00;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.maf-remind-btn:hover{background:#ffefbd;border-color:#e8c665}
.maf-remind-btn:disabled{opacity:.62;cursor:not-allowed}
.maf-remind-btn .dashicons{width:16px;height:16px;font-size:16px}
.maf-reminder-note{display:block;margin-top:4px;color:#8793a3;font-size:9px}

.maf-earned-commission{display:block;color:#16864a;font-size:15px}
.maf-earned-label{display:block;color:#16864a;font-size:9px;font-weight:800}
.maf-canceled-commission{display:block;color:#9a3c3c;font-weight:900}
.maf-canceled-label{display:block;color:#9a3c3c;font-size:9px}
.maf-pending-commission-label{display:block;color:#7b8797;font-size:9px}

.maf-order-status-done{background:#eaf8ef!important;color:#18713a!important}
.maf-order-status-canceled{background:#fff0f0!important;color:#ad2e2e!important}
.maf-order-status-delivering{background:#edf4ff!important;color:#2858b5!important}
.maf-order-status-pending{background:#fff7df!important;color:#8a5a00!important}

@media(max-width:680px){
  .maf-affiliate-orders .maf-table-wrap,
  .maf-merchant-orders .maf-table-wrap{
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
  }
  .maf-affiliate-orders-table,
  .maf-merchant-orders .maf-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    border:0!important;
    background:transparent!important;
  }
  .maf-affiliate-orders-table thead,
  .maf-merchant-orders .maf-table thead{display:none!important}
  .maf-affiliate-orders-table tbody,
  .maf-merchant-orders .maf-table tbody{display:grid!important;gap:11px!important}
  .maf-affiliate-orders-table tr,
  .maf-merchant-orders .maf-table tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0!important;
    overflow:hidden!important;
    border:1px solid #e0e7ef!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(15,23,42,.04)!important;
  }
  .maf-affiliate-orders-table td,
  .maf-merchant-orders .maf-table td{
    display:block!important;
    min-width:0!important;
    padding:11px 12px!important;
    border:0!important;
    border-bottom:1px solid #eef2f6!important;
    white-space:normal!important;
  }
  .maf-affiliate-orders-table td:nth-last-child(-n+2),
  .maf-merchant-orders .maf-table td:nth-last-child(-n+2){
    background:#fbfcfe!important;
  }
  .maf-affiliate-orders-table td:last-child,
  .maf-merchant-orders .maf-table td:last-child{
    grid-column:1/-1!important;
    border-bottom:0!important;
  }
  .maf-affiliate-orders-table td:before,
  .maf-merchant-orders .maf-table td:before{
    display:block;
    margin-bottom:4px;
    color:#8a95a5;
    font-size:9px;
    font-weight:800;
  }
  .maf-affiliate-orders-table td:nth-child(1):before{content:"الطلب"}
  .maf-affiliate-orders-table td:nth-child(2):before{content:"الزبون"}
  .maf-affiliate-orders-table td:nth-child(3):before{content:"المنتج"}
  .maf-affiliate-orders-table td:nth-child(4):before{content:"الإجمالي"}
  .maf-affiliate-orders-table td:nth-child(5):before{content:"العمولة"}
  .maf-affiliate-orders-table td:nth-child(6):before{content:"الحالة"}
  .maf-affiliate-orders-table td:nth-child(7):before{content:"المتابعة"}

  .maf-merchant-orders .maf-table td:nth-child(1):before{content:"الطلب"}
  .maf-merchant-orders .maf-table td:nth-child(2):before{content:"الزبون"}
  .maf-merchant-orders .maf-table td:nth-child(3):before{content:"الهاتف"}
  .maf-merchant-orders .maf-table td:nth-child(4):before{content:"المنتج"}
  .maf-merchant-orders .maf-table td:nth-child(5):before{content:"الإجمالي"}
  .maf-merchant-orders .maf-table td:nth-child(6):before{content:"الحالة"}
  .maf-merchant-orders .maf-table td:nth-child(7):before{content:"الإجراء"}

  .maf-order-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%}
  .maf-order-row-actions .maf-btn{width:100%!important;justify-content:center!important}
  .maf-order-row-actions .maf-btn:only-child{grid-column:1/-1!important}
  .maf-reminder-form,.maf-remind-btn{width:100%}
  .maf-remind-btn{min-height:40px}
}


/* v0.5.9 — action counters + notification persistence polish */
.wm-app-nav a{position:relative}
.wm-app-nav a>em{
  flex:0 0 auto!important;
  min-width:21px!important;
  height:21px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:#e53935!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  font-style:normal!important;
  line-height:21px!important;
  text-align:center!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.09)!important;
}
.maf-notification-item.is-unread{
  border-color:#cfdcff!important;
  background:#f6f9ff!important;
}
.maf-notification-item.is-unread>em{
  background:#e53935!important;
  color:#fff!important;
}
@media(max-width:680px){
  .wm-app-nav a>em{
    min-width:20px!important;
    height:20px!important;
    line-height:20px!important;
    font-size:9px!important;
  }
}


/* v0.6.1 — numeric bidi, withdrawal cards, Algeria location + delivery UX */
.maf-ltr,
.maf-account-number,
.maf-money,
input[type="tel"]{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  font-variant-numeric:tabular-nums;
}
.maf-money{justify-content:flex-start}
.maf-money-amount{
  direction:ltr!important;
  unicode-bidi:isolate!important;
  font-variant-numeric:tabular-nums;
}
.maf-account-number{
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  letter-spacing:.035em;
  font-weight:800;
}
.maf-form select{
  text-align:right;
  text-align-last:right;
}
.maf-location-fields select{
  min-height:54px!important;
  margin-bottom:5px!important;
  font-weight:800;
  cursor:pointer;
}
.maf-field-help{
  display:block;
  min-height:18px;
  margin-top:2px;
  color:#7b8797;
  font-size:10px;
}
.maf-delivery-choice{
  margin:5px 0 16px;
  padding:0;
  border:0;
}
.maf-delivery-choice legend{
  margin-bottom:9px;
  color:#172033;
  font-weight:900;
  font-size:14px;
}
.maf-delivery-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.maf-delivery-option{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:76px;
  padding:13px;
  border:1px solid #dbe4ef;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
}
.maf-delivery-option:hover{border-color:#a8bddb;background:#fbfdff}
.maf-delivery-option:has(input:checked){
  border-color:#2a67d3;
  background:#f2f7ff;
  box-shadow:0 0 0 3px rgba(42,103,211,.08);
}
.maf-delivery-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.maf-delivery-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#eef4ff;
  color:#245fc7;
}
.maf-delivery-icon .dashicons{width:21px;height:21px;font-size:21px}
.maf-delivery-copy b{display:block;font-size:13px}
.maf-delivery-copy small{display:block;margin-top:3px;color:#7c8999;font-size:10px}
.maf-delivery-option>strong{font-size:13px}

.maf-withdrawal-panel .maf-panel-head{
  align-items:flex-end;
  gap:12px;
}
.maf-withdrawal-panel .maf-panel-head h2{margin:3px 0 0}
.maf-withdrawal-panel .maf-panel-head>small{
  max-width:520px;
  color:#748195;
  line-height:1.6;
}
.maf-withdraw-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.maf-withdraw-actions .maf-btn{
  min-height:34px!important;
  padding:0 9px!important;
  font-size:10px!important;
  white-space:nowrap;
}
.maf-withdraw-status-pending{background:#fff7df!important;color:#8a5a00!important}
.maf-withdraw-status-confirmed{background:#edf4ff!important;color:#2858b5!important}
.maf-withdraw-status-paid{background:#eaf8ef!important;color:#18713a!important}
.maf-withdraw-status-rejected{background:#fff0f0!important;color:#ad2e2e!important}
.maf-empty-state{
  display:grid;
  place-items:center;
  gap:5px;
  min-height:150px;
  text-align:center;
  color:#788597;
}
.maf-empty-state .dashicons{font-size:28px;width:28px;height:28px}

@media(max-width:680px){
  .maf-order-form{
    padding:15px!important;
  }
  .maf-order-form .maf-two-cols{
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  .maf-order-form p{margin:0 0 12px!important}
  .maf-order-form input,
  .maf-order-form select,
  .maf-order-form textarea{
    min-height:52px!important;
    margin-bottom:5px!important;
    border-radius:12px!important;
    font-size:15px!important;
  }
  .maf-order-form textarea{min-height:102px!important}
  .maf-delivery-options{grid-template-columns:1fr!important}
  .maf-delivery-option{min-height:72px}
  .maf-delivery-option>strong{font-size:14px}

  .maf-withdrawal-table-wrap{
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
  }
  .maf-withdrawal-table{
    display:block!important;
    min-width:0!important;
    width:100%!important;
    background:transparent!important;
    border:0!important;
  }
  .maf-withdrawal-table thead{display:none!important}
  .maf-withdrawal-table tbody{
    display:grid!important;
    gap:11px!important;
  }
  .maf-withdrawal-table tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    overflow:hidden;
    border:1px solid #dfe7f0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(15,23,42,.04)!important;
  }
  .maf-withdrawal-table td{
    display:block!important;
    min-width:0!important;
    padding:11px 12px!important;
    border:0!important;
    border-bottom:1px solid #eef2f6!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }
  .maf-withdrawal-table td:before{
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    color:#8995a5;
    font-size:9px;
    font-weight:900;
  }
  .maf-withdrawal-table td:first-child,
  .maf-withdrawal-table td:last-child{
    grid-column:1/-1!important;
  }
  .maf-withdrawal-table td:last-child{border-bottom:0!important;background:#fafcff}
  .maf-withdraw-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .maf-withdraw-actions .maf-btn{
    width:100%!important;
    min-height:40px!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .maf-withdraw-actions .maf-btn:only-child{grid-column:1/-1!important}
  .maf-withdrawal-panel .maf-panel-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

.wm-app-nav a>em,.wm-notification-link>em{direction:ltr!important;unicode-bidi:isolate!important;font-variant-numeric:tabular-nums!important}


@media(max-width:680px){
  .maf-withdrawals .maf-table-wrap{
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
  }
  .maf-affiliate-earnings-table,
  .maf-affiliate-withdraw-history{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    border:0!important;
    background:transparent!important;
  }
  .maf-affiliate-earnings-table thead,
  .maf-affiliate-withdraw-history thead{display:none!important}
  .maf-affiliate-earnings-table tbody,
  .maf-affiliate-withdraw-history tbody{
    display:grid!important;
    gap:11px!important;
  }
  .maf-affiliate-earnings-table tr,
  .maf-affiliate-withdraw-history tr{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    overflow:hidden!important;
    border:1px solid #dfe7f0!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(15,23,42,.04)!important;
  }
  .maf-affiliate-earnings-table td,
  .maf-affiliate-withdraw-history td{
    display:block!important;
    min-width:0!important;
    padding:11px 12px!important;
    border:0!important;
    border-bottom:1px solid #eef2f6!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  .maf-affiliate-earnings-table td:before,
  .maf-affiliate-withdraw-history td:before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#8995a5;
    font-size:9px;
    font-weight:900;
  }
  .maf-affiliate-earnings-table td:first-child,
  .maf-affiliate-earnings-table td:nth-child(2),
  .maf-affiliate-withdraw-history td:nth-child(2){
    grid-column:1/-1!important;
  }
  .maf-affiliate-earnings-table td:last-child,
  .maf-affiliate-withdraw-history td:last-child{border-bottom:0!important}
  .maf-contact-actions-mini{justify-content:flex-start!important}
}


/* v0.6.2 — event badges + compact horizontal delivery choice */
@media(max-width:680px){
  .maf-delivery-options{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .maf-delivery-option{
    grid-template-columns:1fr!important;
    justify-items:center!important;
    text-align:center!important;
    gap:6px!important;
    min-height:138px!important;
    padding:11px 8px!important;
  }
  .maf-delivery-option:only-child{
    grid-column:1/-1!important;
  }
  .maf-delivery-copy b{font-size:12px!important}
  .maf-delivery-copy small{font-size:9px!important}
  .maf-delivery-option>strong{
    font-size:12px!important;
    justify-self:center!important;
  }
}


/* v0.6.4 — compact order filters + horizontal terminal actions */
.maf-order-tabs{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:5px!important;
  margin-bottom:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}
.maf-order-tabs::-webkit-scrollbar{display:none}
.maf-order-tabs a{
  flex:0 0 auto!important;
  min-height:30px!important;
  padding:5px 8px!important;
  gap:4px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.maf-order-tabs a span{
  min-width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(15,23,42,.08);
  font-size:9px;
  font-weight:900;
}
.maf-order-tabs a.is-active span{background:rgba(255,255,255,.2)}

.maf-order-row-actions,
.maf-order-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:7px!important;
}
.maf-order-row-actions .maf-btn,
.maf-order-actions .maf-btn{
  flex:1 1 0!important;
  min-width:0!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
}

@media(max-width:680px){
  .maf-order-tabs{
    margin-left:-2px!important;
    margin-right:-2px!important;
  }
  .maf-order-tabs a{
    min-height:28px!important;
    padding:5px 7px!important;
    font-size:9px!important;
  }
  .maf-order-tabs a span{
    min-width:17px!important;
    height:17px!important;
    font-size:8px!important;
  }
  .maf-order-row-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .maf-order-row-actions .maf-btn{
    width:100%!important;
    min-height:38px!important;
    padding:0 7px!important;
    font-size:10px!important;
  }
  .maf-order-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .maf-order-actions .maf-btn{
    width:100%!important;
    min-height:40px!important;
    padding:0 8px!important;
    font-size:10px!important;
  }
}
