/* ===== حسابي / الطلبات / الدفع / المحفظة — تصميم داكن (v1.4.0) ===== */
:root{--p:#7c3aed;--p2:#a855f7;--sf:#150e3d;--sf2:#1b1250;--bd:rgba(124,58,237,.38);--mu:#9aa0cf}

/* إزالة الصناديق البيضاء حول الصفحات */
.woocommerce-account main,.woocommerce-account .container,.woocommerce-account .row,.woocommerce-account .boxed,
.woocommerce-account article,.woocommerce-account .entry-content,.woocommerce-account .woocommerce,
.woocommerce-checkout main,.woocommerce-checkout .container,.woocommerce-checkout article,.woocommerce-checkout .entry-content,
.woocommerce-cart main,.woocommerce-cart .container,.woocommerce-cart article,.woocommerce-cart .entry-content,
.page .site-main,.page .container,.page article,.page .entry-content,.page .boxed,.page .row{
  background:transparent!important;box-shadow:none!important;border:0!important}
.woocommerce-account .col-md-10,.woocommerce-checkout .col-md-10,.woocommerce-cart .col-md-10,.page .col-md-10{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
.woocommerce-MyAccount-navigation{display:none!important}
.woocommerce-account .woocommerce-MyAccount-content{width:100%!important;float:none!important;background:transparent!important;border:0!important;padding:0!important}

/* ---------- أزرار ---------- */
.alh-btn-main{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(90deg,#7c3aed,#6d28d9);color:#fff!important;border:0;border-radius:12px;padding:12px 20px;font-weight:800;font-size:15px;text-decoration:none;cursor:pointer;box-shadow:0 6px 18px rgba(124,58,237,.35);transition:.2s}
.alh-btn-main:hover{filter:brightness(1.15);transform:translateY(-1px)}
.alh-btn-main.block{display:flex;width:100%;margin-top:16px}.alh-btn-main.sm{padding:9px 14px;font-size:13px;flex:1}
.alh-btn-ghost{display:inline-flex;align-items:center;justify-content:center;background:rgba(124,58,237,.12);color:#d8c8ff!important;border:1px solid var(--bd);border-radius:12px;padding:12px 20px;font-weight:700;text-decoration:none}
.alh-btn-ghost.sm{padding:9px 14px;font-size:13px}

/* ---------- لوحة التحكم ---------- */
.alh-dash,.alh-orders{max-width:760px;margin:0 auto;padding:14px 0 30px;color:#f1efff;font-family:inherit}
.alh-page-title{font-size:24px;font-weight:900;color:#fff;margin:6px 0 16px}
.alh-profile{display:flex;align-items:center;gap:14px;background:var(--sf);border:1px solid var(--bd);border-radius:18px;padding:14px 16px;margin-bottom:14px}
.alh-avatar{position:relative;flex:none}
.alh-avatar img{width:64px;height:64px;border-radius:50%;border:2px solid var(--p2);object-fit:cover;display:block}
.alh-avatar i{position:absolute;bottom:3px;inset-inline-end:3px;width:13px;height:13px;border-radius:50%;background:#22c55e;border:2px solid var(--sf)}
.alh-profile-txt span{color:var(--mu);font-size:13px}
.alh-profile-txt h2{margin:0;font-size:19px;font-weight:900;color:#fff}
.alh-profile-txt small{color:var(--p2);font-weight:700}
.alh-balance{background:linear-gradient(135deg,#2a1670,#150e3d 70%);border:1px solid var(--bd);border-radius:18px;padding:16px;margin-bottom:14px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.alh-balance-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.alh-balance-ico{width:52px;height:52px;border-radius:14px;background:rgba(124,58,237,.25);display:grid;place-items:center;color:#c4a3ff}
.alh-balance-ico svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.alh-balance span{display:block;color:var(--mu);font-size:13px}
.alh-balance strong{font-size:32px;font-weight:900;color:#fff;line-height:1.2;display:block;text-align:right}
.alh-balance .alh-btn-main{width:100%}
.alh-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.alh-stat{display:flex;flex-direction:column;gap:2px;background:var(--sf);border:1px solid var(--bd);border-radius:16px;padding:14px;text-align:center;text-decoration:none}
.alh-stat span{color:var(--mu);font-size:13px}.alh-stat strong{font-size:28px;color:#fff;font-weight:900}
.alh-stat em{font-style:normal;font-size:12px;font-weight:800;color:#c4a3ff;background:rgba(124,58,237,.18);border-radius:10px;padding:4px 10px;margin:6px auto 0}
.alh-stat em.warn{color:#fbbf24;background:rgba(245,158,11,.15)}
.alh-menu{display:flex;flex-direction:column;gap:10px}
.alh-menu a{display:flex;align-items:center;gap:12px;background:var(--sf);border:1px solid var(--bd);border-radius:16px;padding:12px 14px;text-decoration:none;color:#fff;transition:.2s}
.alh-menu a:hover{border-color:var(--p2);transform:translateX(-2px)}
.alh-menu .ic{width:44px;height:44px;border-radius:12px;background:rgba(124,58,237,.2);display:grid;place-items:center;color:#c4a3ff;flex:none}
.alh-menu .ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.alh-menu .tx{flex:1;display:flex;flex-direction:column;min-width:0}.alh-menu .tx b{font-size:15px}.alh-menu .tx small{color:var(--mu);font-size:12px}
.alh-menu .ar{width:18px;height:18px;fill:none;stroke:var(--mu);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.alh-menu a.danger .ic{background:rgba(239,68,68,.15);color:#f87171}.alh-menu a.danger b{color:#f87171}

/* ---------- الطلبات ---------- */
.alh-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px}
.alh-tabs a{flex:1;white-space:nowrap;text-align:center;padding:9px 14px;border-radius:12px;background:var(--sf);border:1px solid var(--bd);color:#c9c7ee;font-weight:800;font-size:13px;text-decoration:none}
.alh-tabs a.on{background:linear-gradient(90deg,#7c3aed,#6d28d9);color:#fff;border-color:transparent}
.alh-search{display:flex;gap:8px;margin-bottom:14px}
.alh-search input{flex:1;min-width:0;background:var(--sf2)!important;border:1px solid var(--bd)!important;border-radius:12px;color:#fff!important;padding:10px 14px}
.alh-search button{background:rgba(124,58,237,.25);color:#fff;border:1px solid var(--bd);border-radius:12px;padding:0 18px;font-weight:800;cursor:pointer}
.alh-cards{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:720px){.alh-cards{grid-template-columns:1fr 1fr}.alh-orders,.alh-dash{max-width:980px}}
.alh-card{background:var(--sf);border:1px solid var(--bd);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px}
.alh-card .top{display:flex;justify-content:space-between;align-items:center}.alh-card .top b{font-size:16px;color:#fff}
.alh-card .dt{color:var(--mu)}
.alh-card .mid{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:4px 0}
.alh-card .tot{font-size:20px;font-weight:900;color:#fff}
.alh-card .ths{display:flex;gap:6px}.alh-card .ths i{width:38px;height:38px;border-radius:10px;overflow:hidden;border:1px solid var(--bd);display:block}
.alh-card .ths img{width:100%;height:100%;object-fit:cover;display:block}
.alh-card .act{display:flex;gap:8px;margin-top:4px}
.alh-st{font-size:12px;font-weight:900;padding:3px 10px;border-radius:99px;background:rgba(148,163,184,.15);color:#cbd5e1;white-space:nowrap}
.alh-st.completed{background:rgba(34,197,94,.15);color:#4ade80}
.alh-st.processing,.alh-st.on-hold{background:rgba(245,158,11,.15);color:#fbbf24}
.alh-st.pending{background:rgba(59,130,246,.15);color:#60a5fa}
.alh-st.cancelled,.alh-st.failed,.alh-st.refunded{background:rgba(239,68,68,.15);color:#f87171}
.alh-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:16px}
.alh-pager a{min-width:36px;text-align:center;padding:6px 10px;border-radius:10px;background:var(--sf);border:1px solid var(--bd);color:#fff;text-decoration:none;font-weight:800}
.alh-pager a.on{background:var(--p);border-color:var(--p)}
.alh-box{background:var(--sf);border:1px solid var(--bd);border-radius:18px;padding:16px;margin-bottom:14px;color:#f1efff}
.alh-box.center{text-align:center}.alh-box.muted{color:var(--mu)}
.alh-back{display:inline-block;margin:0 0 12px;color:#c4a3ff;font-weight:800;text-decoration:none}
.alh-ord-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px dashed var(--bd);padding-bottom:12px;margin-bottom:12px}
.alh-ord-head h1{font-size:20px;margin:0;color:#fff;font-weight:900}.alh-ord-head small{color:var(--mu)}
.alh-sub{font-size:15px;margin:0 0 10px;color:#fff}
.alh-lines{display:flex;flex-direction:column;gap:10px}
.alh-line{display:flex;align-items:center;gap:12px;background:var(--sf2);border-radius:14px;padding:10px}
.alh-line .th{width:54px;height:54px;border-radius:12px;overflow:hidden;flex:none;background:#0d0830}.alh-line .th img{width:100%;height:100%;object-fit:cover;display:block}
.alh-line .nm{flex:1;min-width:0;display:flex;flex-direction:column}.alh-line .nm b{color:#fff;font-size:14px}.alh-line .nm small,.alh-line .nm .wc-item-meta{color:var(--mu);font-size:12px;list-style:none;margin:0;padding:0}
.alh-line .pr{font-weight:900;color:#fff;white-space:nowrap}
.alh-totals{margin-top:14px;border-top:1px dashed var(--bd);padding-top:10px}
.alh-totals .row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;color:#c9c7ee}
.alh-totals .row strong{color:#fff}
.alh-totals .row.grand{margin-top:6px;background:rgba(124,58,237,.18);border-radius:12px;padding:12px;color:#fff;font-weight:900;font-size:17px}
.alh-addr{margin-top:14px;background:var(--sf2);border-radius:14px;padding:12px}.alh-addr h4{margin:0 0 6px;color:#fff}.alh-addr p{margin:2px 0;color:#c9c7ee}

/* مفاتيح التفعيل (view-order) */
.order-view-wrapper,.lic-card,.lic-box{color:#f1efff}
.order-view-wrapper .lic-card,.lic-card{background:var(--sf)!important;border:1px solid var(--bd)!important;border-radius:14px}
.lic-box{background:var(--sf2)!important;border-color:var(--bd)!important}.lic-code{color:#fff!important}
.order-view-alert{background:var(--sf2)!important;color:#fff!important;border:1px solid var(--bd)!important;border-radius:12px}
.order-view-wrapper mark{background:rgba(124,58,237,.3)!important;color:#fff!important;border-radius:6px;padding:0 6px}

/* ---------- الدفع (طرق الدفع الافتراضية من ووكومرس) ---------- */
.woocommerce-checkout #payment,#add_payment_method #payment,.woocommerce-cart #payment{background:transparent!important;border:0!important;border-radius:0}
#payment ul.payment_methods{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:10px;border:0!important;background:transparent!important}
#payment ul.payment_methods>li{background:var(--sf)!important;border:1px solid var(--bd);border-radius:16px;padding:12px 14px!important;margin:0!important;transition:.2s;list-style:none!important}
#payment ul.payment_methods>li:has(input[type=radio]:checked){border-color:var(--p2);box-shadow:0 0 0 2px rgba(168,85,247,.25);background:var(--sf2)!important}
#payment ul.payment_methods>li>label{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:800;color:#fff!important;cursor:pointer;font-size:15px}
#payment ul.payment_methods input[type=radio]{accent-color:#a855f7;width:18px;height:18px;margin:0 0 0 8px}
#payment ul.payment_methods img{max-height:26px;width:auto;border-radius:6px;vertical-align:middle}
#payment div.payment_box{background:rgba(124,58,237,.1)!important;color:#c9c7ee!important;border-radius:12px!important;padding:12px!important;margin:10px 0 0!important;font-size:14px}
#payment div.payment_box::before{display:none!important}
#payment div.payment_box p{margin:0 0 6px;color:#c9c7ee}
#payment .form-row{background:transparent!important;padding:14px 0 0!important}
.woocommerce-terms-and-conditions-wrapper,.woocommerce-privacy-policy-text{color:var(--mu);font-size:13px}
.woocommerce #payment #place_order,.woocommerce-page #payment #place_order{display:block;width:100%;float:none;background:linear-gradient(90deg,#7c3aed,#6d28d9)!important;color:#fff!important;border:0!important;border-radius:14px!important;padding:16px!important;font-size:17px;font-weight:900;box-shadow:0 8px 22px rgba(124,58,237,.4)}
.woocommerce-checkout h3,#order_review_heading{color:#fff;font-weight:900;font-size:18px}
.woocommerce-checkout-review-order-table{border-radius:14px!important}
.woocommerce form .form-row label{color:#d8d5ff}

/* ---------- المحفظة ---------- */
html .woo-wallet-my-wallet-container{
  --ww-primary:#7c3aed;--ww-primary-dark:#fff;--ww-primary-light:#a855f7;--ww-primary-soft:rgba(124,58,237,.18);
  --ww-card-bg:#150e3d;--ww-text-main:#f1efff;--ww-text-muted:#9aa0cf;--ww-border-color:rgba(124,58,237,.38);--ww-border-active:#a855f7;color:#f1efff}
.woo-wallet-my-wallet-container :where(div,aside,section,form,table,thead,tbody,tr,td,th,li,label,ul,details,summary,nav,header){background-color:transparent!important;color:inherit}
.woo-wallet-my-wallet-container .ww-compact-wallet-card,.woo-wallet-my-wallet-container .ww-card-box,.woo-wallet-my-wallet-container .ww-stat-pill,.woo-wallet-my-wallet-container .ww-order-info-item,
.woo-wallet-my-wallet-container .rollex-bank-item,.woo-wallet-my-wallet-container .rollex-upload-area,.woo-wallet-my-wallet-container .ww-compact-acc-bar,.woo-wallet-my-wallet-container .ww-compact-banner,
.woo-wallet-my-wallet-container .rollex-amount-box-wrapper,.woo-wallet-my-wallet-container .woo-wallet-transactions-items li,.woo-wallet-my-wallet-container .ww-floating-action-btn{background:var(--sf)!important;border:1px solid var(--bd)!important;border-radius:16px;color:#f1efff!important}
.woo-wallet-my-wallet-container .ww-compact-wallet-card{background:linear-gradient(135deg,#2a1670,#150e3d 70%)!important}
.woo-wallet-my-wallet-container .ww-order-success-modal-box,.woo-wallet-my-wallet-container .ww-notify-box{background:#150e3d!important;color:#fff!important}
.woo-wallet-my-wallet-container input,.woo-wallet-my-wallet-container select,.woo-wallet-my-wallet-container textarea{background:var(--sf2)!important;color:#fff!important;border:1px solid var(--bd)!important}
.woo-wallet-my-wallet-container .rollex-submit-btn,.woo-wallet-my-wallet-container .ww-notify-ok{background:linear-gradient(90deg,#7c3aed,#6d28d9)!important;color:#fff!important}
.woo-wallet-my-wallet-container h1,.woo-wallet-my-wallet-container h2,.woo-wallet-my-wallet-container h3,.woo-wallet-my-wallet-container h4,.woo-wallet-my-wallet-container .number,.woo-wallet-my-wallet-container .symbol{color:#fff!important}

/* ---------- القائمة الجانبية والشعار ---------- */
.custom-drawer-nav a.active{background:linear-gradient(90deg,#7c3aed,#5b21b6)!important;color:#fff!important}
.alh-text-logo span{font-weight:900;font-size:20px;color:#fff;letter-spacing:.5px}
.site-logo{display:inline-flex;align-items:center}
.site-logo img{max-width:none!important}

/* ---------- تسجيل الدخول / التعديل ---------- */
.woocommerce form.login,.woocommerce form.register,.woocommerce-EditAccountForm{background:var(--sf)!important;border:1px solid var(--bd)!important;border-radius:18px!important;padding:18px!important;max-width:560px;margin-inline:auto}
.woocommerce-account .u-columns{display:grid;gap:16px}
@media(min-width:900px){.woocommerce-account .u-columns{grid-template-columns:1fr 1fr}}
.woocommerce-account .u-columns .u-column1,.woocommerce-account .u-columns .u-column2{width:100%!important;float:none!important}
.woocommerce-account h2{color:#fff}

/* ---------- إزالة أي خلفية بيضاء تغلّف صفحات الحساب والمحفظة (أياً كان مصدرها) ---------- */
html body :is(div,main,article,section,form):has(.alh-dash),
html body :is(div,main,article,section,form):has(.alh-orders),
html body :is(div,main,article,section,form):has(.ah-wallet){
  background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:0!important}
html body .alh-dash,html body .alh-orders{background:transparent!important}
html body.woocommerce-account .alh-page-title{color:#fff!important}

/* ---------- صفحة المنتج (بدل الأبيض) ---------- */
html{background:#0a0620!important}
html body.single-product{background:radial-gradient(1200px 600px at 50% -10%,#241466 0,#0a0620 60%) fixed!important;color:#f1efff!important}
html body.single-product .container,html body main,html body .main-universe-wrapper,html body .site-main{background:transparent!important}
html body :is(div,main,section,article,form):has(.product-main-wrap){background:transparent!important;box-shadow:none!important;border:0!important}
html body .product-main-wrap,html body .tabs,html body .related-card,html body .modal-content{background:#150e3d!important;border:1px solid rgba(124,58,237,.38)!important;color:#f1efff!important;box-shadow:0 10px 30px rgba(0,0,0,.35)!important}
html body .product-main-wrap h1,html body .related h3,html body .related-title,html body .product-main-wrap .title-row h1{color:#fff!important}
html body .product-main-wrap .cat{color:#c4a3ff!important}
html body .usage-btn{background:rgba(124,58,237,.22)!important;color:#e9d5ff!important;border:1px solid rgba(124,58,237,.45)!important}
html body .product-main-wrap .price,html body .single_variation,html body .single_variation .price{color:#fff!important}
html body .price del{color:#9aa0cf!important}
html body .variations th,html body .variations label{color:#d8d5ff!important}
html body .variations select{background:#1b1250!important;color:#fff!important;border:1px solid rgba(124,58,237,.45)!important}
html body .cart-form-wrapper button.single_add_to_cart_button{background:linear-gradient(90deg,#7c3aed,#6d28d9)!important;color:#fff!important;border-radius:12px!important}
html body .tab-header{background:#1b1250!important;border-bottom:1px solid rgba(124,58,237,.38)!important}
html body .tab-btn{color:#b9b6e0!important;background:transparent!important}
html body .tab-btn.active{color:#fff!important;background:rgba(124,58,237,.35)!important;border-bottom:2px solid #a855f7!important}
html body .tab-body,html body .tab-body *{color:#e4e1ff}
html body .tab-body a{color:#c4a3ff}
html body .modal-body{background:#150e3d!important;color:#f1efff!important}
html body .modal-header{background:linear-gradient(90deg,#7c3aed,#5b21b6)!important}
/* بطاقات اختيار القيمة (oscar-dev) */
html body .oscar-dev-box,html body .oscar-dev-card{--oscar-bg:#150e3d;--oscar-text:#f1efff;--oscar-border:rgba(124,58,237,.45);--oscar-primary:#a855f7;color:#f1efff!important}
html body .oscar-dev-attr-title,html body .oscar-dev-label,html body .oscar-dev-card-title,html body .oscar-dev-badge .v{color:#fff!important}
html body .oscar-dev-badge .k{color:#b9b6e0!important}
html body .oscar-dev-option{background:#1b1250!important;color:#fff!important;border:1px solid rgba(124,58,237,.38)!important}
html body .oscar-dev-option.selected{background:rgba(124,58,237,.3)!important;border-color:#a855f7!important}
html body .oscar-dev-option.disabled{background:rgba(255,255,255,.04)!important;color:#7c7aa8!important}
html body .oscar-dev-card{background:#150e3d!important;border:1px solid rgba(124,58,237,.38)!important;box-shadow:none!important}
html body .oscar-dev-card-head,html body .oscar-dev-card-foot{border-color:rgba(124,58,237,.38)!important}
html body .oscar-dev-badge{background:#1b1250!important;border:1px solid rgba(124,58,237,.38)!important}
html body .oscar-dev-badge.is-primary{background:rgba(124,58,237,.25)!important;border-color:#a855f7!important}
html body .oscar-dev-resetBtn{background:#1b1250!important;color:#d8c8ff!important}
/* أي صندوق أبيض متبقٍ داخل الصفحة */
html body .container :is(.product-main-wrap,.tabs,.related-card)::before{display:none}
