:root{--ink:#0b1230;--navy:#101845;--indigo:#1b1f5e;--violet:#5b3fd6;--violet-d:#4a31b8;--violet-l:#ece8fb;--mist:#f5f6fb;--line:#e2e4f0;--text:#1d2242;--muted:#5b6283;--ok:#12805c;--max:1160px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Cairo',system-ui,-apple-system,'Segoe UI',Tahoma,sans-serif;color:var(--text);background:#fff;line-height:1.85;font-size:17px;-webkit-font-smoothing:antialiased}
img,svg,video{max-width:100%;height:auto}
a{color:var(--violet-d);text-decoration:none}a:hover{text-decoration:underline}
h1,h2,h3,h4{color:var(--ink);line-height:1.4;margin:0 0 .5em;font-weight:800}
h1{font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.3}h2{font-size:clamp(1.5rem,3vw,2.1rem)}h3{font-size:1.15rem}
p{margin:0 0 1em}
:focus-visible{outline:3px solid #9b86f5;outline-offset:2px}
.tm-container{width:min(100% - 2rem,var(--max));margin-inline:auto}
.tm-skip{position:absolute;inset-inline-start:-9999px;top:0;background:#fff;padding:.5rem 1rem;z-index:300}.tm-skip:focus{inset-inline-start:0}
.tm-muted{color:var(--muted)}
.tm-i{width:1.15em;height:1.15em;flex:none}

/* header */
.tm-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.tm-header-in{display:flex;align-items:center;gap:1.25rem;min-height:72px}
.tm-brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);font-weight:800;font-size:1.15rem}
.tm-brand:hover{text-decoration:none}.tm-brand b{color:var(--violet)}
.tm-brand img{max-height:44px;width:auto}
.tm-logo-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--ink);color:#fff;font-weight:800}
.tm-nav{margin-inline-start:auto}
.tm-menu{list-style:none;margin:0;padding:0;display:flex;gap:.15rem;align-items:center}
.tm-menu li{position:relative}
.tm-menu a{display:block;padding:.45rem .8rem;border-radius:8px;color:var(--text);font-weight:600;font-size:.95rem}
.tm-menu a:hover,.tm-menu .current-menu-item>a{background:var(--violet-l);color:var(--violet-d);text-decoration:none}
.tm-menu .sub-menu{display:none;position:absolute;inset-inline-start:0;top:100%;min-width:240px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(11,18,48,.12);list-style:none;margin:0;padding:.4rem;z-index:20}
.tm-menu li:hover>.sub-menu,.tm-menu li:focus-within>.sub-menu{display:block}
.tm-actions{display:flex;gap:.5rem;align-items:center}
.tm-burger{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;place-content:center;gap:5px;padding:0}
.tm-burger span{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px}
@media(max-width:1020px){
.tm-burger{display:grid}
.tm-actions{margin-inline-start:auto}
.tm-nav{display:none;position:absolute;inset-inline:0;top:72px;margin:0;background:#fff;border-bottom:1px solid var(--line);padding:.75rem 1rem 1rem;max-height:calc(100vh - 72px);overflow:auto}
.tm-nav.open{display:block}
.tm-menu{flex-direction:column;align-items:stretch}
.tm-menu .sub-menu{display:block;position:static;box-shadow:none;border:0;padding:0 1rem 0 0}
.tm-actions .tm-btn.ghost{display:none}
}

/* buttons */
.tm-btn,.entry button,.entry input[type=submit],.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.3rem;border-radius:10px;font:inherit;font-weight:700;font-size:.95rem;border:1.5px solid var(--violet);background:var(--violet);color:#fff;cursor:pointer;transition:background .15s,border-color .15s;line-height:1.5}
.tm-btn:hover,.entry button:hover,.entry input[type=submit]:hover{background:var(--violet-d);border-color:var(--violet-d);color:#fff;text-decoration:none}
.tm-btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.tm-btn.ghost:hover{background:var(--mist);border-color:var(--violet);color:var(--violet-d)}
.tm-btn.light{background:#fff;color:var(--ink);border-color:#fff}.tm-btn.light:hover{background:var(--violet-l);color:var(--ink);border-color:var(--violet-l)}
.tm-btn.ghost-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}.tm-btn.ghost-light:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}
.tm-btn.lg{padding:.85rem 1.7rem;font-size:1.02rem}

/* forms */
.entry input[type=text],.entry input[type=email],.entry input[type=tel],.entry input[type=password],.entry input[type=number],.entry input[type=url],.entry input[type=date],.entry select,.entry textarea{width:100%;padding:.65rem .85rem;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--text)}
.entry input:focus,.entry select:focus,.entry textarea:focus{border-color:var(--violet);outline:0;box-shadow:0 0 0 4px var(--violet-l)}
.entry label{font-weight:600}
.entry input[type=checkbox],.entry input[type=radio]{accent-color:var(--violet);width:1.05rem;height:1.05rem;vertical-align:middle}
.tasmeem-notice{background:var(--violet-l);border-radius:10px;padding:.8rem 1rem;color:var(--indigo)}
.tm-page-body{padding-block:2.5rem 4rem;max-width:860px}

/* hero */
.tm-hero{background:linear-gradient(165deg,var(--ink) 0%,var(--navy) 55%,var(--indigo) 100%);color:#fff;padding:clamp(3rem,8vw,6.5rem) 0;overflow:hidden}
.tm-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.tm-hero h1{color:#fff;margin-bottom:.6em}
.tm-hero p{color:#cdd1ee;font-size:1.08rem;max-width:34em}
.tm-hero .tm-ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.6rem}
.tm-checks{list-style:none;padding:0;margin:1.6rem 0 0;display:flex;flex-wrap:wrap;gap:.4rem 1.5rem;color:#b9bfe6;font-size:.93rem}
.tm-checks li::before{content:"✓";color:#6fe0b0;margin-inline-end:.4rem;font-weight:800}
.tm-track{background:#fff;color:var(--text);border-radius:18px;padding:1.4rem 1.5rem;box-shadow:0 30px 60px rgba(0,0,0,.35)}
.tm-track-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;font-size:.95rem}
.tm-track-top b{color:var(--ink)}.tm-track-top span{font-size:.78rem;color:var(--muted);background:var(--mist);border-radius:99px;padding:.1rem .7rem}
.tm-bar{background:#e8eaf6;border-radius:99px;height:10px;overflow:hidden}
.tm-bar span{display:block;height:100%;background:var(--violet);border-radius:99px}
.tm-track .tm-bar span{width:60%;animation:tmfill 1.4s .3s cubic-bezier(.2,.7,.2,1) both}
@keyframes tmfill{from{width:0}}
.tm-track-meta{display:flex;justify-content:space-between;font-size:.85rem;color:var(--muted);margin:.45rem 0 1rem}.tm-track-meta b{color:var(--ink)}
.tm-track-steps{list-style:none;margin:0;padding:0;position:relative}
.tm-track-steps li{position:relative;padding:.35rem 1.9rem .35rem 0;font-size:.93rem;color:var(--muted)}
.tm-track-steps li::before{content:"";position:absolute;inset-inline-start:auto;right:0;top:.72rem;width:12px;height:12px;border-radius:50%;border:2px solid #c9cde4;background:#fff}
.tm-track-steps li::after{content:"";position:absolute;right:5px;top:1.5rem;bottom:-.4rem;width:2px;background:#e1e4f2}
.tm-track-steps li:last-child::after{display:none}
.tm-track-steps li.done{color:var(--text)}.tm-track-steps li.done::before{background:var(--ok);border-color:var(--ok)}
.tm-track-steps li.now{color:var(--ink);font-weight:800}.tm-track-steps li.now::before{background:var(--violet);border-color:var(--violet);box-shadow:0 0 0 4px var(--violet-l)}
@media(max-width:860px){.tm-hero-grid{grid-template-columns:1fr}}

/* sections */
.tm-sec{padding:clamp(3rem,6vw,5rem) 0}
.tm-sec.alt{background:var(--mist)}
.tm-sec.dark{background:var(--ink);color:#c7cbe8}.tm-sec.dark h2,.tm-sec.dark h3{color:#fff}
.tm-head{max-width:640px;margin:0 0 2.2rem}
.tm-head p{color:var(--muted);font-size:1.05rem}
.tm-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.tm-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.5rem}
.tm-sec.alt .tm-card{border-color:transparent}
.tm-ico{width:44px;height:44px;border-radius:12px;background:var(--violet-l);color:var(--violet-d);display:grid;place-items:center;margin-bottom:.9rem}.tm-ico .tm-i{width:22px;height:22px}
.tm-card h3{margin-bottom:.35em}.tm-card p{color:var(--muted);margin:0;font-size:.97rem}
a.tm-card{display:block;color:inherit}a.tm-card:hover{text-decoration:none;border-color:var(--violet)}
.tm-split{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
@media(max-width:860px){.tm-split{grid-template-columns:1fr}}
.tm-list{list-style:none;padding:0;margin:1rem 0}
.tm-list li{display:flex;gap:.6rem;padding:.3rem 0;align-items:flex-start}.tm-list .tm-i{color:var(--ok);margin-top:.5rem}

/* pricing */
.tm-price{display:flex;flex-direction:column;padding:1.6rem}
.tm-price h3{font-size:1.1rem}
.tm-price .amt{font-size:2.3rem;font-weight:800;color:var(--ink);line-height:1.2}.tm-price .amt small{font-size:.9rem;color:var(--muted);font-weight:600;margin-inline-start:.3rem}
.tm-price .desc{flex:1;margin:1rem 0}
.tm-price .desc h4{font-size:.9rem;color:var(--muted);margin:1rem 0 .3rem}
.tm-price .desc ul{list-style:none;padding:0;margin:0}
.tm-price .desc li{padding:.2rem 0;font-size:.95rem}
.tm-price .desc li::before{content:"✓";color:var(--ok);margin-inline-end:.5rem;font-weight:800}
.tm-price .desc h4+ul li::before{content:"–";color:var(--muted)}
.tm-note{font-size:.88rem;color:var(--muted)}

/* steps */
.tm-steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.tm-steps li{counter-increment:s;border-top:3px solid var(--violet);padding-top:1rem}
.tm-steps li::before{content:counter(s);display:block;font-weight:800;font-size:1.6rem;color:var(--violet);line-height:1;margin-bottom:.5rem}
.tm-steps h3{margin-bottom:.25em}.tm-steps p{color:var(--muted);font-size:.95rem;margin:0}
.tm-timeline{list-style:none;padding:0;margin:0;max-width:560px}
.tm-timeline li{position:relative;padding:.55rem 2.2rem .55rem 0;border-right:2px solid var(--line);margin-right:7px}
.tm-timeline li::before{content:"";position:absolute;right:-8px;top:1rem;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--violet)}

/* faq */
.tm-faq details{border-bottom:1px solid var(--line);padding:.2rem 0}
.tm-faq summary{cursor:pointer;font-weight:700;color:var(--ink);padding:.9rem 0;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.tm-faq summary::-webkit-details-marker{display:none}
.tm-faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--violet)}
.tm-faq details[open] summary::after{content:"–"}
.tm-faq details p{color:var(--muted);margin:0 0 1rem}

/* cta */
.tm-cta{background:var(--ink);color:#cdd1ee;border-radius:22px;padding:clamp(2rem,5vw,3.4rem);text-align:center}
.tm-cta h2{color:#fff}.tm-cta p{max-width:34em;margin-inline:auto}
.tm-cta .tm-ctas{display:flex;justify-content:center;flex-wrap:wrap;gap:.75rem;margin-top:1.2rem}

/* banner + prose */
.tm-banner{background:var(--ink);color:#fff;padding:clamp(2rem,4vw,3rem) 0}
.tm-banner h1{color:#fff;font-size:clamp(1.6rem,3.6vw,2.4rem);margin:0}.tm-banner-meta{color:#aab0d8;margin:.4rem 0 0}
.tm-prose{max-width:800px}.tm-prose h2{font-size:1.35rem;margin-top:2rem}.tm-prose li{margin-bottom:.35rem}
.tm-prose .tm-hero-img{border-radius:14px;margin-bottom:1.5rem}
.tm-post img{border-radius:10px}.tm-post h2{font-size:1.15rem}.tm-post h2 a{color:var(--ink)}
.tm-pager{margin-top:2rem;text-align:center}.tm-pager .nav-links{display:flex;gap:.5rem;justify-content:center}.tm-pager a,.tm-pager span{padding:.3rem .8rem;border:1px solid var(--line);border-radius:8px}
.tm-work img{border-radius:10px;width:100%;aspect-ratio:16/10;object-fit:cover}

/* footer */
.tm-footer{background:var(--ink);color:#aab0d8;padding:3.5rem 0 1.5rem}
.tm-footer a{color:#cdd1ee}
.tm-foot-grid{display:grid;gap:2rem;grid-template-columns:1.4fr 1fr 1fr 1fr}
@media(max-width:860px){.tm-foot-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.tm-foot-grid{grid-template-columns:1fr}}
.tm-footer h3{color:#fff;font-size:1rem}
.tm-footer ul{list-style:none;padding:0;margin:0}.tm-footer li{padding:.15rem 0}
.tm-foot-brand{color:#fff;font-weight:800;font-size:1.1rem;margin-bottom:.4rem}.tm-foot-brand b{color:#a897f2}
.tm-copy{margin-top:2.5rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.12);font-size:.88rem}
.tm-wa{position:fixed;inset-inline-end:18px;bottom:18px;width:54px;height:54px;border-radius:50%;background:#25d366;display:grid;place-items:center;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.25);z-index:90}
.tm-wa:hover{color:#fff;background:#1fb457}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}.tm-track .tm-bar span{width:60%}}

/* ===== WooCommerce: السلة والدفع وحسابي ===== */
.woocommerce-cart .tm-page-body,.woocommerce-checkout .tm-page-body,.woocommerce-account .tm-page-body{max-width:1100px}
body .woocommerce-info,body .woocommerce-message,body .woocommerce-error{list-style:none;margin:0 0 1.2rem;padding:.9rem 1.2rem;width:auto;border:1px solid var(--line);border-inline-start:4px solid var(--violet);border-radius:12px;background:var(--mist);color:var(--text)}
body .woocommerce-info::before,body .woocommerce-message::before,body .woocommerce-error::before{display:none}
body .woocommerce-message{border-inline-start-color:var(--ok);background:#effaf5}
body .woocommerce-error{border-inline-start-color:#c0392b;background:#fdf2f1}
body .woocommerce-info a,body .woocommerce-message a{font-weight:700}

/* تخطيط الدفع: بياناتك + ملخص الطلب */
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:1rem 2rem;align-items:start}
.woocommerce-checkout #customer_details{grid-column:1;grid-row:1 / span 2;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.6rem}
.woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;margin:0;align-self:end}
.woocommerce-checkout #order_review{grid-column:2;grid-row:2;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.4rem;position:sticky;top:92px}
.woocommerce-checkout .col2-set{display:block}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{float:none;width:100%;max-width:none}
.woocommerce-checkout h3,.woocommerce-checkout #order_review_heading{font-size:1.15rem;margin:0 0 1rem}
.woocommerce-billing-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.woocommerce-billing-fields__field-wrapper .form-row-wide,.woocommerce-billing-fields__field-wrapper .notes{grid-column:1 / -1}
body .woocommerce form .form-row{float:none;width:auto;margin:0 0 1rem;padding:0}
body .woocommerce form .form-row label{display:block;font-weight:600;font-size:.92rem;margin:0 0 .3rem;line-height:1.6}
body .woocommerce form .form-row .required{color:#c0392b;text-decoration:none}
body .woocommerce form .form-row input.input-text,body .woocommerce form .form-row textarea,body .woocommerce form .form-row select{width:100%;padding:.7rem .9rem;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;box-shadow:none}
body .woocommerce form .form-row input.input-text:focus,body .woocommerce form .form-row textarea:focus{border-color:var(--violet);outline:0;box-shadow:0 0 0 4px var(--violet-l)}
body .select2-container--default .select2-selection--single{height:auto;padding:.45rem .6rem;border:1.5px solid var(--line);border-radius:10px}
body .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:1.8;color:var(--text)}
body .select2-container--default .select2-selection--single .select2-selection__arrow{height:100%}

/* ملخص الطلب */
.woocommerce-checkout-review-order-table{width:100%;border-collapse:collapse;border:0}
.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{padding:.7rem 0;border:0;border-bottom:1px solid var(--line);text-align:start;vertical-align:top;font-size:.95rem}
.woocommerce-checkout-review-order-table thead th{color:var(--muted);font-size:.85rem}
.woocommerce-checkout-review-order-table td:last-child,.woocommerce-checkout-review-order-table th:last-child{text-align:end}
.woocommerce-checkout-review-order-table dl.variation{margin:.4rem 0 0;font-size:.85rem;color:var(--muted)}
.woocommerce-checkout-review-order-table dl.variation dt{float:right;clear:right;margin-inline-end:.3rem;font-weight:600}
.woocommerce-checkout-review-order-table dl.variation dd{margin:0 0 .15rem}
.woocommerce-checkout-review-order-table dl.variation dd p{margin:0;display:inline}
.woocommerce-checkout-review-order-table .order-total th,.woocommerce-checkout-review-order-table .order-total td{border-bottom:0;padding-top:1rem;font-size:1.05rem}
.woocommerce-checkout-review-order-table .order-total .amount{font-size:1.4rem;font-weight:800;color:var(--ink)}

/* الدفع */
body #payment{background:var(--mist);border-radius:12px;border:0;margin-top:1rem}
body #payment ul.payment_methods{padding:1rem;border-bottom:1px solid var(--line);list-style:none;margin:0}
body #payment div.payment_box{background:#fff;color:var(--muted);border-radius:10px}
body #payment div.payment_box::before{display:none}
body #payment div.form-row{padding:1rem;margin:0}
body #payment #place_order,body .wc-proceed-to-checkout a.checkout-button{display:block;width:100%;float:none;padding:.9rem 1rem;border-radius:12px;background:var(--violet);border:1.5px solid var(--violet);color:#fff;font:inherit;font-weight:800;font-size:1.05rem;text-align:center}
body #payment #place_order:hover,body .wc-proceed-to-checkout a.checkout-button:hover{background:var(--violet-d);border-color:var(--violet-d)}
.tm-secure{display:flex;gap:.5rem;align-items:flex-start;margin:0 0 .8rem;color:var(--muted);font-size:.88rem;line-height:1.7}
.tm-secure .tm-i{color:var(--ok);margin-top:.35rem}

/* السلة */
body table.shop_table{width:100%;border:1px solid var(--line);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}
body table.shop_table th,body table.shop_table td{padding:.8rem 1rem;border:0;border-bottom:1px solid var(--line);text-align:start}
body table.shop_table tr:last-child td{border-bottom:0}
body .cart_totals h2{font-size:1.15rem}
body .woocommerce-cart-form .product-remove a{color:#c0392b}

@media(max-width:900px){
.woocommerce-checkout form.checkout{grid-template-columns:1fr}
.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{grid-column:1;grid-row:auto}
.woocommerce-checkout #order_review{position:static}
.woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}
}
