.mqani-customer-hub,.mqani-customer-hub *,.mqani-hub-guest,.mqani-hub-guest *{box-sizing:border-box}
.mqani-customer-hub{font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;direction:rtl;color:#302e2b;max-width:1130px;margin:34px auto 55px;padding:0 16px;text-align:right}
.mqani-hub-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:34px;border-radius:24px;background:linear-gradient(110deg,#302e2b,#5f4b3b);color:white;box-shadow:0 14px 35px rgba(23,63,52,.12)}
.mqani-hub-hero span{font-size:12px;font-weight:700;color:#efe8cf}
.mqani-hub-hero h1{font-size:31px;font-weight:800;color:white!important;margin:5px 0!important;line-height:1.5!important}
.mqani-hub-hero p{font-size:13px;color:#f5efdf;margin:0;line-height:1.9}
.mqani-hub-support{display:flex;flex-direction:column;gap:5px;text-align:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:15px;padding:13px 20px;color:white!important;text-decoration:none!important;white-space:nowrap}
.mqani-hub-support small{font-size:11px;color:#e7f1e7}
.mqani-hub-support strong{font-size:16px}
.mqani-hub-detail,.mqani-hub-orders{background:white;border:1px solid #e9e6dc;border-radius:22px;padding:26px;margin-top:20px;box-shadow:0 8px 35px rgba(24,56,41,.035)}
.mqani-hub-section-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.mqani-hub-eyebrow{font-size:11px;color:#746f65;font-weight:800}
.mqani-hub-section-top h2{font-size:21px!important;color:#302e2b!important;margin:5px 0 0!important;line-height:1.4!important}
.mqani-hub-status{color:#6b771c;background:#f2f6df;border:1px solid #e8ebcc;padding:7px 13px;border-radius:20px;font-size:11px;font-weight:800;white-space:nowrap}
.mqani-hub-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:23px}
.mqani-hub-stats>div{border-radius:14px;padding:15px;background:#faf9f3;border:1px solid #ebe9dd;min-width:0}
.mqani-hub-stats small{display:block;font-size:11px;color:#716b63;margin-bottom:7px}
.mqani-hub-stats strong{font-size:15px;color:#3f392f;overflow-wrap:anywhere}
.mqani-hub-detail h3{font-size:16px!important;color:#302e2b!important;margin:20px 0 10px!important}
.mqani-hub-lines>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #eeebe3;font-size:13px;align-items:center}
.mqani-hub-lines small{color:#80786c}
.mqani-hub-address{background:#fbfaf5;border:1px solid #e7e3d7;border-radius:14px;padding:14px;font-size:13px;line-height:1.9}
.mqani-hub-address p{margin:0 0 7px!important}
.mqani-hub-address a{color:#a66d42;font-weight:700}
.mqani-hub-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}
.mqani-customer-hub .mqani-hub-btn,.mqani-customer-hub .mqani-hub-order-view{display:inline-flex;align-items:center;justify-content:center;border:0;text-decoration:none!important;border-radius:10px;background:#302e2b;color:white!important;padding:11px 16px;min-height:42px;font-size:12px;font-weight:800}
.mqani-customer-hub .mqani-hub-btn-alt{background:#9fbd16;color:#302e2b!important}
.mqani-hub-note{font-size:11px;color:#766c60;line-height:1.9;margin:17px 0 0}
.mqani-hub-order-row{display:grid;grid-template-columns:minmax(140px,1.4fr) minmax(100px,.9fr) minmax(90px,.8fr) auto;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #eeebe3;font-size:13px}
.mqani-hub-order-title{display:flex;flex-direction:column;gap:4px}
.mqani-hub-order-title small{font-size:11px;color:#81796e}
.mqani-hub-order-row>strong{font-size:13px}
.mqani-hub-pages{display:flex;gap:6px;flex-wrap:wrap;margin-top:17px}
.mqani-hub-pages a{padding:7px 12px;border-radius:9px;border:1px solid #e8e4d9;text-decoration:none;color:#302e2b}
.mqani-hub-pages .is-active{background:#302e2b;color:white}
.mqani-hub-footer{padding:22px 4px;display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#77716a}
.mqani-hub-footer a{color:#302e2b;font-weight:800;text-decoration:none}
.mqani-hub-empty{padding:20px;color:#736e66;background:#faf9f4;border-radius:14px;font-size:13px}
.mqani-hub-guest{max-width:620px;margin:35px auto;background:white;border:1px solid #e1e9e3;padding:30px;border-radius:20px;text-align:right;font-family:Tahoma,sans-serif;color:#302e2b}
.mqani-hub-guest h2{font-size:23px;color:#302e2b}.mqani-hub-guest p{font-size:13px;line-height:2}.mqani-hub-guest a{display:inline-block;background:#302e2b;color:white;padding:12px 20px;border-radius:12px;text-decoration:none}
@media(max-width:720px){.mqani-customer-hub{margin:15px auto 35px;padding:0 10px}.mqani-hub-hero{padding:22px 17px;display:block;border-radius:18px}.mqani-hub-hero h1{font-size:23px!important}.mqani-hub-support{margin-top:18px;display:inline-flex}.mqani-hub-detail,.mqani-hub-orders{padding:16px;border-radius:17px}.mqani-hub-stats{grid-template-columns:1fr}.mqani-hub-order-row{grid-template-columns:1fr auto;gap:8px;padding:15px 0}.mqani-hub-order-row .mqani-hub-order-view{grid-column:1/-1;width:100%}.mqani-hub-actions{display:grid}.mqani-hub-btn{width:100%}}

.mqani-hub-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:15px;border:1px solid #e9e5dd;border-radius:13px;background:#faf9f5}
.mqani-hub-info-grid>div{min-width:0;display:flex;flex-direction:column;gap:5px}
.mqani-hub-info-grid small{color:#77867c;font-size:11px}
.mqani-hub-info-grid strong{color:#3f392f;font-size:12px;overflow-wrap:anywhere;text-align:right}
.mqani-hub-tracking{background:#f7f8e7;border:1px solid #e8ebce;border-radius:13px;padding:14px;font-size:12px;color:#4c4733}
.mqani-hub-tracking>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.mqani-hub-tracking a{color:#a66d42;font-weight:800}
@media(max-width:720px){.mqani-hub-info-grid{grid-template-columns:1fr}}

.mqani-hub-hero{background:linear-gradient(110deg,#4f3e31,#836344)!important}
.mqani-customer-hub .mqani-hub-btn{background:#b97845!important;color:#fff!important}
.mqani-customer-hub .mqani-hub-btn-alt{background:#9fbd16!important;color:#292a20!important}
.mqani-hub-guest a{background:#9fbd16!important;color:#292a20!important}
@media(max-width:720px){.mqani-customer-hub{padding-bottom:130px!important}}

/* v8.6.1 — compact order hub on mobile; preserve order status and invoice access. */
.mqani-customer-hub{margin-top:13px!important;margin-bottom:15px!important}
.mqani-hub-detail,.mqani-hub-orders{box-shadow:none!important}
.mqani-hub-hero{box-shadow:none!important}
.mqani-hub-info-grid strong{min-width:0;word-break:break-word}
@media(max-width:720px){
 .mqani-customer-hub{padding:0 8px 90px!important;margin-top:6px!important}
 .mqani-hub-hero{padding:14px!important;border-radius:15px!important}
 .mqani-hub-hero h1{font-size:21px!important;margin:3px 0!important}
 .mqani-hub-hero p{font-size:11px!important;line-height:1.7!important}
 .mqani-hub-support{margin-top:9px!important;padding:9px 12px!important;display:inline-flex!important;white-space:normal!important}
 .mqani-hub-detail,.mqani-hub-orders{padding:13px!important;margin-top:11px!important;border-radius:14px!important}
 .mqani-hub-section-top{margin-bottom:10px!important}
 .mqani-hub-section-top h2{font-size:17px!important}
 .mqani-hub-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-bottom:12px!important}
 .mqani-hub-stats>div{padding:10px!important;border-radius:10px!important}
 .mqani-hub-stats small{font-size:10px!important;margin-bottom:4px!important}
 .mqani-hub-stats strong{font-size:12px!important;line-height:1.7!important}
 .mqani-hub-detail h3{font-size:14px!important;margin:13px 0 5px!important}
 .mqani-hub-lines>div{padding:8px 0!important;font-size:12px!important}
 .mqani-hub-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px!important;gap:9px!important}
 .mqani-hub-info-grid strong{font-size:11px!important}
 .mqani-hub-address{padding:10px!important}
 .mqani-hub-actions{margin-top:10px!important;gap:7px!important}
 .mqani-hub-footer{padding:11px 0!important}
}

/* v8.6.2: concise, explicit pending payment notice inside order details. */
.mqani-hub-pending{margin:0 0 12px!important;padding:11px 13px!important;border:1px solid #ece6d3;border-radius:11px;background:#fffaf0;color:#6b5933;font-size:12px;line-height:1.9}

/* v8.6.3 – unified customer profile and order history */
.mqani-hub-profile{background:#fff;border:1px solid #e9e6dc;border-radius:17px;padding:17px;margin-top:14px}
.mqani-hub-profile-edit{display:inline-flex;margin-top:12px;padding:9px 15px;border:1px solid #dcd6c8;color:#965e32!important;border-radius:10px;text-decoration:none!important;font-weight:700;font-size:12px}
.mqani-hub-guest button.mqani-hub-open-login{appearance:none;display:inline-flex;padding:12px 18px;background:#9fc217;color:#242521;border:0;border-radius:11px;font:inherit;font-weight:700;cursor:pointer}
@media(max-width:720px){.mqani-hub-profile{margin-top:10px;padding:12px}.mqani-hub-profile .mqani-hub-info-grid{grid-template-columns:1fr!important;gap:7px!important}}
