:root{
  --surface:#f8f9fa;--surface-low:#f3f4f5;--surface-card:#fff;--surface-high:#e7e8e9;
  --navy:#0e1c2f;--navy-2:#16243a;--ink:#191c1d;--muted:#5f6368;--muted-2:#7b8088;
  --gold:#fcd400;--gold-2:#ffe16d;--gold-dark:#705d00;--line:#e1e3e4;--line-2:#c5c6cd;
  --success:#0d8a4b;--success-bg:#e8f7ef;--warning:#8a6a00;--warning-bg:#fff7d6;--danger:#ba1a1a;--danger-bg:#ffdad6;--info:#2058a7;--info-bg:#e8f0ff;
  --shadow:0 24px 60px rgba(14,28,47,.10);--shadow-sm:0 10px 28px rgba(14,28,47,.07);
  --radius:24px;--radius-md:18px;--radius-sm:14px;--max:1280px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--surface);color:var(--ink);font-family:"Plus Jakarta Sans","Noto Sans Arabic",system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.65;min-height:100vh}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.material-symbols-outlined{font-size:20px;line-height:1;vertical-align:middle;font-variation-settings:'FILL' 0,'wght' 600,'GRAD' 0,'opsz' 24}
.public-body{background:linear-gradient(180deg,#fff 0%,#f8f9fa 42%,#f3f4f5 100%)}
.public-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(197,198,205,.6)}.public-header-inner{height:76px;max-width:var(--max);margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--navy);font-size:22px;letter-spacing:-.5px}.brand-mark{width:40px;height:40px;border-radius:14px;background:var(--gold);color:var(--navy);display:inline-grid;place-items:center;font-weight:900;box-shadow:0 12px 30px rgba(252,212,0,.35)}.public-nav{display:flex;align-items:center;gap:22px;color:var(--navy);font-weight:700}.public-nav a:not(.btn){opacity:.82}.public-nav a:not(.btn):hover{opacity:1;color:#000}.public-main{min-height:calc(100vh - 76px)}
.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;border-radius:999px;padding:13px 22px;font-weight:800;background:var(--navy);color:#fff;box-shadow:0 14px 32px rgba(14,28,47,.18);transition:.2s ease;font-family:inherit}.btn:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(14,28,47,.24)}.btn-accent{background:var(--gold);color:var(--navy);box-shadow:0 16px 34px rgba(252,212,0,.32)}.btn-secondary,.btn-ghost{background:#fff;color:var(--navy);border:1px solid var(--line-2);box-shadow:none}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:9px 15px;font-size:13px}.btn-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.icon-button{width:44px;height:44px;border-radius:16px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--navy);box-shadow:var(--shadow-sm)}
.hero{max-width:var(--max);margin:auto;padding:68px 32px 44px;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:44px}.hero h1{font-size:60px;line-height:1.08;margin:0 0 18px;color:var(--navy);letter-spacing:-2px}.hero p{font-size:19px;color:var(--muted);max-width:660px;margin:0 0 28px}.hero-kicker{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 13px;margin-bottom:18px;font-weight:800;color:var(--navy);box-shadow:var(--shadow-sm)}.hero-kicker b{background:var(--gold);border-radius:999px;padding:2px 10px}.hero-visual{position:relative;background:linear-gradient(145deg,var(--navy),#0b1526);border-radius:36px;padding:24px;min-height:520px;box-shadow:0 36px 90px rgba(14,28,47,.25);overflow:hidden}.hero-visual:before{content:"";position:absolute;inset:-80px auto auto -80px;width:240px;height:240px;background:var(--gold);border-radius:50%;filter:blur(26px);opacity:.9}.market-card{position:relative;background:#fff;border-radius:28px;padding:18px;box-shadow:0 22px 50px rgba(0,0,0,.18);margin-bottom:18px}.market-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.mini-product{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:center}.mini-img,.product-img,.product-image{border-radius:22px;background:linear-gradient(135deg,#f6f7f8,#e8eaee);min-height:92px;display:grid;place-items:center;color:var(--muted);overflow:hidden}.mini-img:before,.product-img:empty:before,.product-image:empty:before{content:"صورة";font-weight:800;color:#a0a5ad}.mini-product h3{margin:0 0 4px;color:var(--navy)}.mini-product p{margin:0;color:var(--muted);font-size:14px}.commission-badge{display:inline-flex;align-items:center;gap:6px;background:var(--gold);color:var(--navy);border-radius:999px;padding:6px 10px;font-weight:900;font-size:13px}.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.hero-metrics div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:16px;color:#fff}.hero-metrics strong{display:block;font-size:24px;color:var(--gold)}.section{max-width:var(--max);margin:auto;padding:50px 32px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-title h2{font-size:36px;line-height:1.2;color:var(--navy);margin:0}.section-title p{color:var(--muted);margin:6px 0 0}.feature-grid,.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature-card,.step-card,.card{background:#fff;border:1px solid rgba(197,198,205,.65);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}.feature-card .material-symbols-outlined,.step-card .material-symbols-outlined{width:48px;height:48px;border-radius:18px;background:var(--navy);color:#fff;display:grid;place-items:center;margin-bottom:18px}.feature-card h3,.step-card h3,.card h2{margin:0 0 8px;color:var(--navy)}.feature-card p,.step-card p{margin:0;color:var(--muted)}.step-no{width:36px;height:36px;border-radius:50%;background:var(--gold);color:var(--navy);display:grid;place-items:center;font-weight:900;margin-bottom:12px}.cta-band{max-width:var(--max);margin:48px auto;padding:0 32px}.cta-inner{border-radius:34px;background:linear-gradient(135deg,var(--navy),#111827);padding:44px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#fff;box-shadow:var(--shadow)}.cta-inner h2{margin:0 0 8px;font-size:34px}.cta-inner p{margin:0;color:#d7dfec}.public-footer{border-top:1px solid var(--line);background:#fff}.public-footer-inner{max-width:var(--max);margin:auto;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-weight:600}
.auth-wrap{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:42px 20px}.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:32px;box-shadow:var(--shadow);padding:36px}.auth-card h1{margin:0 0 8px;color:var(--navy);font-size:34px}.auth-card p{margin:0 0 24px;color:var(--muted)}.auth-note{background:var(--warning-bg);color:var(--warning);border:1px solid #f1d66d;border-radius:18px;padding:13px 15px;font-weight:700;margin-top:15px}
.dashboard-body{background:var(--surface)}.app-shell{display:grid;grid-template-columns:292px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:#fff;padding:24px 18px;display:flex;flex-direction:column;gap:18px;box-shadow:-20px 0 50px rgba(14,28,47,.15);z-index:10}.sidebar .brand{color:#fff}.sidebar-title{margin:8px 12px 0;color:#bac7e1;font-size:13px;font-weight:800}.sidebar-nav{display:flex;flex-direction:column;gap:7px}.sidebar-nav a,.sidebar-footer a{display:flex;align-items:center;gap:12px;border-radius:18px;padding:13px 14px;color:#d6e3fe;font-weight:800;transition:.18s ease}.sidebar-nav a:hover,.sidebar-nav a.active{background:rgba(255,255,255,.10);color:#fff}.sidebar-nav a.active{box-shadow:inset -4px 0 0 var(--gold)}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.workspace{min-width:0;display:flex;flex-direction:column}.workspace-topbar{height:82px;background:rgba(248,249,250,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(197,198,205,.55);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:8}.workspace-topbar strong{display:block;color:var(--navy);font-size:22px}.eyebrow{margin:0 0 2px;color:var(--muted-2);font-weight:800;font-size:12px}.topbar-actions{display:flex;align-items:center;gap:12px}.user-chip{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:7px 12px;border-radius:999px;font-weight:800;color:var(--navy);box-shadow:var(--shadow-sm)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-weight:900}.main-content{padding:32px;max-width:1440px;width:100%;margin:0 auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-title h1{margin:0;color:var(--navy);font-size:34px;line-height:1.2}.page-title p{margin:6px 0 0;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{position:relative;overflow:hidden;background:#fff;border:1px solid rgba(197,198,205,.65);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm);min-height:154px}.stat-card:after{content:"";position:absolute;inset:auto -20px -40px auto;width:130px;height:130px;background:linear-gradient(135deg,rgba(252,212,0,.28),rgba(214,227,254,.6));border-radius:50%}.stat-card span{display:block;color:var(--muted);font-weight:800;margin-bottom:8px}.stat-card strong{display:block;color:var(--navy);font-size:27px;line-height:1.1;letter-spacing:-1px}.stat-card small{display:block;margin-top:8px;color:var(--muted-2);font-weight:700}.stat-icon{position:absolute;top:18px;left:18px;width:42px;height:42px;border-radius:16px;background:var(--navy);color:#fff;display:grid;place-items:center}.sparkline{position:absolute;bottom:20px;left:20px;display:flex;align-items:end;gap:4px;height:24px}.sparkline i{display:block;width:6px;background:var(--gold);border-radius:999px}.sparkline i:nth-child(1){height:10px}.sparkline i:nth-child(2){height:16px}.sparkline i:nth-child(3){height:12px}.sparkline i:nth-child(4){height:22px}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{margin-bottom:22px}.card h2{font-size:22px}.muted{color:var(--muted)}
.table-wrap{background:#fff;border:1px solid rgba(197,198,205,.65);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:auto;margin-bottom:22px}table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}th,td{text-align:right;padding:16px;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:13px;color:var(--muted);font-weight:900;background:#fbfcfd;white-space:nowrap}td{color:var(--ink);font-weight:600}tbody tr:hover{background:#fbfbfc}tbody tr:last-child td{border-bottom:0}.empty{text-align:center;color:var(--muted);padding:38px!important}.badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:900}.badge-success{background:var(--success-bg);color:var(--success)}.badge-warning{background:var(--warning-bg);color:var(--warning)}.badge-danger{background:var(--danger-bg);color:var(--danger)}.badge-info{background:var(--info-bg);color:var(--info)}.badge-muted{background:#eef0f2;color:#5d646f}
label{display:block;margin:14px 0 7px;color:var(--navy);font-weight:900;font-size:14px}input,select,textarea{width:100%;border:1px solid var(--line-2);background:#fff;border-radius:16px;padding:13px 15px;font:inherit;color:var(--ink);outline:none;transition:.18s ease}textarea{min-height:120px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--navy);box-shadow:0 0 0 4px rgba(14,28,47,.08)}input[type=file]{background:#fbfcfd;border-style:dashed;padding:20px}.form-card{width:min(760px,calc(100% - 32px));margin:42px auto;background:#fff;border:1px solid var(--line);border-radius:32px;box-shadow:var(--shadow);padding:36px}.form-card h1{margin:0 0 10px;color:var(--navy);font-size:34px}.form-card h2{color:var(--navy);margin-top:24px}.form-actions{display:flex;align-items:center;gap:12px;justify-content:flex-start;margin-top:20px}.filters{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:14px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm);margin-bottom:20px}.inline-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.inline-form select,.inline-form input{width:auto;min-width:130px}.alert{border-radius:18px;padding:13px 16px;margin:0 0 18px;font-weight:800}.alert-success{background:var(--success-bg);color:var(--success);border:1px solid #bcead1}.alert-danger{background:var(--danger-bg);color:var(--danger);border:1px solid #ffc4bf}.alert-warning{background:var(--warning-bg);color:var(--warning);border:1px solid #f2df87}.alert-info{background:var(--info-bg);color:var(--info);border:1px solid #c8d9ff}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{background:#fff;border:1px solid rgba(197,198,205,.70);border-radius:28px;overflow:hidden;box-shadow:var(--shadow-sm);position:relative;transition:.2s ease}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-card:hover:after{content:"";position:absolute;inset:auto 0 0 0;height:5px;background:var(--gold)}.product-img,.product-image{height:210px;border-radius:0;background:linear-gradient(135deg,#f6f7f8,#e6e8ed)}.product-img img,.product-image img{width:100%;height:100%;object-fit:cover}.product-body{padding:18px}.product-title{margin:0 0 8px;color:var(--navy);font-size:20px}.product-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0 14px}.price{font-size:22px;font-weight:900;color:var(--navy)}.product-desc{color:var(--muted);font-size:14px;min-height:46px}.catalog-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:20px}.catalog-tools input{max-width:360px}.proof-thumb{width:70px;height:70px;border-radius:16px;object-fit:cover;background:var(--surface-high);border:1px solid var(--line)}.upload-zone{border:2px dashed var(--line-2);border-radius:22px;background:#fbfcfd;padding:24px;text-align:center;color:var(--muted);font-weight:800}.upload-zone input{border:0;background:transparent;padding:10px 0}.detail-list{display:grid;grid-template-columns:150px 1fr;gap:10px 16px;margin:0}.detail-list dt{color:var(--muted);font-weight:900}.detail-list dd{margin:0;color:var(--navy);font-weight:800}.timeline{display:flex;flex-direction:column;gap:12px}.timeline-item{display:flex;gap:12px;align-items:center}.timeline-dot{width:14px;height:14px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 6px rgba(252,212,0,.20)}.wallet-hero{background:linear-gradient(135deg,var(--navy),#111827);color:#fff;border-radius:32px;padding:28px;box-shadow:var(--shadow);margin-bottom:24px;position:relative;overflow:hidden}.wallet-hero:after{content:"";position:absolute;inset:auto -80px -100px auto;width:260px;height:260px;background:var(--gold);border-radius:50%;filter:blur(20px);opacity:.75}.wallet-hero h2{margin:0;color:#fff}.wallet-hero strong{display:block;font-size:42px;color:var(--gold);line-height:1.1;margin-top:10px}.wallet-hero p{color:#d7dfec}.admin-chart{height:240px;border-radius:24px;background:linear-gradient(180deg,#fff,#fbfcfd);border:1px solid var(--line);padding:18px;display:flex;align-items:end;gap:12px}.admin-chart i{flex:1;border-radius:999px 999px 0 0;background:linear-gradient(180deg,var(--gold),#ffe986);min-height:40px}.admin-chart i:nth-child(1){height:38%}.admin-chart i:nth-child(2){height:52%}.admin-chart i:nth-child(3){height:44%}.admin-chart i:nth-child(4){height:68%}.admin-chart i:nth-child(5){height:58%}.admin-chart i:nth-child(6){height:78%}.admin-chart i:nth-child(7){height:92%}.installer-note{background:var(--info-bg);color:var(--info);border-radius:18px;padding:14px 16px;font-weight:800}.setup-page{background:radial-gradient(circle at 80% 0%,rgba(252,212,0,.18),transparent 32%),var(--surface)}
@media (max-width:1100px){.hero{grid-template-columns:1fr}.hero h1{font-size:46px}.feature-grid,.steps-grid,.stats-grid,.product-grid,.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:84px 1fr}.sidebar{padding:18px 10px}.sidebar .brand span:not(.brand-mark),.sidebar-title,.sidebar-nav a span,.sidebar-footer a span{display:none}.sidebar-nav a,.sidebar-footer a{justify-content:center}.sidebar-brand{justify-content:center}.sidebar-nav a.active{box-shadow:inset 0 -4px 0 var(--gold)}}
@media (max-width:760px){.public-header-inner{padding:0 16px}.public-nav a:not(.btn){display:none}.hero,.section,.cta-band{padding-left:16px;padding-right:16px}.hero h1{font-size:36px}.hero-visual{min-height:auto}.feature-grid,.steps-grid,.stats-grid,.grid-2,.grid-3,.grid-4,.product-grid{grid-template-columns:1fr}.hero-metrics{grid-template-columns:1fr}.cta-inner{flex-direction:column;align-items:flex-start;padding:28px}.public-footer-inner{flex-direction:column;align-items:flex-start;gap:12px;padding:24px 16px}.app-shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;width:100%;height:76px;flex-direction:row;padding:8px;overflow-x:auto}.sidebar .brand,.sidebar-title,.sidebar-footer{display:none}.sidebar-nav{flex-direction:row;width:100%;justify-content:space-around}.sidebar-nav a{min-width:58px;padding:10px}.workspace-topbar{padding:0 16px}.workspace-topbar strong{font-size:18px}.topbar-actions .icon-button:nth-child(1),.topbar-actions .icon-button:nth-child(2){display:none}.main-content{padding:22px 16px 96px}.page-title{align-items:flex-start;flex-direction:column}.page-title h1{font-size:28px}.filters{grid-template-columns:1fr}.auth-card,.form-card{padding:24px;border-radius:24px}.catalog-tools{flex-direction:column;align-items:stretch}.catalog-tools input{max-width:none}.detail-list{grid-template-columns:1fr}.inline-form select,.inline-form input{width:100%}}

/* Souqly V3 advanced marketplace refinements */
:root{--danger-btn:#ef4444}.product-section{margin:28px 0 38px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 16px}.section-heading span{display:inline-flex;color:var(--muted);font-weight:900;font-size:12px}.section-heading h2{margin:4px 0 0;color:var(--navy);font-size:30px}.section-heading small{color:var(--muted);font-weight:900}.category-pills{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.pill{display:inline-flex;align-items:center;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:900;color:var(--navy);text-decoration:none;box-shadow:var(--shadow-sm)}.pill.active,.pill:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.product-grid-premium{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}.premium-product-card{border-radius:30px;background:linear-gradient(180deg,#fff,#fff 70%,#fbfcfd);border:1px solid rgba(197,198,205,.75);box-shadow:0 18px 45px rgba(14,28,47,.08);overflow:hidden}.premium-product-card .product-body{padding:18px 18px 20px}.premium-product-card .product-title{min-height:52px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.old-price{display:block;color:var(--muted);text-decoration:line-through;font-weight:800;margin-top:-6px;margin-bottom:8px}.sale-ribbon{display:inline-flex;position:absolute;top:14px;right:14px;z-index:3;background:var(--gold);color:var(--navy);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:1000;box-shadow:0 10px 18px rgba(252,212,0,.25)}
.product-gallery{position:relative;overflow:hidden;background:linear-gradient(135deg,#f7f8fa,#e9edf2);height:250px}.product-gallery.placeholder,.product-img.placeholder{display:grid;place-items:center;color:#9aa3ad}.gallery-track{height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.gallery-track::-webkit-scrollbar{display:none}.gallery-slide{min-width:100%;height:100%;scroll-snap-align:center;display:grid;place-items:center;background:#f7f8fa}.gallery-slide img{width:100%;height:100%;object-fit:contain;padding:8px;background:#fff}.catalog-gallery{height:245px}.summary-gallery{height:250px;border-radius:24px;margin-bottom:16px}.admin-preview-gallery{height:310px}.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 10px 24px rgba(14,28,47,.16);font-size:24px;line-height:1;cursor:pointer}.gallery-nav.next{left:12px}.gallery-nav.prev{right:12px}.gallery-count{position:absolute;left:14px;bottom:12px;background:rgba(14,28,47,.86);color:#fff;font-size:12px;font-weight:900;border-radius:999px;padding:6px 10px}.product-img img,.product-image img{object-fit:contain;background:#fff;padding:8px}.proof-thumb{object-fit:contain;background:#fff}
.premium-catalog-tools{border-radius:30px;box-shadow:0 18px 40px rgba(14,28,47,.07)}.premium-form-card{box-shadow:0 24px 65px rgba(14,28,47,.09)}.premium-upload{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;min-height:110px}.premium-upload small{color:var(--muted);font-weight:700}.order-create-grid{align-items:start}.order-summary-card{position:sticky;top:104px}.premium-summary dd strong{font-size:24px;color:var(--navy)}.payment-instructions{display:none;margin:16px 0;border:1px solid rgba(252,212,0,.55);background:linear-gradient(135deg,#fffbea,#fff);border-radius:20px;padding:14px 16px;color:var(--navy)}.payment-instructions strong{display:block;font-size:15px;margin-bottom:4px}.payment-instructions span{display:block;font-weight:900}.payment-instructions em{display:block;margin-top:8px;color:var(--muted);font-style:normal;font-weight:700}.locked-order-card{background:linear-gradient(135deg,#fff8d6,#fff);border-color:rgba(252,212,0,.65)}
.image-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.image-admin-item{border:1px solid var(--line);border-radius:18px;padding:8px;background:#fff}.image-admin-item img{width:100%;height:130px;object-fit:contain;background:#f8fafc;border-radius:14px}.btn-danger{background:var(--danger-btn);color:#fff}.settings-checks{display:grid;gap:10px;margin:12px 0}.settings-checks label{display:flex;align-items:center;gap:10px;margin:0}.settings-checks input{width:auto}.governorate-form{background:#fbfcfd;border:1px solid var(--line);border-radius:24px;padding:14px}.profile-hero{display:flex;align-items:center;gap:20px;background:linear-gradient(135deg,#fff,#fff9cf)}.profile-avatar-large{width:92px;height:92px;border-radius:28px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-size:42px;font-weight:1000;box-shadow:0 18px 40px rgba(14,28,47,.18)}.profile-hero h1{margin:0 0 8px;font-size:34px;color:var(--navy)}.profile-hero p{margin:0 0 10px;color:var(--muted);font-weight:800}.performance-rings{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.performance-rings div{border:1px solid var(--line);background:#fff;border-radius:24px;padding:18px;text-align:center}.performance-rings strong{display:block;font-size:22px;color:var(--navy);font-weight:1000}.performance-rings span{color:var(--muted);font-weight:800;font-size:13px}.top-list{display:flex;flex-direction:column;gap:10px}.top-list-item{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:20px;background:#fff;text-decoration:none;color:var(--navy)}.top-list-item:hover{border-color:var(--gold);box-shadow:var(--shadow-sm)}.top-list-item div{flex:1}.top-list-item small{display:block;color:var(--muted);font-weight:800}.rank-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--gold);color:var(--navy);font-weight:1000}.dynamic-chart{height:260px}.dynamic-chart i{align-self:flex-end;min-height:8%}.profile-mini-card{background:linear-gradient(135deg,#fff,#f8fafc)}.admin-preview-gallery .gallery-slide img{padding:10px}.product-admin-grid{align-items:start}.preview-card{position:sticky;top:104px}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}.btn-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.muted{color:var(--muted)}
@media (max-width:1280px){.product-grid-premium{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:900px){.product-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-rings{grid-template-columns:1fr}.profile-hero{align-items:flex-start;flex-direction:column}}@media (max-width:620px){.product-grid-premium{grid-template-columns:1fr}.product-gallery{height:230px}.section-heading h2{font-size:24px}.image-admin-grid{grid-template-columns:1fr 1fr}.order-summary-card,.preview-card{position:static}}

/* V4 Comfort Premium polish */
body{background:linear-gradient(180deg,#fbfcfe 0%,#f6f7f9 100%)}
.card,.product-card,.catalog-tools,.table-wrap{transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
.card:hover,.product-card:hover{transform:translateY(-2px);box-shadow:0 18px 45px rgba(14,28,47,.08)}
.premium-product-card{overflow:hidden;border-color:#e7e9ef;box-shadow:0 14px 36px rgba(14,28,47,.06);background:linear-gradient(180deg,#fff,#fbfcfe)}
.premium-product-card:hover{border-color:#d7dce5}.product-body{padding:18px}.product-title{font-size:20px;letter-spacing:-.2px}.product-meta{gap:10px}.price{color:#0e1c2f;font-weight:1000}.product-desc{color:#6b7280}.commission-badge{background:#f5f7fb;color:#0e1c2f;border:1px solid #e6e9ef;box-shadow:none}.sale-ribbon{background:#fff8d1;color:#4e4300;border:1px solid #ffe894;box-shadow:none}.gallery-count{background:rgba(14,28,47,.68)}.gallery-nav{opacity:.82}.gallery-nav:hover{opacity:1;background:#f8fafc}.product-actions{margin-top:14px}.product-actions .btn{flex:1;min-width:120px}.switch-row{display:flex;align-items:center;gap:10px;margin:14px 0 4px;font-weight:900;color:var(--navy)}.switch-row input{width:auto}.payment-instructions{animation:softFade .25s ease}.alert,.badge,.btn,.product-card,.card,.stat-card{animation:softRise .28s ease both}@keyframes softRise{from{opacity:.0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes softFade{from{opacity:0}to{opacity:1}}
.invoice-card{max-width:980px;margin:0 auto 40px;background:#fff;border:1px solid #e3e7ef;border-radius:32px;padding:34px;box-shadow:0 30px 80px rgba(14,28,47,.08)}.invoice-head{display:flex;align-items:start;justify-content:space-between;gap:24px;border-bottom:1px solid #edf0f4;padding-bottom:24px;margin-bottom:24px}.invoice-head h2{margin:10px 0 0;color:var(--navy);font-size:30px}.invoice-head p{margin:4px 0 0;color:var(--muted)}.invoice-code{text-align:left;background:#f8fafc;border:1px solid #e8ecf2;border-radius:22px;padding:16px 18px;min-width:260px}.invoice-code small,.invoice-code span{display:block;color:var(--muted);font-weight:800}.invoice-code strong{display:block;font-size:25px;color:var(--navy);letter-spacing:.4px}.invoice-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.invoice-grid>div{border:1px solid #edf0f4;border-radius:24px;padding:18px;background:#fbfcfe}.invoice-grid h3{margin:0 0 10px;color:var(--navy)}.invoice-grid p{margin:4px 0;color:#334155;font-weight:700}.invoice-table{box-shadow:none;margin-bottom:18px}.invoice-totals{display:flex;justify-content:flex-end}.invoice-totals dl{width:min(420px,100%);display:grid;grid-template-columns:1fr auto;gap:10px;border:1px solid #edf0f4;border-radius:24px;padding:18px;background:#fbfcfe}.invoice-totals dt{color:var(--muted);font-weight:900}.invoice-totals dd{margin:0;font-weight:1000;color:var(--navy)}.invoice-totals dd strong{font-size:22px}.invoice-note{margin-top:18px;border-radius:18px;padding:14px;background:#fff9db;color:#4e4300;font-weight:800}.no-print{}
@media print{.sidebar,.workspace-topbar,.no-print,.public-footer{display:none!important}.workspace{margin:0!important}.main-content{padding:0!important}.invoice-card{box-shadow:none;border:0;margin:0;border-radius:0}.dashboard-body{background:#fff}.table-wrap{overflow:visible}}
@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V4.1 Mobile sidebar drawer */
.mobile-menu-toggle,.sidebar-close,.sidebar-backdrop{display:none}.sidebar-head{display:block}.sidebar-close{width:42px;height:42px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.08);color:#fff;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease}.sidebar-close:hover{background:rgba(255,255,255,.14);transform:translateY(-1px)}.mobile-menu-toggle{width:44px;height:44px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--navy);align-items:center;justify-content:center;box-shadow:var(--shadow-sm);cursor:pointer;transition:.2s ease}.mobile-menu-toggle:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
@media (max-width:760px){body.sidebar-open{overflow:hidden}.mobile-menu-toggle{display:inline-flex;flex:0 0 auto}.workspace-topbar{gap:12px}.workspace-topbar>div:first-of-type{min-width:0}.app-shell{display:block}.sidebar{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:min(84vw,340px)!important;height:100vh!important;display:flex!important;flex-direction:column!important;gap:16px!important;padding:20px 16px!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:1000!important;border-radius:0 0 0 28px;box-shadow:-28px 0 70px rgba(2,12,27,.26);transform:translateX(112%);opacity:.98;visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility .28s ease}.app-shell.sidebar-open .sidebar,body.sidebar-open .sidebar{transform:translateX(0);visibility:visible}.sidebar-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.sidebar .brand,.sidebar-brand{display:flex!important;justify-content:flex-start!important;color:#fff}.sidebar .brand span:not(.brand-mark),.sidebar-title,.sidebar-nav a span,.sidebar-footer a span{display:inline!important}.sidebar-title{display:block!important;margin:0 8px;color:#bac7e1}.sidebar-nav{display:flex!important;flex-direction:column!important;width:100%!important;gap:8px!important;justify-content:flex-start!important}.sidebar-nav a,.sidebar-footer a{justify-content:flex-start!important;min-width:0!important;width:100%!important;padding:13px 14px!important;border-radius:18px}.sidebar-nav a.active{box-shadow:inset -4px 0 0 var(--gold)!important}.sidebar-footer{display:block!important;margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.sidebar-close{display:inline-flex}.sidebar-backdrop{position:fixed;inset:0;background:rgba(8,18,35,.42);backdrop-filter:blur(6px);z-index:999;border:0;opacity:0;visibility:hidden;transition:.24s ease;cursor:pointer}.app-shell.sidebar-open .sidebar-backdrop,body.sidebar-open .sidebar-backdrop{display:block;opacity:1;visibility:visible}.main-content{padding-bottom:28px!important}.topbar-actions{gap:8px}.user-chip span:last-child{display:none}.user-chip{padding:6px;border-radius:16px}.avatar{width:34px;height:34px}.topbar-actions .icon-button:nth-child(1),.topbar-actions .icon-button:nth-child(2){display:none!important}}

/* V5 Blue Figma-style redesign */
:root{
  --surface:#f5f7fb;--surface-low:#eef4ff;--surface-card:#ffffff;--surface-high:#e8eef8;
  --navy:#0f172a;--navy-2:#1e293b;--ink:#111827;--muted:#64748b;--muted-2:#94a3b8;
  --gold:#2563eb;--gold-2:#60a5fa;--gold-dark:#1d4ed8;--line:#e2e8f0;--line-2:#cbd5e1;
  --success:#059669;--success-bg:#ecfdf5;--warning:#b45309;--warning-bg:#fffbeb;--danger:#dc2626;--danger-bg:#fef2f2;--info:#2563eb;--info-bg:#eff6ff;
  --danger-btn:#dc2626;--shadow:0 24px 60px rgba(15,23,42,.09);--shadow-sm:0 10px 28px rgba(15,23,42,.06);
}
body{background:radial-gradient(circle at 18% 0%,rgba(37,99,235,.09),transparent 32%),linear-gradient(180deg,#fbfdff 0%,#f5f7fb 100%);letter-spacing:-.01em}.dashboard-body{background:linear-gradient(180deg,#f7faff,#f4f7fb)}
.brand-mark,.avatar,.rank-badge,.step-no{background:linear-gradient(135deg,#2563eb,#60a5fa)!important;color:#fff!important;box-shadow:0 14px 34px rgba(37,99,235,.25)!important}.btn-accent,.commission-badge,.sale-ribbon{background:linear-gradient(135deg,#2563eb,#3b82f6)!important;color:#fff!important;box-shadow:0 16px 34px rgba(37,99,235,.22)!important}.btn{box-shadow:0 12px 26px rgba(15,23,42,.14)}.btn:hover{transform:translateY(-2px)}.btn-secondary,.btn-ghost{background:rgba(255,255,255,.92);border-color:#dbe5f1;color:#0f172a}.btn-secondary:hover{border-color:#93c5fd;background:#fff;box-shadow:0 16px 36px rgba(37,99,235,.12)}
.sidebar{background:linear-gradient(180deg,#0f172a,#111c34)!important}.sidebar-nav a.active{background:rgba(37,99,235,.18)!important;box-shadow:inset -4px 0 0 #60a5fa!important}.workspace-topbar{background:rgba(255,255,255,.78)!important;border-color:rgba(226,232,240,.85)}.card,.stat-card,.product-card,.auth-card,.table-wrap{border-color:rgba(226,232,240,.9)!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(15,23,42,.07)!important}.card:hover,.premium-product-card:hover{box-shadow:0 28px 70px rgba(15,23,42,.10)!important}.product-card:hover:after{display:none!important}.premium-product-card{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}.premium-product-card:hover{border-color:#bfdbfe!important}.product-title,.page-title h1,.card h2{letter-spacing:-.03em}.price{color:#0f172a}.old-price{color:#94a3b8}.sparkline i,.timeline-dot{background:#60a5fa!important}.stat-card:after{background:linear-gradient(135deg,rgba(37,99,235,.18),rgba(219,234,254,.65))!important}.wallet-hero{background:linear-gradient(135deg,#0f172a,#1d4ed8)!important}.wallet-hero:after,.hero-visual:before{background:#3b82f6!important;opacity:.45!important}.wallet-hero strong,.hero-metrics strong{color:#bfdbfe!important}.admin-chart i{background:linear-gradient(180deg,#60a5fa,#2563eb)!important}.profile-hero{background:linear-gradient(135deg,#fff,#eff6ff)!important}.profile-avatar-large{color:#fff!important;background:linear-gradient(135deg,#2563eb,#60a5fa)!important}.top-list-item:hover{border-color:#93c5fd!important}.mobile-menu-toggle{border-color:#dbe5f1;background:#fff;color:#2563eb}.upload-zone{background:#f8fbff;border-color:#bfdbfe}.payment-instructions{background:#eff6ff!important;border-color:#bfdbfe!important;color:#1e3a8a!important}
@keyframes softRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.main-content>.page-title,.main-content>.card,.stats-grid,.product-section,.grid>.card,.table-wrap{animation:softRise .45s ease both}.product-card{animation:softRise .45s ease both}.product-grid .product-card:nth-child(2){animation-delay:.04s}.product-grid .product-card:nth-child(3){animation-delay:.08s}.product-grid .product-card:nth-child(4){animation-delay:.12s}
.manufacturer-mini{display:inline-flex;align-items:center;gap:8px;margin:6px 0 10px;color:#2563eb;font-weight:900;font-size:13px}.manufacturer-mini img{width:26px;height:26px;border-radius:9px;object-fit:cover;border:1px solid #dbeafe}.manufacturer-profile-strip{display:flex;align-items:center;gap:12px;border:1px solid #dbeafe;background:#f8fbff;border-radius:22px;padding:12px;margin:18px 0;color:#0f172a}.manufacturer-profile-strip img{width:52px;height:52px;border-radius:18px;object-fit:cover}.manufacturer-profile-strip small{display:block;color:#64748b;font-weight:800}.manufacturer-logo-big{width:112px;height:112px;border-radius:30px;object-fit:contain;background:#f8fbff;border:1px solid #dbeafe;padding:10px;margin-bottom:18px}.manufacturer-logo-big.placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#2563eb;font-weight:1000}.manufacturer-hero{display:flex;align-items:center;gap:22px}.manufacturer-hero h1{margin:0;color:#0f172a}.manufacturer-hero p{margin:6px 0 0;color:#64748b}.manufacturer-preview{text-align:center}.manufacturer-preview .manufacturer-logo-big{margin-inline:auto}.product-detail-grid{align-items:start}.product-detail-media .product-gallery{height:520px}.detail-gallery .gallery-slide img{width:100%;height:100%;object-fit:contain;background:#f8fbff}.product-detail-info h2{font-size:36px;margin:0 0 12px;color:#0f172a}.details-list{display:grid;grid-template-columns:160px 1fr;gap:10px 16px}.details-list dt{font-weight:900;color:#64748b}.details-list dd{margin:0;color:#0f172a;font-weight:800}.inline-ribbon{position:static!important;margin-bottom:12px}
.support-layout{align-items:start}.support-thread{min-height:520px}.support-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e8f0;padding-bottom:16px;margin-bottom:16px}.support-head h2{margin:0}.support-head p{margin:6px 0 0;color:#64748b;font-weight:800}.chat-thread{display:flex;flex-direction:column;gap:12px;max-height:540px;overflow:auto;padding:6px}.chat-bubble{max-width:78%;border-radius:22px;padding:14px 16px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.05)}.chat-bubble.mine{margin-right:auto;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border-color:#2563eb}.chat-bubble.theirs{margin-left:auto;background:#f8fbff}.chat-bubble p{margin:6px 0}.chat-bubble small{opacity:.72;font-weight:700}.reply-box{display:grid;gap:12px;margin-top:16px}.reply-box textarea{min-height:110px}.compact-form{display:grid;gap:10px;margin-top:18px}.support-layout .table-wrap{box-shadow:none!important}
@media(max-width:980px){.product-detail-media .product-gallery{height:360px}.manufacturer-hero{align-items:flex-start}.support-layout{grid-template-columns:1fr!important}.chat-bubble{max-width:92%}}

/* V6 Figma-like calm blue refinement */
:root{
  --gold:#2563eb;--gold-2:#60a5fa;--gold-dark:#1e40af;
  --surface:#f6f8fc;--surface-low:#eef4ff;--surface-high:#e7eefc;
  --navy:#0f172a;--navy-2:#172033;--line:#e2e8f0;--line-2:#cbd5e1;
  --shadow:0 22px 55px rgba(15,23,42,.09);--shadow-sm:0 10px 26px rgba(15,23,42,.055);
}
.brand-mark,.avatar,.commission-badge,.step-no,.btn-accent{background:linear-gradient(135deg,#2563eb,#60a5fa)!important;color:#fff!important;box-shadow:0 16px 34px rgba(37,99,235,.24)!important}
.hero-kicker b,.hero-visual:before,.wallet-hero:after{background:#2563eb!important}.hero-metrics strong,.wallet-hero strong{color:#bfdbfe!important}
.sidebar-nav a.active{box-shadow:inset -4px 0 0 #60a5fa!important}.timeline-dot{background:#2563eb!important;box-shadow:0 0 0 6px rgba(37,99,235,.16)!important}.admin-chart i{background:linear-gradient(180deg,#2563eb,#93c5fd)!important}
.product-card:hover:after{display:none!important}.product-card,.card,.auth-card{border-color:rgba(226,232,240,.92)!important}.product-card:hover,.card:hover{box-shadow:0 18px 48px rgba(15,23,42,.085)}
.sale-ribbon{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important}.old-price{color:#64748b}.readonly-note{display:inline-flex;align-items:center;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:10px 14px;font-weight:900}
.selected-product-lock{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #bfdbfe;border-radius:22px;padding:14px 16px;margin-bottom:14px;color:#0f172a;box-shadow:0 10px 26px rgba(37,99,235,.08)}.selected-product-lock>span{width:42px;height:42px;border-radius:16px;background:#2563eb;color:#fff;display:grid;place-items:center}.selected-product-lock strong{display:block;font-size:16px}.selected-product-lock small{display:block;color:#64748b;font-weight:800;margin-top:2px}.public-product-view{max-width:1180px;margin-inline:auto}.public-product-view .btn-row{margin-top:20px}
.guide-pills{margin-bottom:22px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.guide-card{overflow:hidden;padding:0}.video-frame{position:relative;aspect-ratio:16/9;background:#0f172a;border-radius:24px 24px 0 0;overflow:hidden}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.guide-body{padding:20px}.guide-chip{display:inline-flex;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;margin-bottom:10px}.guide-body h2{margin:0 0 8px;color:#0f172a}.guide-body p{margin:0;color:#64748b}.guide-category-hero{margin-bottom:20px;background:linear-gradient(135deg,#eff6ff,#fff)}
.btn,.icon-button,.product-card,.card,.sidebar-nav a,input,select,textarea{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease}.btn:hover{transform:translateY(-2px)}input:focus,select:focus,textarea:focus{outline:0;border-color:#60a5fa!important;box-shadow:0 0 0 4px rgba(37,99,235,.12)!important}.main-content>.page-title,.main-content>.card,.stats-grid,.product-section,.grid>.card,.table-wrap,.guide-card{animation:softRise .42s cubic-bezier(.2,.7,.2,1) both}
@media(max-width:980px){.guide-grid{grid-template-columns:1fr}.selected-product-lock{align-items:flex-start}.public-product-view{grid-template-columns:1fr!important}}

/* Registration live catalog */
.registration-catalog{max-width:1280px;margin:0 auto;padding-top:18px}.registration-category{margin:0 0 34px}.compact-heading{align-items:center;margin-bottom:14px}.compact-heading h2{font-size:24px}.registration-product-image{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f8fafc;display:block}.registration-product-image.placeholder{display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:900}.public-product-preview .product-meta{flex-wrap:wrap}.public-product-preview .product-desc{min-height:44px}@media(max-width:1100px){.registration-catalog .product-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.registration-catalog{padding-left:16px;padding-right:16px}.registration-catalog .product-grid-premium{grid-template-columns:1fr}}

/* Homepage commerce illustration */
.hero-commerce-visual{display:grid;place-items:center;isolation:isolate;min-height:520px;padding:32px}
.hero-commerce-visual:before{display:none}
.commerce-scene{position:relative;width:min(100%,510px);aspect-ratio:1/1;display:grid;place-items:center}
.commerce-glow{position:absolute;border-radius:999px;filter:blur(18px);opacity:.65;pointer-events:none}
.commerce-glow-one{width:210px;height:210px;top:-70px;left:-55px;background:#2563eb}
.commerce-glow-two{width:170px;height:170px;right:-40px;bottom:-55px;background:#60a5fa;opacity:.34}
.commerce-orbit{position:absolute;border:1px dashed rgba(191,219,254,.34);border-radius:50%;pointer-events:none}
.commerce-orbit-one{inset:12%}
.commerce-orbit-two{inset:25%;border-style:solid;border-color:rgba(255,255,255,.10)}
.commerce-core{position:relative;z-index:3;width:170px;height:170px;border-radius:42px;background:linear-gradient(145deg,#fff,#eef5ff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 28px 70px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.82)}
.commerce-core-icon{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff;box-shadow:0 18px 38px rgba(37,99,235,.32);margin-bottom:11px}
.commerce-core-icon .material-symbols-outlined{font-size:34px}
.commerce-core strong{font-size:25px;color:#0f172a;line-height:1.1}
.commerce-core>span{font-size:12px;color:#64748b;font-weight:800;margin-top:7px}
.commerce-node{position:absolute;z-index:4;display:flex;align-items:center;gap:11px;min-width:150px;padding:12px 14px;border-radius:19px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.7);box-shadow:0 18px 45px rgba(0,0,0,.18);backdrop-filter:blur(12px)}
.commerce-node>.material-symbols-outlined{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#eff6ff;color:#2563eb;font-size:23px;flex:none}
.commerce-node strong,.commerce-node small{display:block}
.commerce-node strong{font-size:15px;color:#0f172a}
.commerce-node small{font-size:11px;color:#64748b;margin-top:2px;font-weight:700}
.commerce-node-products{top:5%;right:5%}
.commerce-node-marketer{top:19%;left:0}
.commerce-node-orders{right:0;bottom:17%}
.commerce-node-wallet{left:5%;bottom:3%}
.commerce-success{position:absolute;z-index:5;top:3%;left:31%;display:flex;align-items:center;gap:8px;background:#0f172a;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:17px;padding:9px 12px;box-shadow:0 16px 36px rgba(0,0,0,.22)}
.commerce-success>.material-symbols-outlined{color:#93c5fd;font-size:24px}
.commerce-success small,.commerce-success strong{display:block}
.commerce-success small{font-size:10px;color:#cbd5e1}
.commerce-success strong{font-size:16px;color:#fff;margin-top:1px}
@media(max-width:960px){.hero-commerce-visual{min-height:460px}.commerce-scene{max-width:460px}}
@media(max-width:520px){.hero-commerce-visual{padding:20px;min-height:420px}.commerce-core{width:140px;height:140px;border-radius:34px}.commerce-node{min-width:126px;padding:9px 10px;gap:8px}.commerce-node>.material-symbols-outlined{width:36px;height:36px;font-size:20px}.commerce-node strong{font-size:13px}.commerce-node small{font-size:10px}.commerce-node-marketer{left:-4%}.commerce-node-orders{right:-3%}.commerce-success{left:25%}}

/* V10 product workflow and accessible gallery lightbox */
.category-field{grid-column:span 2}.category-suggestions{margin-top:10px}.category-suggestions>small{display:block;margin-bottom:8px;color:#64748b;font-weight:800}.category-suggestion-list{display:flex;flex-wrap:wrap;gap:8px}.category-suggestion{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:7px 11px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;transition:.2s ease}.category-suggestion:hover,.category-suggestion:focus-visible{background:#dbeafe;border-color:#60a5fa;transform:translateY(-1px)}
.markup-field small{display:block;margin-top:6px}.field-error{margin-top:8px;padding:9px 11px;border-radius:12px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:13px;font-weight:900}.input-invalid{border-color:#ef4444!important;box-shadow:0 0 0 4px rgba(239,68,68,.12)!important}
.gallery-image-button{position:relative;width:100%;height:100%;display:grid;place-items:center;border:0;padding:0;background:#fff;cursor:zoom-in;overflow:hidden}.gallery-image-button img{width:100%;height:100%;object-fit:contain!important;padding:8px;background:#fff}.gallery-zoom-hint{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:11px;font-weight:900;opacity:0;transform:translateY(4px);transition:.2s ease}.gallery-image-button:hover .gallery-zoom-hint,.gallery-image-button:focus-visible .gallery-zoom-hint{opacity:1;transform:none}
.product-lightbox{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;padding:24px}.product-lightbox[hidden]{display:none}.product-lightbox-backdrop{position:absolute;inset:0;background:rgba(2,8,23,.78);backdrop-filter:blur(8px)}.product-lightbox-card{position:relative;z-index:1;width:min(1100px,94vw);height:min(820px,90vh);display:grid;grid-template-rows:auto 1fr auto;background:#fff;border-radius:28px;box-shadow:0 32px 100px rgba(0,0,0,.45);overflow:hidden}.product-lightbox-head,.product-lightbox-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e2e8f0}.product-lightbox-foot{border-bottom:0;border-top:1px solid #e2e8f0}.product-lightbox-title{margin:0;font-size:15px;color:#0f172a}.product-lightbox-close,.product-lightbox-nav{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe5f1;background:#fff;color:#0f172a;border-radius:14px;cursor:pointer;font:inherit;font-weight:900}.product-lightbox-close{width:40px;height:40px;font-size:22px}.product-lightbox-nav{padding:10px 16px;gap:6px}.product-lightbox-stage{min-height:0;display:grid;place-items:center;background:#f8fafc;padding:18px}.product-lightbox-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.product-lightbox-counter{color:#64748b;font-weight:900;font-size:13px}.product-lightbox-nav[disabled]{opacity:.35;cursor:not-allowed}.lightbox-open{overflow:hidden}
@media(max-width:760px){.category-field{grid-column:auto}.product-lightbox{padding:10px}.product-lightbox-card{width:100%;height:88vh;border-radius:22px}.product-lightbox-stage{padding:8px}.gallery-zoom-hint{opacity:1}.product-lightbox-nav{padding:9px 12px;font-size:13px}}

/* V11: uncropped product media and looping galleries */
.product-gallery{
  height:auto!important;
  min-height:0;
  aspect-ratio:4 / 3;
  background:#fff;
}
.product-gallery .gallery-track{
  height:100%;
  overflow:hidden;
  scroll-snap-type:none;
}
.product-gallery .gallery-slide{
  flex:0 0 100%;
  width:100%;
  min-width:100%;
  height:100%;
  transition:transform .32s ease;
}
.product-gallery .gallery-image-button{
  padding:0;
  background:#fff;
}
.product-gallery .gallery-image-button img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center;
  padding:12px;
  background:#fff;
}
.catalog-gallery{height:auto!important;aspect-ratio:4 / 3}
.summary-gallery{height:auto!important;aspect-ratio:4 / 3}
.admin-preview-gallery{height:auto!important;aspect-ratio:4 / 3}
.product-detail-media .product-gallery{
  height:min(72vh,760px)!important;
  min-height:420px;
  aspect-ratio:auto;
}
.gallery-nav{display:grid;place-items:center}
.gallery-nav:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:3px}
.product-lightbox-stage{overflow:hidden}
.product-lightbox-stage img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center;
}
@media(max-width:760px){
  .product-gallery{aspect-ratio:1 / 1}
  .product-detail-media .product-gallery{height:62vh!important;min-height:340px;aspect-ratio:auto}
  .product-gallery .gallery-image-button img{padding:8px}
}

/* V12: compact product cards and reliable full-screen gallery */
.product-grid-premium{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.premium-product-card{
  display:flex;
  flex-direction:column;
  min-height:0;
  border-radius:26px;
  overflow:hidden;
  background:#fff;
}
.premium-product-card .product-gallery{
  flex:none;
  aspect-ratio:16 / 11;
  border-bottom:1px solid #e8eef6;
}
.premium-product-card .gallery-track,
.premium-product-card .gallery-slide,
.premium-product-card .gallery-image-button{
  width:100%;
  height:100%;
}
.gallery-slide[hidden]{display:none!important}
.premium-product-card .gallery-image-button img{
  width:100%;
  height:100%;
  padding:8px;
  object-fit:contain!important;
  object-position:center;
  background:#fff;
}
.premium-product-card .product-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px;
}
.premium-product-card .commission-badge{
  align-self:flex-start;
  margin:0;
}
.premium-product-card .manufacturer-mini{
  margin:0;
  min-height:26px;
}
.premium-product-card .product-title{
  min-height:0;
  margin:0;
  font-size:18px;
  line-height:1.45;
  -webkit-line-clamp:2;
}
.premium-product-card .product-meta{
  margin:0;
  padding-top:2px;
  align-items:center;
}
.premium-product-card .price{font-size:20px}
.premium-product-card .old-price{margin:-5px 0 0}
.premium-product-card .product-desc{
  min-height:0;
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.65;
}
.premium-product-card .product-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:4px;
}
.premium-product-card .product-actions .btn{
  width:100%;
  min-height:44px;
  padding:10px 12px;
}
.premium-product-card .product-actions .btn:nth-child(3){grid-column:1 / -1}
.gallery-nav{
  width:38px;
  height:38px;
  font-size:26px;
  z-index:8;
}
.gallery-count{z-index:8}
.gallery-image-button{z-index:2}
.gallery-image-button:focus-visible{
  outline:4px solid rgba(37,99,235,.25);
  outline-offset:-4px;
}
.gallery-zoom-hint{
  opacity:1;
  transform:none;
  background:rgba(15,23,42,.76);
}
.product-lightbox{
  padding:18px;
}
.product-lightbox-card{
  width:min(1180px,96vw);
  height:min(900px,94vh);
  border-radius:26px;
  grid-template-rows:auto minmax(0,1fr) auto;
}
.product-lightbox-head{
  direction:rtl;
  padding:12px 16px;
}
.product-lightbox-head strong,
.product-lightbox-head small{display:block}
.product-lightbox-head small{margin-top:2px;color:#64748b;font-size:12px}
.product-lightbox-stage{
  position:relative;
  min-height:0;
  padding:16px 64px;
  background:#f5f7fb;
  overflow:hidden;
}
.product-lightbox-stage img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center;
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}
.product-lightbox-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:46px;
  height:46px;
  border:1px solid #dbe5f1;
  border-radius:50%;
  background:#fff;
  color:#0f172a;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.16);
}
.product-lightbox-arrow.prev{right:10px}
.product-lightbox-arrow.next{left:10px}
.product-lightbox-foot{
  direction:rtl;
  color:#64748b;
  font-size:12px;
}
.product-lightbox-counter{font-size:14px;color:#0f172a}

.summary-gallery{
  aspect-ratio:16 / 10!important;
  margin-bottom:14px;
}
.product-detail-media .product-gallery{
  height:min(70vh,720px)!important;
}

@media(max-width:1180px){
  .product-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .product-grid-premium{grid-template-columns:1fr;gap:16px}
  .premium-product-card{border-radius:22px}
  .premium-product-card .product-gallery{aspect-ratio:16 / 10}
  .premium-product-card .product-body{padding:14px;gap:9px}
  .premium-product-card .product-title{font-size:17px}
  .premium-product-card .product-desc{display:none}
  .premium-product-card .product-actions{grid-template-columns:1fr 1fr}
  .product-lightbox{padding:0}
  .product-lightbox-card{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .product-lightbox-stage{padding:8px 48px}
  .product-lightbox-stage img{border-radius:12px}
  .product-lightbox-arrow{width:38px;height:38px;font-size:27px}
  .product-lightbox-head small,.product-lightbox-foot span:last-child{display:none}
  .summary-gallery{aspect-ratio:16 / 10!important}
}
