/* SouqX v1.28.3 | Unified Experience Layer | RTL + LTR | light + dark */
:root{--sx-x-navy:#0b1631;--sx-x-ink:#101d39;--sx-x-violet:#7546f8;--sx-x-cyan:#06b6d4;--sx-x-gold:#d4a45e;--sx-x-radius:22px;--sx-x-shadow:0 22px 65px rgba(15,23,42,.09)}
html{scroll-behavior:smooth}body{font-feature-settings:'kern';-webkit-font-smoothing:antialiased}
:where(.wrap,.market-shell,.souqx-market-v180){--sx-x-border:rgba(95,111,153,.18)}
/* cinematic but readable section identity */
.sx-exp-hero{isolation:isolate;position:relative;overflow:hidden;max-width:1320px;margin:22px auto 28px;padding:clamp(26px,4vw,52px);min-height:205px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-radius:30px;color:#fff;background:radial-gradient(ellipse at 80% 5%,rgba(115,70,248,.38),transparent 48%),radial-gradient(ellipse at 20% 95%,rgba(6,182,212,.22),transparent 45%),linear-gradient(118deg,#091226,#14264b 55%,#111936);border:1px solid rgba(165,179,255,.18);box-shadow:0 22px 55px rgba(5,14,35,.18)}
.sx-exp-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.22;background-image:linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(100deg,transparent,#000)}
.sx-exp-hero-copy{position:relative;z-index:1;max-width:740px}.sx-exp-kicker{font-family:Manrope,Arial,sans-serif;font-size:11px;font-weight:800;letter-spacing:.19em;color:#77e6f5}.sx-exp-hero h1{color:#fff!important;font-size:clamp(26px,3.5vw,46px)!important;line-height:1.24!important;letter-spacing:-.025em;margin:12px 0!important;font-weight:900!important}.sx-exp-hero p{color:#c8d6ef!important;font-size:clamp(13px,1.3vw,16px);line-height:1.8;margin:0;max-width:620px}.sx-exp-hero-art{flex:0 0 110px;display:grid;place-items:center;width:110px;height:110px;border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.22);box-shadow:0 0 70px rgba(115,70,248,.23),inset 0 1px rgba(255,255,255,.16);font-size:64px;color:#a7efff;transform:rotate(-9deg)}
html[dir=rtl] .sx-exp-hero-art{transform:rotate(9deg)}
/* shared premium surfaces without overriding structural layout */
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(.card,.panel,.stat,.stats>div,.kpi,.tile,.form,.table-wrap){border-radius:var(--sx-x-radius);border-color:var(--sx-x-border);box-shadow:var(--sx-x-shadow);transition:border-color .2s,box-shadow .2s,transform .2s}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(.card,.panel,.stat,.tile):hover{border-color:rgba(117,70,248,.27)}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(h1,h2,h3){letter-spacing:-.025em;line-height:1.35}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(input,textarea,select){border-radius:13px;min-height:42px;transition:border-color .2s,box-shadow .2s}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(input,textarea,select):focus-visible{outline:2px solid rgba(117,70,248,.65);outline-offset:1px;box-shadow:0 0 0 5px rgba(117,70,248,.1)}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(.btn,button[type=submit],a.btn){border-radius:13px;transition:transform .16s,filter .16s,box-shadow .16s}
:where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing,.seller-profile-page,.sx-subscription) :where(.btn,button[type=submit],a.btn):hover{filter:brightness(1.06);transform:translateY(-1px)}
/* admin information density and table usability */
.ux-admin :where(table){width:100%;border-collapse:separate;border-spacing:0}.ux-admin :where(th){font-weight:800;letter-spacing:.01em;background:rgba(117,70,248,.055);white-space:nowrap}.ux-admin :where(td,th){padding:12px 14px;border-bottom:1px solid rgba(128,139,168,.15);vertical-align:middle}.ux-admin tr:hover td{background:rgba(117,70,248,.025)}.ux-admin :where(.table-wrap,.table-responsive){max-width:100%;overflow-x:auto;border-radius:18px}
/* seller cards, images, price rhythm */
.sx-seller-hub :where(.listing-card,.my-listing,.item-card,.card){overflow-wrap:anywhere}.sx-seller-hub :where(img){object-fit:cover}.sx-seller-hub :where(.sx-photo-manage-action){background:linear-gradient(120deg,#6940e8,#8255fa)!important;color:white!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 8px 20px rgba(105,64,232,.22);font-weight:800!important}
/* favorites and conversations */
.sx-favorites :where(.card,.item){overflow:hidden}.sx-page-messages :where(.card,.thread){border-radius:18px}.sx-page-messages :where(.card,.thread):hover{box-shadow:0 12px 38px rgba(43,61,112,.13)}
/* login and registration: better visual hierarchy, no form logic changed */
.sx-page-login,.sx-page-register{max-width:1120px;margin-inline:auto}.sx-page-login .auth-card,.sx-page-register .register-card{max-width:560px;margin:20px auto 40px;padding:clamp(20px,4vw,42px);border:1px solid rgba(117,70,248,.16);box-shadow:0 30px 80px rgba(25,38,78,.12)}
/* all photo views */
:where(.listing-page,.sx-page-new_listing,.sx-favorites,.sx-seller-hub,.seller-profile-page) img{max-width:100%}img[loading=lazy]{content-visibility:auto}
/* keep listing orientation exactly as established in 1.27.2; do not force flex-direction on cards */
/* dark mode: neutral backgrounds, restrained accents, high contrast */
html.dark .sx-exp-hero,body.dark .sx-exp-hero,[data-theme=dark] .sx-exp-hero{border-color:rgba(169,184,255,.21)}
html.dark :where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing) :where(.card,.panel,.stat,.tile),body.dark :where(.ux-page,.ux-admin,.sx-seller-hub,.sx-page-new_listing) :where(.card,.panel,.stat,.tile){border-color:rgba(170,184,228,.14);box-shadow:0 15px 42px rgba(0,0,0,.16)}
/* keyboard navigation */
:where(a,button,input,textarea,select):focus-visible{outline:3px solid #06b6d4;outline-offset:3px}
.sx-exp-to-top{position:fixed;inset-inline-end:20px;bottom:24px;z-index:1000;width:44px;height:44px;border:1px solid rgba(255,255,255,.24);border-radius:14px;background:linear-gradient(145deg,#7546f8,#4223a0);color:white;box-shadow:0 10px 26px rgba(44,32,112,.24);display:grid;place-items:center;cursor:pointer;font-size:20px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}.sx-exp-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:850px){.sx-exp-hero{margin:14px 12px 20px;padding:24px;min-height:155px;border-radius:23px}.sx-exp-hero-art{flex-basis:72px;width:72px;height:72px;border-radius:19px;font-size:38px}.sx-exp-hero h1{font-size:26px!important}.sx-exp-hero p{font-size:13px}.sx-exp-to-top{bottom:82px;inset-inline-end:14px}}
@media(max-width:520px){.sx-exp-hero{gap:12px}.sx-exp-hero-art{flex-basis:50px;width:50px;height:50px;font-size:27px;border-radius:14px}.sx-exp-kicker{font-size:9px;letter-spacing:.1em}.sx-exp-hero h1{font-size:22px!important}.sx-exp-hero p{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
