/* Homepage manager v1 */
.hm-admin{max-width:1080px;margin:auto;color:#162e4d}.hm-admin-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px}.hm-admin h1{font-size:27px;margin:0}.hm-admin h2{font-size:19px;margin:0 0 15px}.hm-admin p{color:#687b91}.hm-admin-head a,.hm-panel>a{color:#1765d2;font-weight:800}.hm-panel{background:#fff;padding:23px;border:1px solid #e1e9f2;border-radius:20px;margin-bottom:18px;box-shadow:0 8px 28px #17365a0a}.hm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.hm-fields label,.hm-panel>label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:13px}.hm-admin input:not([type=checkbox]),.hm-admin textarea,.hm-admin select{width:100%;min-height:42px;border:1px solid #d8e3ee;border-radius:11px;padding:10px;background:#fff;font:inherit;color:#18375a}.hm-admin textarea{min-height:170px;resize:vertical}.hm-admin input[type=file]{font-size:12px}.hm-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hm-section-setting{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e2eaf5;border-radius:12px;padding:12px}.hm-section-setting>label:last-child{width:95px;font-size:11px;color:#6a798c}.hm-toggle{display:flex;align-items:center;gap:10px!important;font-size:13px;font-weight:750}.hm-toggle input{accent-color:#1469e8;width:19px;height:19px}.hm-save{background:#1265ee;color:#fff;border:0;border-radius:11px;padding:11px 20px;font-weight:800;cursor:pointer;margin-top:16px}.hm-delete{background:#fff3f3;color:#af2537;border:1px solid #f4cdd2;border-radius:10px;padding:9px 16px;margin-top:15px;cursor:pointer}.hm-alert,.hm-error{padding:13px;border-radius:12px;margin-bottom:15px;background:#e6f9ec;color:#146a38}.hm-error{background:#fff0f1;color:#bd2635}.hm-logo-preview{width:100px;height:65px;object-fit:contain}.hm-banner-info{display:flex;gap:17px;align-items:center;margin-bottom:19px}.hm-banner-info img{width:180px;max-width:38%;height:95px;object-fit:contain;border-radius:12px;background:#f0f4f8}
.hm-public{max-width:1200px;margin:auto;padding:15px 0 35px;direction:rtl}.hm-category-head{text-align:center;margin:10px 0 25px}.hm-category-head>a{color:#1766e8;font-size:13px;text-decoration:none}.hm-category-head h1{font-size:26px;margin:10px 0 5px}.hm-category-head p{color:#69798b;font-size:13px}.hm-cat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.hm-cat{text-decoration:none;color:#24324a;display:flex;flex-direction:column;align-items:center;gap:8px;background:white;border:1px solid #e9eef5;border-radius:17px;padding:14px 5px;min-width:0;box-shadow:0 3px 14px #1f3d5a09;transition:transform .2s}.hm-cat:hover{transform:translateY(-3px)}.hm-cat-icon{display:grid;place-items:center;border-radius:50%;width:48px;height:48px;background:color-mix(in srgb,var(--cat-color) 13%,white);color:var(--cat-color)}.hm-cat-icon img{width:40px;height:40px;object-fit:contain}.hm-cat-icon svg{width:26px!important;height:26px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}.hm-cat b{font-size:12px;text-align:center;line-height:1.5}.hm-cat small{font-size:10px;color:#8191a2}.hm-cat-all{grid-template-columns:repeat(5,minmax(0,1fr))}.hm-all-link{display:block;text-align:center;font-weight:800;color:#1265ee!important;text-decoration:none;background:#eef5ff;border-radius:12px;padding:10px;margin:12px auto 8px;max-width:310px}.hm-type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 4px}.hm-type-tabs a{flex:1;text-decoration:none;text-align:center;padding:12px 10px;border-radius:13px;background:white;border:1px solid #dfe8f3;color:#415a77;font-weight:800;font-size:12px}.hm-type-tabs a.active{background:#1468e8;color:#fff;border-color:#1468e8}.hm-banner-section{position:relative;margin:22px 0;overflow:hidden;border-radius:18px}.hm-banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px}.hm-banner-track::-webkit-scrollbar{display:none}.hm-banner-slide{display:block;flex:0 0 100%;scroll-snap-align:start;aspect-ratio:3 / 1;overflow:hidden;border-radius:18px;background:#e6edf7}.hm-banner-slide img{width:100%;height:100%;object-fit:contain}.hm-dual .hm-banner-slide{flex-basis:calc(50% - 5px);aspect-ratio:3 / 2}.hm-banner-controls{position:absolute;inset:50% 8px auto;display:flex;justify-content:space-between;pointer-events:none;transform:translateY(-50%)}.hm-banner-controls button{pointer-events:auto;border:0;border-radius:50%;width:32px;height:32px;background:#ffffffed;color:#1a5596;font-size:23px;cursor:pointer;box-shadow:0 2px 8px #0002}.hm-merchant-section,.hm-join,.hm-footer{margin:25px 0;padding:22px;border-radius:20px;background:#fff;border:1px solid #e4eaf3}.hm-merchant-section h2{margin:0 0 7px;font-size:23px}.hm-merchant-section p{color:#7a8998}.hm-merchant-track{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:13px;padding:10px 1px}.hm-merchant{flex:0 0 150px;background:#f8fafd;border:1px solid #e7ecf5;border-radius:15px;padding:15px;text-align:center;scroll-snap-align:start}.hm-merchant img{width:70px;height:70px;object-fit:contain;border-radius:13px;background:white}.hm-merchant strong{display:block;font-size:12px;margin-top:8px}.hm-join{text-align:center;background:#edf5ff}.hm-join a{display:inline-block;text-decoration:none;background:#168a55;color:white;padding:12px 22px;border-radius:13px;font-weight:800}.hm-footer{text-align:center;background:#f0f4f9;font-size:12px}.hm-footer a{margin:5px;color:#1468db;text-decoration:none}.hm-footer p{margin:5px;color:#6b7a88}
@media(max-width:600px){.hm-fields,.hm-section-grid{grid-template-columns:1fr}.hm-admin h1{font-size:22px}.hm-panel{padding:15px}.hm-cat-grid,.hm-cat-all{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.hm-cat{padding:12px 3px;border-radius:13px}.hm-cat b{font-size:10px}.hm-cat-icon{width:43px;height:43px}.hm-cat-icon img{width:36px;height:36px}.hm-category-head h1{font-size:23px}.hm-banner-section{border-radius:12px}.hm-banner-slide{border-radius:12px}.hm-merchant-section{padding:15px}.hm-merchant{flex-basis:118px}}

.dh-brand>span img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.hm-banner-section:focus-within .hm-banner-controls{opacity:1}@media(prefers-reduced-motion:reduce){.hm-cat{transition:none}}

/* Home UI refinement v2 — fixed square category tiles, app-like tabs, compact partners and icon-only social links */
.hm-home-categories{padding:12px 0 20px}
.hm-home-categories .hm-cat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hm-home-categories .hm-cat{aspect-ratio:1/1;width:100%;height:auto;min-width:0;min-height:0;padding:8px 3px 6px;justify-content:center;gap:6px;border-radius:14px;box-sizing:border-box;box-shadow:0 3px 14px rgba(40,57,89,.05);overflow:hidden}
.hm-home-categories .hm-cat-icon{width:42px;height:42px;flex-shrink:0}
.hm-home-categories .hm-cat b{font-size:clamp(9px,2.7vw,12px);line-height:1.25;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.hm-home-categories .hm-cat-more{background:#f7f9fd;border:1px dashed #becce0}
.hm-home-categories .hm-cat-more .hm-cat-icon{background:#e8edf5;color:#526b8d}
.hm-type-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0 13px;direction:rtl}
.hm-type-tabs a{min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;min-height:54px;padding:9px 5px;background:#fff;color:#283c58;border:1px solid #e3e8f0;border-radius:13px;box-shadow:0 3px 12px rgba(30,55,83,.045);font-size:clamp(10px,2.5vw,13px);line-height:1.25;white-space:normal;transition:background .2s,border-color .2s,transform .2s}
.hm-type-tabs a.active{background:#edf4ff;border-color:#91b7fa;color:#1558ae;box-shadow:inset 0 0 0 1px #91b7fa}
.hm-type-tabs a:hover{transform:translateY(-1px)}
.hm-tab-icon{width:28px;height:28px;flex-shrink:0;display:grid;place-items:center;border-radius:9px;background:#eaf0fa;color:#506da2}
.hm-type-tabs a:nth-child(2) .hm-tab-icon{background:#fff1e7;color:#c86a35}
.hm-type-tabs a:nth-child(3) .hm-tab-icon{background:#e6f7ef;color:#189365}
.hm-tab-icon svg{width:18px;height:18px}
.hm-merchant-section{background:linear-gradient(145deg,#f7faff,#fff);border:1px solid #e6ecf6;padding:16px;margin:18px 0}
.hm-merchant-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hm-merchant-head h2{font-size:19px;margin:0 0 4px;color:#1b3558}
.hm-merchant-head p{font-size:12px;line-height:1.6;margin:0;color:#71839b}
.hm-merchant-deco{color:#d9a34d;font-size:24px}
.hm-merchant-track{gap:10px;padding:14px 1px 6px;scroll-snap-type:x mandatory}
.hm-merchant{flex:0 0 95px;min-width:0;padding:11px 7px;background:#fff;box-shadow:0 3px 12px #263a5510;border-color:#edf1f7;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.hm-merchant-logo{width:64px;height:64px;border-radius:14px;background:#f7f9fd;display:grid;place-items:center;overflow:hidden}
.hm-merchant-logo img{width:100%;height:100%;object-fit:contain;border-radius:0;background:transparent}
.hm-merchant-logo svg{width:32px;height:32px;color:#7286a6}
.hm-merchant strong{font-size:10px;line-height:1.4;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;margin:0}
.hm-footer{padding:18px 12px;text-align:center;display:flex;flex-direction:column;gap:13px;background:#f8faff;border:1px solid #e6ebf4}
.hm-footer a{margin:0;text-decoration:none}
.hm-social-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px}
.hm-social{width:43px;height:43px;display:grid;place-items:center;border:1px solid rgba(0,0,0,.055);border-radius:14px;box-shadow:0 3px 12px #152f4b12;transition:transform .2s}
.hm-social:hover{transform:translateY(-2px)}
.hm-social svg{height:23px;width:23px}
.hm-social-facebook{background:#e8f0ff;color:#1877f2!important}
.hm-social-instagram{background:#fff0f6;color:#c13584!important}
.hm-social-tiktok{background:#19191d;color:#fff!important}
.hm-social-youtube{background:#ffeded;color:#ff0033!important}
.hm-contact-links{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.hm-contact{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;border-radius:12px;font-weight:800;font-size:12px;min-width:95px;border:1px solid transparent}
.hm-contact svg{width:18px;height:18px;flex-shrink:0}
.hm-contact-phone{color:#1a64bd!important;background:#eaf2ff;border-color:#d8e7ff}
.hm-contact-email{color:#8753b4!important;background:#f5edff;border-color:#e9dbf8}
.hm-contact-whatsapp{color:#16834e!important;background:#e8f9f0;border-color:#d0f2df}
.hm-footer .hm-footer-address{font-size:12px;line-height:1.6;color:#667892;margin:0}
.hm-disclaimer-link{align-self:center;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:750;color:#586c85!important;background:#edf1f7;padding:9px 13px;border-radius:10px}
.hm-disclaimer-link svg{width:17px;height:17px}
@media(max-width:380px){.hm-home-categories .hm-cat-grid{gap:6px}.hm-home-categories .hm-cat{padding:5px 2px;gap:4px}.hm-home-categories .hm-cat-icon{width:38px;height:38px}.hm-type-tabs a{flex-direction:column;min-height:62px;gap:4px}.hm-tab-icon{height:25px;width:25px}.hm-merchant{flex-basis:88px}}
@media(min-width:750px){.hm-home-categories .hm-cat-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.hm-home-categories .hm-cat b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hm-type-tabs a,.hm-social{transition:none}}

.hm-cat-all .hm-cat{aspect-ratio:1 / 1;justify-content:center;padding:10px 4px;box-sizing:border-box}.hm-cat-all .hm-cat b{line-height:1.25}.hm-cat-all .hm-cat small{font-size:9px}

/* Home refinement: transparent brand, compact locale selector, clean banner arrows */
.discover .dh-brand>span{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;color:inherit!important;overflow:visible}
.discover .dh-brand>span img{background:transparent!important;border-radius:0!important;object-fit:contain!important}
.public-shell:has(.discover){position:relative}
.public-shell:has(.discover)>.public-language{position:absolute;left:30px;top:8px;display:inline-flex;gap:3px;margin:0;z-index:5;padding:3px;border:1px solid #e4eaf4;border-radius:11px;background:#fff;box-shadow:0 2px 10px #173b6510}
.public-shell:has(.discover)>.public-language a{font-size:11px;padding:6px 9px;border-radius:8px}
.discover .dh-head{padding-top:36px}
.hm-banner-controls{inset-inline:8px}
.hm-banner-controls button{width:29px;height:34px;border-radius:9px!important;background:rgba(255,255,255,.9)!important;box-shadow:0 2px 10px rgba(0,0,0,.12)!important;line-height:1!important}
.hm-draw-notice{margin:20px 0;border-radius:16px}
.hm-draw-notice p{line-height:1.85}
@media(max-width:600px){.public-shell:has(.discover)>.public-language{left:16px;top:4px}.public-shell:has(.discover)>.public-language a{font-size:10px;padding:5px 7px}.discover .dh-head{padding-top:35px}}

/* Header and footer adjustments 2026-11-12 */
.discover .dh-head{padding-top:12px!important}
.discover .dh-brand{gap:12px}
.discover .dh-brand>span{width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;display:grid;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.discover .dh-brand>span img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.hm-footer-language{border-top:1px solid #e4eaf4;padding-top:14px;margin-top:3px;display:flex;justify-content:center;align-items:center}
.hm-footer-language .public-language{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;margin:0!important;padding:4px!important;border:1px solid #e2eaf3!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;direction:rtl}
.hm-footer-language .public-language a{display:inline-flex;align-items:center;justify-content:center;min-width:70px;font-size:12px!important;font-weight:750!important;padding:8px 10px!important;border-radius:9px!important;text-decoration:none!important}
@media(max-width:600px){.discover .dh-brand>span{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important}.discover .dh-head{padding-top:8px!important}.hm-footer-language .public-language a{min-width:65px}}

/* Compact header / balanced footer: 2026-11-12 v4 */
.public-shell:has(.discover){padding-top:5px!important}
.discover .dh-head{padding:0 0 8px!important;margin:0!important;min-height:0!important;align-items:center!important;gap:10px!important}
.discover .dh-brand{gap:9px!important;line-height:1.35!important}
.discover .dh-brand small{margin-top:1px!important;line-height:1.3!important}
.discover .dh-total{margin:0!important}
.discover .hm-home-categories{padding-top:3px!important;padding-bottom:8px!important;margin-top:0!important;margin-bottom:0!important}
.discover .hm-banner-section{margin-top:8px!important;margin-bottom:12px!important}
.discover .dh-head + .hm-banner-section{margin-top:3px!important}
.discover .dh-head + .hm-home-categories{padding-top:3px!important}
.hm-footer-bottom{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;margin-top:2px;border-top:1px solid #e4eaf4;direction:rtl;flex-wrap:nowrap}
.hm-footer-bottom .hm-disclaimer-link{align-self:auto;flex:0 1 auto;white-space:nowrap;background:transparent!important;padding:7px 3px!important;color:#52657c!important;box-shadow:none!important;border:0!important}
.hm-footer-bottom .hm-footer-language{border:0!important;padding:0!important;margin:0!important;display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.hm-footer-bottom .hm-footer-language .public-language{border:1px solid #e2eaf3!important;background:#fff!important;box-shadow:none!important;padding:2px!important;gap:2px!important;border-radius:10px!important;display:inline-flex!important;white-space:nowrap}
.hm-footer-bottom .hm-footer-language .public-language a{font-size:11px!important;min-width:0!important;padding:5px 8px!important;line-height:1.4!important;border-radius:8px!important}
@media(max-width:600px){
 .public-shell:has(.discover){padding-top:3px!important}
 .discover .dh-head{padding:0 0 5px!important;gap:7px!important}
 .discover .dh-brand>span{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important}
 .discover .hm-home-categories{padding-top:2px!important;padding-bottom:6px!important}
 .discover .hm-banner-section{margin-top:6px!important;margin-bottom:10px!important}
 .hm-footer-bottom{gap:5px!important;padding-top:10px!important}
 .hm-footer-bottom .hm-disclaimer-link{font-size:11px!important;gap:4px!important;padding-inline:0!important}
 .hm-footer-bottom .hm-disclaimer-link svg{width:15px;height:15px}
 .hm-footer-bottom .hm-footer-language .public-language a{padding:5px 6px!important;font-size:10px!important}
}

/* Category listing navigation: compact return pill with an RTL-aware arrow */
.hm-category-head .hm-category-back{display:inline-flex;align-items:center;justify-content:center;gap:9px;margin:0 auto 12px;padding:6px 14px 6px 7px;border:1px solid #dce7f8;border-radius:999px;background:#fff;color:#1c579f!important;font-weight:800;font-size:13px;line-height:1.5;text-decoration:none;box-shadow:0 3px 12px rgba(27,72,129,.07);transition:background .18s,border-color .18s,transform .18s}
.hm-category-head .hm-category-back:hover{background:#f1f6ff;border-color:#b9cef0;transform:translateY(-1px)}
.hm-category-head .hm-category-back:focus-visible{outline:3px solid #9ec4ff;outline-offset:3px}
.hm-category-back-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf4ff;color:#1864c0;flex-shrink:0}
.hm-category-back-icon svg{width:16px;height:16px;transform:rotate(180deg)}
@media(max-width:600px){.hm-category-head .hm-category-back{font-size:12px;gap:7px;margin-bottom:9px}}
