/* =====================================================================
   YallaDaz Design System  ·  "Send it" — يلا دز
   Ink #0A1435 · Daz Coral #F25C05 · Tigris Teal #0FA3A3 · Sun #FFC145
   Uses CSS logical properties so one stylesheet serves RTL (ar, ku) and LTR (en).
   ===================================================================== */
:root {
  --yd-ink: #0A1435;
  --yd-ink-2: #1C2A5E;
  --yd-ink-soft: #5B5A7A;
  --yd-muted: #8A89A6;
  --yd-coral: #F25C05;
  --yd-coral-600: #D24D00;
  --yd-coral-50: #FFF1E8;
  --yd-teal: #0FA3A3;
  --yd-teal-50: #E6F6F6;
  --yd-sun: #FFC145;
  --yd-sun-50: #FFF7E3;
  --yd-success: #1E9E6A;
  --yd-danger: #D93A3A;
  --yd-bg: #F6F5FB;
  --yd-surface: #FFFFFF;
  --yd-line: #E8E7F1;
  --yd-radius: 16px;
  --yd-radius-sm: 10px;
  --yd-shadow-sm: 0 1px 2px rgba(10, 20, 53, .06), 0 1px 3px rgba(10, 20, 53, .05);
  --yd-shadow: 0 6px 24px -8px rgba(10, 20, 53, .16);
  --yd-shadow-lg: 0 24px 48px -16px rgba(10, 20, 53, .25);
  --yd-font: "Vazirmatn", "Noto Sans Arabic", system-ui, sans-serif;
  --yd-font-ltr: "Inter", "Vazirmatn", system-ui, sans-serif;
  --bs-primary: var(--yd-coral);
  --bs-primary-rgb: 242, 92, 5;
  --bs-body-color: var(--yd-ink);
  --bs-body-bg: var(--yd-bg);
  --bs-border-color: var(--yd-line);
  --bs-link-color: var(--yd-ink);
  --bs-link-hover-color: var(--yd-coral);
}

html[dir="ltr"] body { font-family: var(--yd-font-ltr); }
body {
  font-family: var(--yd-font);
  background: var(--yd-bg);
  color: var(--yd-ink);
  -webkit-font-smoothing: antialiased;
  font-size: .95rem;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--yd-coral); }
img { max-width: 100%; }
.num, .price, .yd-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
::selection { background: var(--yd-coral); color: #fff; }

/* ------------------------------------------------------------- buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.25rem; transition: all .18s ease; }
.btn-sm { padding: .38rem .9rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-primary, .btn-yd { background: var(--yd-coral); border-color: var(--yd-coral); color: #fff; }
.btn-primary:hover, .btn-yd:hover, .btn-primary:focus { background: var(--yd-coral-600); border-color: var(--yd-coral-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(242, 92, 5, .6); }
.btn-ink { background: var(--yd-ink); color: #fff; border-color: var(--yd-ink); }
.btn-ink:hover { background: var(--yd-ink-2); color: #fff; }
.btn-outline-ink { border: 1.5px solid var(--yd-ink); color: var(--yd-ink); background: transparent; }
.btn-outline-ink:hover { background: var(--yd-ink); color: #fff; }
.btn-soft { background: var(--yd-coral-50); color: var(--yd-coral-600); border: 0; }
.btn-soft:hover { background: var(--yd-coral); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--yd-line); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }

/* ------------------------------------------------------------- forms */
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--yd-line); padding: .65rem .9rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--yd-coral); box-shadow: 0 0 0 4px rgba(242, 92, 5, .12); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--yd-ink-soft); margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--yd-coral); border-color: var(--yd-coral); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(242, 92, 5, .15); border-color: var(--yd-coral); }
.invalid-feedback { font-size: .8rem; }

/* ------------------------------------------------------------- header */
.yd-topbar { background: var(--yd-ink); color: #CFCDE6; font-size: .8rem; position: relative; z-index: 1045; /* above the sticky header so its menus are never covered */ }
.yd-topbar a { color: #CFCDE6; }
.yd-topbar a:hover { color: #fff; }
.yd-topbar .container { min-height: 36px; }
.yd-header { background: #fff; border-bottom: 1px solid var(--yd-line); position: sticky; top: 0; z-index: 1030; }
.yd-header .container { min-height: 76px; }
.yd-logo { display: inline-flex; align-items: center; line-height: 0; }
.yd-logo img { height: 50px; width: auto; max-width: 100%; }
@media (max-width: 575.98px) { .yd-logo img { height: 40px; } }

.yd-search { flex: 1; max-width: 720px; position: relative; }
.yd-search form { display: flex; background: var(--yd-bg); border: 2px solid transparent; border-radius: 999px; transition: .2s; overflow: hidden; }
.yd-search form:focus-within { border-color: var(--yd-coral); background: #fff; box-shadow: var(--yd-shadow); }
.yd-search select { border: 0; background: transparent; max-width: 150px; font-size: .85rem; padding-inline: 1rem .5rem; color: var(--yd-ink-soft); border-inline-end: 1px solid var(--yd-line); }
.yd-search input { flex: 1; border: 0; background: transparent; padding: .75rem 1rem; outline: 0; min-width: 0; }
.yd-search button { border: 0; background: var(--yd-coral); color: #fff; padding-inline: 1.3rem; font-size: 1.1rem; }
.yd-suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-lg); padding: .5rem; display: none; z-index: 1050; max-height: 70vh; overflow: auto; }
.yd-suggest.show { display: block; }
.yd-suggest .s-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .65rem; border-radius: 10px; }
.yd-suggest .s-item:hover, .yd-suggest .s-item.active { background: var(--yd-bg); }
.yd-suggest .s-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.yd-suggest .s-label { font-size: .72rem; color: var(--yd-muted); padding: .4rem .65rem 0; text-transform: uppercase; letter-spacing: .5px; }
.yd-suggest .s-chip { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--yd-bg); margin: .2rem; font-size: .85rem; }

.yd-hicon { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .6rem; border-radius: 12px; position: relative; color: var(--yd-ink); white-space: nowrap; }
.yd-hicon:hover { background: var(--yd-bg); color: var(--yd-ink); }
.yd-hicon i { font-size: 1.35rem; }
.yd-hicon small { display: block; font-size: .7rem; color: var(--yd-muted); line-height: 1; }
.yd-hicon b { font-size: .85rem; line-height: 1.2; }
.yd-badge-count { position: absolute; top: 0; inset-inline-start: 20px; background: var(--yd-coral); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }

.yd-nav { background: #fff; border-bottom: 1px solid var(--yd-line); }
.yd-nav .nav-scroll { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; align-items: center; min-height: 48px; }
.yd-nav .nav-scroll::-webkit-scrollbar { display: none; }
.yd-nav a { padding: .55rem .85rem; border-radius: 10px; font-weight: 600; font-size: .88rem; white-space: nowrap; color: var(--yd-ink-soft); }
.yd-nav a:hover, .yd-nav a.active { background: var(--yd-bg); color: var(--yd-ink); }
.yd-nav a.yd-nav-all { background: var(--yd-ink); color: #fff; }
.yd-nav a.yd-nav-hot { color: var(--yd-coral); }
.yd-nav a.yd-nav-official { color: var(--yd-teal); }

/* mega menu */
.yd-mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; box-shadow: var(--yd-shadow-lg); display: none; z-index: 1040; border-top: 1px solid var(--yd-line); }
.yd-mega.show { display: block; }
.yd-mega .mega-col a { display: block; padding: .3rem 0; font-weight: 400; color: var(--yd-ink-soft); background: none; }
.yd-mega .mega-col a.parent { font-weight: 700; color: var(--yd-ink); }
.yd-mega .mega-col a:hover { color: var(--yd-coral); background: none; }

/* ------------------------------------------------------------- sections */
.yd-section { margin: 2rem 0; }
.yd-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.yd-section-head h2 { font-weight: 800; font-size: 1.35rem; margin: 0; letter-spacing: -.3px; }
.yd-section-head p { margin: .15rem 0 0; color: var(--yd-muted); font-size: .88rem; }
.yd-section-head .more { font-weight: 700; color: var(--yd-coral); font-size: .9rem; white-space: nowrap; }
.yd-panel { background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-sm); padding: 1.25rem; }
.yd-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.yd-panel-head h3, .yd-panel-head h5 { font-weight: 800; margin: 0; font-size: 1.05rem; }

/* hero */
.yd-hero { border-radius: 24px; overflow: hidden; position: relative; min-height: 320px; background: linear-gradient(120deg, var(--yd-ink) 0%, var(--yd-ink-2) 55%, #3D2C6E 100%); color: #fff; }
.yd-hero .hero-slide { display: none; min-height: 320px; padding: 2.5rem; align-items: center; background-size: cover; background-position: center; position: relative; }
.yd-hero .hero-slide.active { display: flex; animation: ydFade .5s ease; }
.yd-hero .hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,53,.75), rgba(10,20,53,.1)); }
html[dir="rtl"] .yd-hero .hero-slide::after { background: linear-gradient(270deg, rgba(10,20,53,.75), rgba(10,20,53,.1)); }
.yd-hero .hero-content { position: relative; z-index: 2; max-width: 540px; }
.yd-hero h1, .yd-hero h2 { font-weight: 900; font-size: clamp(1.7rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -.5px; }
.yd-hero p { color: #D9D7EE; font-size: 1.05rem; }
.yd-hero .hero-dots { position: absolute; bottom: 1rem; inset-inline-start: 2.5rem; z-index: 3; display: flex; gap: .4rem; }
.yd-hero .hero-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255,255,255,.4); transition: .3s; padding: 0; }
.yd-hero .hero-dots button.active { width: 28px; background: var(--yd-coral); }
.yd-hero-default { display: flex; align-items: center; min-height: 320px; padding: 2.5rem; position: relative; }
.yd-hero-default .deco { position: absolute; inset-inline-end: -30px; bottom: -50px; width: 300px; opacity: .22; pointer-events: none; }
.yd-hero-default .deco-2 { position: absolute; inset-inline-end: 40px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--yd-sun); opacity: .35; pointer-events: none; }
.yd-hero-side { border-radius: 20px; padding: 1.4rem; height: 100%; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.yd-hero-side.coral { background: var(--yd-coral); color: #fff; }
.yd-hero-side.teal { background: var(--yd-teal); color: #fff; }
.yd-hero-side.sun { background: var(--yd-sun); color: var(--yd-ink); }
.yd-hero-side h3 { font-weight: 800; font-size: 1.2rem; margin: 0; }
.yd-hero-side i.big { position: absolute; inset-inline-end: -10px; bottom: -18px; font-size: 6rem; opacity: .2; }

/* value props strip */
.yd-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--yd-line); border-radius: var(--yd-radius); overflow: hidden; }
.yd-props > div { background: #fff; padding: 1rem; display: flex; gap: .75rem; align-items: center; }
.yd-props i { font-size: 1.5rem; color: var(--yd-coral); width: 44px; height: 44px; display: grid; place-items: center; background: var(--yd-coral-50); border-radius: 12px; flex: none; }
.yd-props b { display: block; font-size: .9rem; }
.yd-props small { color: var(--yd-muted); font-size: .78rem; }

/* category tiles */
.yd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .75rem; }
.yd-cat { background: #fff; border-radius: var(--yd-radius); padding: 1rem .5rem; text-align: center; transition: .2s; box-shadow: var(--yd-shadow-sm); }
.yd-cat:hover { transform: translateY(-3px); box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-cat .ic { width: 58px; height: 58px; margin: 0 auto .6rem; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--yd-bg); color: var(--yd-ink); transition: .2s; }
.yd-cat:hover .ic { background: var(--yd-coral); color: #fff; }
.yd-cat img.ic { object-fit: cover; padding: 0; }
.yd-cat span { font-size: .82rem; font-weight: 600; display: block; line-height: 1.3; }

/* ------------------------------------------------------------- product card */
.yd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.yd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 210px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.yd-rail > * { scroll-snap-align: start; }
.yd-card { background: #fff; border-radius: var(--yd-radius); overflow: hidden; position: relative; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; box-shadow: var(--yd-shadow-sm); }
.yd-card:hover { transform: translateY(-4px); box-shadow: var(--yd-shadow); }
.yd-card .media { aspect-ratio: 1/1; background: #F4F3F9; position: relative; overflow: hidden; display: block; }
.yd-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yd-card:hover .media img { transform: scale(1.05); }
.yd-card .tags { position: absolute; top: .6rem; inset-inline-start: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; z-index: 2; }
.yd-card .wish { position: absolute; top: .55rem; inset-inline-end: .55rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; display: grid; place-items: center; color: var(--yd-ink-soft); box-shadow: var(--yd-shadow-sm); transition: .2s; }
.yd-card .wish:hover, .yd-card .wish.on { color: var(--yd-coral); transform: scale(1.08); }
.yd-card .wish.on i::before { content: "\f415"; }
.yd-card .body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.yd-card .title { font-size: .88rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; color: var(--yd-ink); }
.yd-card .seller { font-size: .74rem; color: var(--yd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yd-card .price-row { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.yd-card .price { font-weight: 800; font-size: 1.05rem; color: var(--yd-ink); }
.yd-card .old { font-size: .78rem; color: var(--yd-muted); text-decoration: line-through; }
.yd-card .add { position: absolute; bottom: .9rem; inset-inline-end: .85rem; width: 36px; height: 36px; border-radius: 50%; background: var(--yd-ink); color: #fff; border: 0; display: grid; place-items: center; transition: .2s; }
.yd-card .add:hover { background: var(--yd-coral); transform: scale(1.08); }
.yd-card .meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--yd-muted); }
.yd-card.oos .media::after { content: attr(data-oos); position: absolute; inset: auto 0 0 0; background: rgba(10,20,53,.75); color: #fff; text-align: center; font-size: .78rem; padding: .3rem; }

.yd-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; line-height: 1.2; }
.yd-tag-off { background: var(--yd-coral); color: #fff; }
.yd-tag-official { background: var(--yd-ink); color: #fff; }
.yd-tag-official i { color: var(--yd-teal); }
.yd-tag-flash { background: var(--yd-sun); color: var(--yd-ink); }
.yd-tag-free { background: var(--yd-teal-50); color: var(--yd-teal); }
.yd-tag-new { background: var(--yd-teal); color: #fff; }

.yd-stars { color: var(--yd-sun); font-size: .78rem; letter-spacing: 1px; white-space: nowrap; }
.yd-stars .n { color: var(--yd-muted); letter-spacing: 0; margin-inline-start: .2rem; }

/* official badge (large) */
.yd-official-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--yd-ink); color: #fff; padding: .35rem .8rem .35rem .45rem; border-radius: 999px; font-weight: 700; font-size: .82rem; }
html[dir="rtl"] .yd-official-badge { padding: .35rem .45rem .35rem .8rem; }
.yd-official-badge .seal { width: 22px; height: 22px; border-radius: 50%; background: var(--yd-teal); display: grid; place-items: center; font-size: .75rem; }

/* flash deals strip */
.yd-flash { background: linear-gradient(110deg, var(--yd-coral) 0%, #FF7A4D 100%); border-radius: 24px; padding: 1.4rem; color: #fff; }
.yd-flash .yd-section-head h2 { color: #fff; }
.yd-flash .yd-section-head .more { color: #fff; }
.yd-countdown { display: inline-flex; gap: .3rem; direction: ltr; }
.yd-countdown span { background: var(--yd-ink); color: #fff; border-radius: 8px; padding: .25rem .5rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.2rem; text-align: center; }

/* seller cards */
.yd-seller-card { background: #fff; border-radius: var(--yd-radius); overflow: hidden; box-shadow: var(--yd-shadow-sm); transition: .2s; display: block; }
.yd-seller-card:hover { transform: translateY(-3px); box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-seller-card .cover { height: 74px; background: linear-gradient(120deg, var(--yd-ink), var(--yd-ink-2)); background-size: cover; background-position: center; }
.yd-seller-card .logo { width: 60px; height: 60px; border-radius: 16px; border: 3px solid #fff; background: #fff; margin: -30px auto 0; display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--yd-coral); font-size: 1.4rem; box-shadow: var(--yd-shadow-sm); }
.yd-seller-card .logo img { width: 100%; height: 100%; object-fit: cover; }

/* brand tiles */
.yd-brand { background: #fff; border-radius: var(--yd-radius); height: 84px; display: grid; place-items: center; padding: .75rem; box-shadow: var(--yd-shadow-sm); font-weight: 800; color: var(--yd-ink-soft); transition: .2s; }
.yd-brand:hover { box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-brand img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.yd-brand-link { display: inline-flex; align-items: center; gap: .5rem; }
.yd-brand-link img { max-width: 72px; max-height: 32px; width: auto; height: auto; object-fit: contain; }

/* ------------------------------------------------------------- listing */
.yd-filters { background: #fff; border-radius: var(--yd-radius); padding: 1rem 1.1rem; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; }
.yd-filters h6 { font-weight: 800; font-size: .85rem; margin: 1rem 0 .5rem; }
.yd-filters h6:first-child { margin-top: 0; }
.yd-filters .form-check { font-size: .88rem; margin-bottom: .2rem; }
.yd-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--yd-line); display: inline-block; cursor: pointer; position: relative; }
input:checked + .yd-swatch { outline: 2px solid var(--yd-coral); outline-offset: 2px; }
.yd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.yd-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--yd-line); font-size: .82rem; font-weight: 600; }
.yd-chip:hover, .yd-chip.active { border-color: var(--yd-ink); color: var(--yd-ink); }
.yd-chip.active { background: var(--yd-ink); color: #fff; }
.yd-crumbs { font-size: .82rem; color: var(--yd-muted); margin-bottom: .75rem; }
.yd-crumbs a { color: var(--yd-muted); }
.yd-crumbs a:hover { color: var(--yd-coral); }
.yd-crumbs .sep { margin: 0 .35rem; opacity: .5; }

.pagination .page-link { border-radius: 10px !important; margin: 0 .15rem; border: 0; color: var(--yd-ink); font-weight: 600; min-width: 38px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--yd-ink); color: #fff; }

/* ------------------------------------------------------------- product page */
.yd-gallery { position: sticky; top: 96px; }
.yd-gallery .main { background: #fff; border-radius: 20px; aspect-ratio: 1/1; overflow: hidden; position: relative; cursor: zoom-in; }
.yd-gallery .main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.yd-gallery .main.zoom img { transform: scale(2); cursor: zoom-out; }
.yd-gallery .thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.yd-gallery .thumbs button { flex: none; width: 70px; height: 70px; border-radius: 12px; border: 2px solid transparent; overflow: hidden; padding: 0; background: #fff; }
.yd-gallery .thumbs button.active { border-color: var(--yd-coral); }
.yd-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.yd-pdp-title { font-weight: 800; font-size: 1.5rem; line-height: 1.35; letter-spacing: -.3px; }
.yd-price-block { background: var(--yd-bg); border-radius: 16px; padding: 1rem 1.2rem; }
.yd-price-block .now { font-size: 1.9rem; font-weight: 900; color: var(--yd-ink); }
.yd-price-block .was { color: var(--yd-muted); text-decoration: line-through; }
.yd-variant { display: inline-flex; align-items: center; padding: .45rem .9rem; border: 1.5px solid var(--yd-line); border-radius: 12px; font-weight: 600; font-size: .85rem; cursor: pointer; background: #fff; margin: 0 0 .4rem; transition: .15s; }
.yd-variant:hover { border-color: var(--yd-ink); }
input:checked + .yd-variant { border-color: var(--yd-coral); background: var(--yd-coral-50); color: var(--yd-coral-600); }
input:disabled + .yd-variant { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.yd-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--yd-line); border-radius: 999px; background: #fff; }
.yd-qty button { border: 0; background: none; width: 40px; height: 44px; font-size: 1.1rem; }
.yd-qty input { width: 48px; border: 0; text-align: center; font-weight: 700; outline: 0; }
.yd-buybox { background: #fff; border-radius: 20px; padding: 1.25rem; box-shadow: var(--yd-shadow-sm); }
.yd-seller-box { border: 1px solid var(--yd-line); border-radius: 16px; padding: 1rem; }
.yd-trust-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.yd-trust-list li { display: flex; gap: .6rem; padding: .4rem 0; color: var(--yd-ink-soft); }
.yd-trust-list i { color: var(--yd-teal); }
.yd-specs { width: 100%; border-collapse: collapse; }
.yd-specs th, .yd-specs td { padding: .65rem .9rem; border-bottom: 1px solid var(--yd-line); font-size: .9rem; vertical-align: top; }
.yd-specs th { color: var(--yd-muted); font-weight: 600; width: 38%; background: #FBFAFE; }
.yd-tabs { border-bottom: 1px solid var(--yd-line); gap: .5rem; }
.yd-tabs .nav-link { border: 0; color: var(--yd-ink-soft); font-weight: 700; padding: .8rem 1rem; border-bottom: 3px solid transparent; border-radius: 0; }
.yd-tabs .nav-link.active { color: var(--yd-ink); border-bottom-color: var(--yd-coral); background: none; }
.yd-rating-bar { height: 8px; border-radius: 4px; background: var(--yd-line); overflow: hidden; }
.yd-rating-bar span { display: block; height: 100%; background: var(--yd-sun); }
.yd-mobile-buy { position: fixed; bottom: 0; inset-inline: 0; background: #fff; box-shadow: 0 -8px 24px rgba(10,20,53,.12); padding: .7rem 1rem; z-index: 1035; display: none; }

/* star rating input: DOM order 5→1, displayed 1→5 */
.yd-stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; border: 0; padding: 0; margin: 0; }
.yd-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yd-stars-input label { cursor: pointer; font-size: 1.35rem; color: var(--yd-line); transition: color .12s, transform .12s; }
.yd-stars-input label:hover, .yd-stars-input label:hover ~ label, .yd-stars-input input:checked ~ label { color: var(--yd-sun); }
.yd-stars-input input:focus-visible + label { outline: 2px solid var(--yd-coral); outline-offset: 2px; border-radius: 4px; }
.yd-stars-input label:hover { transform: scale(1.15); }

/* ------------------------------------------------------------- cart / checkout */
.yd-cart-group { background: #fff; border-radius: var(--yd-radius); overflow: hidden; margin-bottom: 1rem; box-shadow: var(--yd-shadow-sm); }
.yd-cart-group .gh { padding: .8rem 1.1rem; background: #FBFAFE; border-bottom: 1px solid var(--yd-line); display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.yd-cart-line { display: flex; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--yd-line); align-items: center; }
.yd-cart-line:last-child { border-bottom: 0; }
.yd-cart-line img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--yd-bg); }
.yd-summary { background: #fff; border-radius: var(--yd-radius); padding: 1.25rem; position: sticky; top: 96px; box-shadow: var(--yd-shadow-sm); }
.yd-summary .row-line { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .92rem; }
.yd-summary .total { border-top: 1px dashed var(--yd-line); margin-top: .5rem; padding-top: .8rem; font-weight: 900; font-size: 1.2rem; }
.yd-steps { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.yd-steps div { flex: 1; text-align: center; font-size: .8rem; font-weight: 700; color: var(--yd-muted); padding-bottom: .5rem; border-bottom: 3px solid var(--yd-line); }
.yd-steps div.on { color: var(--yd-ink); border-color: var(--yd-coral); }
.yd-option { border: 1.5px solid var(--yd-line); border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; transition: .15s; background: #fff; }
.yd-option:hover { border-color: var(--yd-ink-soft); }
input:checked + .yd-option, .yd-option.selected { border-color: var(--yd-coral); background: var(--yd-coral-50); }

/* ------------------------------------------------------------- timeline */
.yd-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.yd-timeline li { position: relative; padding-inline-start: 1.8rem; padding-bottom: 1rem; font-size: .88rem; }
.yd-timeline li::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--yd-line); }
.yd-timeline li:last-child::before { display: none; }
.yd-timeline li::after { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--yd-teal); }
.yd-timeline li.cur::after { background: var(--yd-coral); border-color: var(--yd-coral); box-shadow: 0 0 0 4px var(--yd-coral-50); }
.yd-progress { display: flex; justify-content: space-between; position: relative; margin: 1rem 0 1.5rem; }
.yd-progress::before { content: ""; position: absolute; top: 15px; inset-inline: 8%; height: 3px; background: var(--yd-line); }
.yd-progress .bar { position: absolute; top: 15px; inset-inline-start: 8%; height: 3px; background: var(--yd-teal); transition: width .5s; }
.yd-progress .st { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .72rem; color: var(--yd-muted); }
.yd-progress .st i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--yd-line); display: grid; place-items: center; margin: 0 auto .35rem; font-size: .95rem; }
.yd-progress .st.done i { background: var(--yd-teal); border-color: var(--yd-teal); color: #fff; }
.yd-progress .st.done { color: var(--yd-ink); font-weight: 600; }

/* ------------------------------------------------------------- pills & tables */
.yd-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.yd-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.yd-pill-success { background: #E5F6EE; color: var(--yd-success); }
.yd-pill-warning { background: var(--yd-sun-50); color: #A86F00; }
.yd-pill-danger { background: #FCE9E9; color: var(--yd-danger); }
.yd-pill-primary { background: #EAE9FB; color: #4338CA; }
.yd-pill-info { background: var(--yd-teal-50); color: var(--yd-teal); }
.yd-pill-secondary { background: #EFEFF5; color: var(--yd-ink-soft); }
.yd-table { width: 100%; font-size: .88rem; }
.yd-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .4px; color: var(--yd-muted); font-weight: 700; padding: .75rem; border-bottom: 1px solid var(--yd-line); background: #FBFAFE; white-space: nowrap; }
.yd-table td { padding: .75rem; border-bottom: 1px solid var(--yd-line); vertical-align: middle; }
.yd-table tbody tr:hover { background: #FBFAFE; }
.yd-table .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--yd-bg); }

/* ------------------------------------------------------------- dashboards */
.yd-dash { display: flex; min-height: 100vh; }
.yd-side { width: 268px; background: var(--yd-ink); color: #C9C7E3; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .8rem; }
.yd-side .brand { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .5rem .6rem 1.2rem; color: #fff; }
.yd-side .brand img { height: 46px; width: auto; max-width: 100%; }
.yd-side .brand b { font-weight: 900; font-size: 1.2rem; }
.yd-side .brand small { display: block; font-size: .7rem; color: var(--yd-coral); font-weight: 700; letter-spacing: 1px; }
.yd-side .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: #77759A; padding: 1rem .7rem .35rem; font-weight: 700; }
.yd-side a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: #C9C7E3; font-size: .88rem; font-weight: 500; margin-bottom: 1px; }
.yd-side a i { font-size: 1.05rem; width: 20px; text-align: center; }
.yd-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.yd-side a.active { background: var(--yd-coral); color: #fff; font-weight: 700; }
.yd-side a .cnt { margin-inline-start: auto; background: var(--yd-coral); color: #fff; font-size: .68rem; border-radius: 999px; padding: .05rem .45rem; font-weight: 700; }
.yd-side a.active .cnt { background: #fff; color: var(--yd-coral); }
.yd-main { flex: 1; min-width: 0; }
.yd-dash-top { background: #fff; border-bottom: 1px solid var(--yd-line); padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 1020; }
.yd-dash-body { padding: 1.5rem; }
.yd-page-title { font-weight: 900; font-size: 1.45rem; margin: 0 0 .25rem; letter-spacing: -.3px; }
.yd-kpi { background: #fff; border-radius: var(--yd-radius); padding: 1.1rem 1.2rem; box-shadow: var(--yd-shadow-sm); height: 100%; position: relative; overflow: hidden; }
.yd-kpi .lbl { font-size: .78rem; color: var(--yd-muted); font-weight: 600; padding-inline-end: 46px; min-height: 2.2em; }
.yd-kpi .val { font-size: 1.55rem; font-weight: 900; margin-top: .25rem; letter-spacing: -.5px; }
.yd-kpi .ic { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.yd-kpi .ic.coral { background: var(--yd-coral-50); color: var(--yd-coral); }
.yd-kpi .ic.teal { background: var(--yd-teal-50); color: var(--yd-teal); }
.yd-kpi .ic.sun { background: var(--yd-sun-50); color: #B07A00; }
.yd-kpi .ic.ink { background: #EAE9F4; color: var(--yd-ink); }
.yd-queue { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: #fff; border-radius: 14px; box-shadow: var(--yd-shadow-sm); transition: .2s; }
.yd-queue:hover { box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-queue .n { font-size: 1.4rem; font-weight: 900; margin-inline-start: auto; }
.yd-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 1rem; }
.yd-chart .b { flex: 1; background: linear-gradient(180deg, var(--yd-coral), #FF8C6E); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; transition: .2s; }
.yd-chart .b:hover { background: var(--yd-ink); }
.yd-chart .b:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--yd-ink); color: #fff; font-size: .7rem; padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; direction: ltr; z-index: 5; }
.yd-mode-switch { display: inline-flex; background: var(--yd-bg); border-radius: 999px; padding: 3px; }
.yd-mode-switch a { padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--yd-ink-soft); }
.yd-mode-switch a.on { background: var(--yd-ink); color: #fff; }

/* account sidebar */
.yd-acc-nav { background: #fff; border-radius: var(--yd-radius); padding: .6rem; box-shadow: var(--yd-shadow-sm); position: sticky; top: 96px; }
.yd-acc-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; color: var(--yd-ink-soft); font-weight: 500; }
.yd-acc-nav a:hover { background: var(--yd-bg); color: var(--yd-ink); }
.yd-acc-nav a.active { background: var(--yd-coral-50); color: var(--yd-coral-600); font-weight: 700; }
.yd-acc-nav a i { font-size: 1.05rem; }
.yd-acc-hello { display: flex; gap: .75rem; align-items: center; padding: .6rem .8rem 1rem; border-bottom: 1px solid var(--yd-line); margin-bottom: .5rem; }
.yd-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--yd-coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; overflow: hidden; }
.yd-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* rewards card */
.yd-reward-card { border-radius: 20px; padding: 1.5rem; color: #fff; background: linear-gradient(130deg, var(--yd-ink) 0%, #3D2C6E 100%); position: relative; overflow: hidden; }
.yd-reward-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--yd-coral); opacity: .25; inset-inline-end: -60px; top: -80px; }
.yd-reward-card .pts { font-size: 2.4rem; font-weight: 900; }

/* auth */
.yd-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.yd-auth .art { background: linear-gradient(140deg, var(--yd-ink), #2E2468 70%, #46307A); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.yd-auth .art .blob { position: absolute; border-radius: 50%; }
.yd-auth .form-side { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.yd-auth .form-box { width: 100%; max-width: 420px; }

/* become seller */
.yd-seller-hero { background: linear-gradient(120deg, var(--yd-ink), #2E2468); color: #fff; border-radius: 28px; padding: 3rem; position: relative; overflow: hidden; }
.yd-step-card { background: #fff; border-radius: var(--yd-radius); padding: 1.4rem; height: 100%; box-shadow: var(--yd-shadow-sm); position: relative; }
.yd-step-card .no { width: 38px; height: 38px; border-radius: 12px; background: var(--yd-coral); color: #fff; font-weight: 900; display: grid; place-items: center; margin-bottom: .8rem; }

/* footer */
.yd-footer { background: var(--yd-ink); color: #B9B7D6; margin-top: 3rem; padding: 3rem 0 0; font-size: .88rem; }
.yd-footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: .92rem; }
.yd-footer a { color: #B9B7D6; display: block; padding: .2rem 0; }
.yd-footer a:hover { color: var(--yd-coral); }
.yd-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding: 1.2rem 0; font-size: .8rem; }
.yd-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.07); margin-inline-end: .35rem; font-size: 1.05rem; }
.yd-footer .social a:hover { background: var(--yd-coral); color: #fff; }
.yd-newsletter { background: linear-gradient(110deg, var(--yd-teal), #13B8A6); border-radius: 24px; padding: 2rem; color: #fff; }
.yd-newsletter input { border: 0; border-radius: 999px; padding: .8rem 1.2rem; }

/* mobile bottom nav */
.yd-bottom-nav { position: fixed; bottom: 0; inset-inline: 0; background: #fff; border-top: 1px solid var(--yd-line); display: none; z-index: 1030; padding-bottom: env(safe-area-inset-bottom); }
.yd-bottom-nav a { flex: 1; text-align: center; padding: .5rem 0 .4rem; font-size: .68rem; color: var(--yd-ink-soft); position: relative; }
.yd-bottom-nav a i { display: block; font-size: 1.3rem; }
.yd-bottom-nav a.active { color: var(--yd-coral); }
.yd-bottom-nav .yd-badge-count { inset-inline-start: 55%; top: 2px; }

/* toasts, skeletons, empty states, modal */
.yd-toasts { position: fixed; top: 1rem; inset-inline-end: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.yd-toast { background: var(--yd-ink); color: #fff; padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--yd-shadow-lg); display: flex; gap: .7rem; align-items: center; animation: ydSlide .3s ease; font-size: .9rem; }
.yd-toast.success i { color: #5EE2A9; }
.yd-toast.danger { background: var(--yd-danger); }
.yd-toast.warning { background: #A86F00; }
.yd-toast.info i { color: var(--yd-teal); }
.yd-toast .x { margin-inline-start: auto; background: none; border: 0; color: #fff; opacity: .6; }
.yd-skel { background: linear-gradient(90deg, #EEEDF5 25%, #F7F6FB 50%, #EEEDF5 75%); background-size: 200% 100%; animation: ydShimmer 1.3s infinite; border-radius: 10px; }
.yd-empty { text-align: center; padding: 3rem 1rem; }
.yd-empty .ic { width: 96px; height: 96px; border-radius: 30px; background: var(--yd-coral-50); color: var(--yd-coral); display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 1rem; }
.yd-empty h5 { font-weight: 800; }
.yd-empty p { color: var(--yd-muted); }
.modal-content { border: 0; border-radius: 20px; }

/* AI assistant widget */
.yd-ai-fab { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 1040; width: 58px; height: 58px; border-radius: 20px; background: var(--yd-ink); color: #fff; border: 0; box-shadow: var(--yd-shadow-lg); font-size: 1.5rem; display: grid; place-items: center; }
.yd-ai-fab:hover { background: var(--yd-coral); }

@keyframes ydFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ydSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ydShimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
  .yd-side { width: 232px; }
}
@media (max-width: 991.98px) {
  .yd-header .container { min-height: 64px; }
  .yd-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: .6rem; }
  .yd-search select { display: none; }
  .yd-props { grid-template-columns: repeat(2, 1fr); }
  .yd-filters { position: fixed; inset: 0; z-index: 1060; border-radius: 0; max-height: none; transform: translateX(100%); transition: transform .25s ease; top: 0; padding-bottom: 5rem; }
  html[dir="rtl"] .yd-filters { transform: translateX(-100%); }
  .yd-filters.open { transform: none !important; }
  .yd-side { position: fixed; inset-inline-start: 0; z-index: 1070; transform: translateX(-100%); transition: transform .25s; }
  html[dir="rtl"] .yd-side { transform: translateX(100%); }
  .yd-side.open { transform: none !important; box-shadow: var(--yd-shadow-lg); }
  .yd-auth { grid-template-columns: 1fr; }
  .yd-auth .art { display: none; }
  .yd-gallery { position: static; }
  .yd-summary, .yd-acc-nav { position: static; }
  .yd-hero-default .deco { width: 220px; opacity: .14; }
}
@media (max-width: 767.98px) {
  body { padding-bottom: 64px; }
  .yd-bottom-nav { display: flex; }
  .yd-ai-fab { bottom: 76px; width: 50px; height: 50px; }
  .yd-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .yd-rail { grid-auto-columns: 46%; gap: .6rem; }
  .yd-card .body { padding: .6rem .65rem .75rem; }
  .yd-card .price { font-size: .95rem; }
  .yd-card .add { width: 32px; height: 32px; bottom: .7rem; inset-inline-end: .6rem; }
  .yd-hero, .yd-hero .hero-slide, .yd-hero-default { min-height: 230px; }
  .yd-hero .hero-slide, .yd-hero-default { padding: 1.5rem; }
  .yd-section-head h2 { font-size: 1.1rem; }
  .yd-cats { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .yd-cat { padding: .65rem .25rem; }
  .yd-cat .ic { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 14px; }
  .yd-cat span { font-size: .7rem; }
  .yd-mobile-buy { display: flex; gap: .6rem; }
  .yd-pdp-title { font-size: 1.2rem; }
  .yd-dash-body { padding: 1rem; }
  .yd-kpi { padding: .9rem; }
  .yd-kpi .val { font-size: 1.12rem; }
  .yd-kpi .ic { width: 32px; height: 32px; font-size: 1rem; top: .8rem; inset-inline-end: .8rem; }
  .yd-kpi .lbl { padding-inline-end: 36px; }
  .yd-cart-line img { width: 64px; height: 64px; }
  .yd-seller-hero { padding: 1.75rem; }
  .yd-table-wrap { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- support & message threads */
.yd-thread { display: flex; flex-direction: column; gap: .75rem; }
.yd-msg { max-width: 88%; padding: .75rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--yd-border, #e6e8ee); }
.yd-msg.user { align-self: flex-start; }
.yd-msg.staff { align-self: flex-end; background: rgba(15, 163, 163, .08); border-color: rgba(15, 163, 163, .25); }
.yd-msg-head { margin-bottom: .25rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.yd-msg-body { white-space: normal; overflow-wrap: anywhere; }
.min-w-0 { min-width: 0; }

/* ---------------------------------------------------------------- language switcher */
.yd-lang-toggle { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 0; color: inherit; font: inherit; padding: .25rem .5rem; border-radius: 999px; cursor: pointer; line-height: 1.2; }
.yd-topbar .yd-lang-toggle { color: #CFCDE6; }
.yd-topbar .yd-lang-toggle:hover, .yd-topbar .yd-lang-toggle[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.yd-lang-toggle.btn { padding: .3rem .75rem; }
.yd-lang-caret { font-size: .7em; transition: transform .2s ease; }
.yd-lang-toggle[aria-expanded="true"] .yd-lang-caret { transform: rotate(180deg); }
.yd-lang-menu { min-width: 236px; padding: .5rem; border: 1px solid var(--yd-line); border-radius: 16px; box-shadow: var(--yd-shadow-lg); background: #fff; z-index: 1060; }
.yd-lang-menu.show { animation: yd-lang-in .16s ease-out; }
@keyframes yd-lang-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yd-lang-menu.show { animation: none; } .yd-lang-caret { transition: none; } }
.yd-lang-head { font-size: .72rem; font-weight: 700; color: var(--yd-muted); padding: .35rem .6rem .5rem; letter-spacing: .3px; }
.yd-lang-menu .yd-lang-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 12px; color: var(--yd-ink); text-decoration: none; transition: background .15s ease; }
.yd-lang-item + .yd-lang-item { margin-top: 2px; }
.yd-lang-menu .yd-lang-item:hover, .yd-lang-menu .yd-lang-item:focus-visible { background: var(--yd-bg); color: var(--yd-ink); outline: none; }
.yd-lang-item:focus-visible { box-shadow: 0 0 0 3px rgba(242, 92, 5, .25); }
.yd-lang-code { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--yd-bg); color: var(--yd-ink); font-weight: 800; font-size: 1rem; }
.yd-lang-code.ltr { font-family: var(--yd-font-ltr); font-size: .74rem; letter-spacing: .5px; }
.yd-lang-names { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.yd-lang-names b { font-weight: 700; font-size: .93rem; }
.yd-lang-names small { font-family: var(--yd-font-ltr); font-size: .72rem; color: var(--yd-muted); text-align: start; }
html[dir="rtl"] .yd-lang-names small { text-align: end; }
.yd-lang-check { color: var(--yd-coral); font-size: 1rem; opacity: 0; transition: opacity .15s ease; }
.yd-lang-menu .yd-lang-item.active { background: var(--yd-coral-50); color: var(--yd-ink); }
.yd-lang-item.active .yd-lang-code { background: var(--yd-coral); color: #fff; }
.yd-lang-item.active .yd-lang-check { opacity: 1; }

/* sign-in pages: segmented pills */
.yd-lang-pills { display: inline-flex; gap: 2px; padding: 3px; background: var(--yd-bg); border-radius: 999px; font-size: .82rem; }
.yd-lang-pills a { padding: .3rem .8rem; border-radius: 999px; color: var(--yd-ink-soft); text-decoration: none; font-weight: 600; transition: background .15s ease, color .15s ease; }
.yd-lang-pills a:hover { color: var(--yd-ink); }
.yd-lang-pills a.active { background: #fff; color: var(--yd-coral); box-shadow: var(--yd-shadow-sm); }
/* auth pages: back to the shop */
.yd-back-home { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; background: var(--yd-bg); color: var(--yd-ink); font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.yd-back-home:hover, .yd-back-home:focus-visible { background: var(--yd-coral-50); color: var(--yd-coral); }

/* =================================================================== content pages (CMS) */
.yd-page-hero { position: relative; color: #fff; padding: 2.2rem 0 2.4rem;
  background: radial-gradient(900px 300px at 85% -40%, rgba(242,92,5,.35), transparent 60%), radial-gradient(700px 260px at 5% 120%, rgba(15,163,163,.28), transparent 60%), linear-gradient(135deg, var(--yd-ink) 0%, var(--yd-ink-2) 100%); }
.yd-page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.yd-page-hero > .container { position: relative; z-index: 5; }
.yd-page-hero h1 { font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .35rem; letter-spacing: -.4px; }
.yd-page-hero .lead-sm { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 720px; margin: 0 0 .6rem; }
.yd-crumbs-light, .yd-crumbs-light a { color: rgba(255,255,255,.65); }
.yd-crumbs-light a:hover { color: #fff; }
.yd-page-icon { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--yd-coral), #FF8A3D); box-shadow: 0 10px 24px -8px rgba(242,92,5,.6); }
.yd-page-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .8rem; color: rgba(255,255,255,.7); }
.yd-page-meta i { opacity: .8; }
.yd-page-print { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; }
.yd-page-print:hover { background: rgba(255,255,255,.18); }

/* search (help + faq) */
.yd-help-search { position: relative; max-width: 680px; }
.yd-help-search > i { position: absolute; inset-inline-start: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--yd-muted); font-size: 1.05rem; z-index: 2; }
.yd-help-search input { width: 100%; border: 0; border-radius: 999px; padding: .95rem 1.2rem; padding-inline-start: 2.9rem; font-size: 1rem; box-shadow: var(--yd-shadow-lg); outline: none; }
.yd-help-search input:focus { box-shadow: var(--yd-shadow-lg), 0 0 0 4px rgba(242,92,5,.35); }
.yd-help-results { position: absolute; inset-inline: 0; top: calc(100% + .5rem); background: #fff; color: var(--yd-ink); border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-lg); padding: .4rem; z-index: 20; max-height: 360px; overflow: auto; }
.yd-help-results a { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: var(--yd-radius-sm); color: var(--yd-ink); text-decoration: none; }
.yd-help-results a:hover, .yd-help-results a:focus-visible { background: var(--yd-coral-50); }
.yd-help-results a small { color: var(--yd-muted); font-size: .75rem; }
.yd-help-results .empty { padding: .8rem; color: var(--yd-muted); font-size: .9rem; }
.yd-help-results mark, .yd-faq mark { background: var(--yd-sun-50); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* prose */
.yd-prose { font-size: 1rem; line-height: 1.9; color: var(--yd-ink-soft); }
.yd-prose > :first-child { margin-top: 0; }
.yd-prose h2 { color: var(--yd-ink); font-weight: 800; font-size: 1.3rem; margin: 2.2rem 0 .8rem; padding-top: .3rem; scroll-margin-top: 110px; display: flex; align-items: center; gap: .55rem; }
article.yd-prose:not(.yd-faq) h2::before { content: ""; width: 6px; height: 1.15em; border-radius: 3px; background: var(--yd-coral); flex: 0 0 auto; }
.yd-prose h3 { color: var(--yd-ink); font-weight: 700; font-size: 1.08rem; margin: 1.5rem 0 .5rem; }
.yd-prose h4 { color: var(--yd-ink); font-weight: 700; font-size: 1rem; margin: 1.2rem 0 .4rem; }
.yd-prose p { margin: 0 0 1rem; }
.yd-prose strong, .yd-prose b { color: var(--yd-ink); }
.yd-prose a { color: var(--yd-coral-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242,92,5,.35); }
.yd-prose a:hover { text-decoration-color: currentColor; }
.yd-prose ul, .yd-prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.1rem; }
.yd-prose li { margin-bottom: .4rem; }
.yd-prose ul li::marker { color: var(--yd-coral); }
.yd-prose hr { margin: 2rem 0; border-color: var(--yd-line); opacity: 1; }
.yd-prose blockquote { margin: 0 0 1.6rem; padding: 1.1rem 1.25rem; padding-inline-start: 3.4rem; border-radius: var(--yd-radius); background: var(--yd-teal-50); color: var(--yd-ink); position: relative; font-size: .97rem; }
.yd-prose blockquote::before { content: "\F46B"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 1.15rem; top: 1rem; font-size: 1.35rem; color: var(--yd-teal); }
.yd-prose blockquote p:last-child, .yd-prose blockquote ul:last-child { margin-bottom: 0; }
.yd-table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border-radius: var(--yd-radius-sm); border: 1px solid var(--yd-line); }
.yd-prose table, .yd-cms-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; margin: 0; }
.yd-prose table th, .yd-cms-table th { background: var(--yd-bg); color: var(--yd-ink); font-weight: 700; text-align: start; padding: .7rem .9rem; white-space: nowrap; }
.yd-prose table td, .yd-cms-table td { padding: .7rem .9rem; border-top: 1px solid var(--yd-line); vertical-align: top; line-height: 1.6; }
.yd-prose > table { border: 1px solid var(--yd-line); border-radius: var(--yd-radius-sm); overflow: hidden; margin-bottom: 1.4rem; }
.yd-prose article, .yd-panel.yd-prose { padding: 1.6rem; }
#yd-article:not(.yd-faq) { background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-sm); padding: clamp(1.25rem, 3vw, 2.4rem); }

/* aside */
.yd-page-aside { position: sticky; top: 96px; }
.yd-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.yd-toc li { counter-increment: toc; }
.yd-toc a { display: flex; gap: .55rem; padding: .38rem .55rem; border-radius: 8px; color: var(--yd-ink-soft); font-size: .86rem; text-decoration: none; line-height: 1.5; border-inline-start: 2px solid transparent; }
.yd-toc a::before { content: counter(toc); font-size: .72rem; font-weight: 700; color: var(--yd-muted); min-width: 1.1rem; padding-top: .1rem; }
.yd-toc a:hover { background: var(--yd-bg); color: var(--yd-ink); }
.yd-toc a.active { background: var(--yd-coral-50); color: var(--yd-coral-600); border-inline-start-color: var(--yd-coral); font-weight: 600; }
.yd-toc a.active::before { color: var(--yd-coral); }
.yd-help-card { border-radius: var(--yd-radius); padding: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--yd-coral) 0%, #FF8A3D 100%); box-shadow: 0 14px 30px -14px rgba(242,92,5,.7); position: relative; overflow: hidden; }
.yd-help-card > i { position: absolute; inset-inline-end: -.6rem; bottom: -1rem; font-size: 5.5rem; opacity: .15; }
.yd-help-card p { color: rgba(255,255,255,.88); }
.yd-help-card .btn-light { color: var(--yd-coral-600); font-weight: 700; }
.yd-related { display: flex; align-items: center; gap: .6rem; padding: .55rem .4rem; border-radius: 8px; color: var(--yd-ink); text-decoration: none; font-size: .9rem; }
.yd-related + .yd-related { border-top: 1px solid var(--yd-line); }
.yd-related > i:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--yd-bg); color: var(--yd-coral); flex: 0 0 auto; }
.yd-related:hover { background: var(--yd-bg); }

/* faq accordion */
.yd-faq-group { margin-bottom: 2rem; scroll-margin-top: 110px; }
.yd-faq-group h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.yd-faq-item { background: #fff; border-radius: var(--yd-radius-sm); box-shadow: var(--yd-shadow-sm); margin-bottom: .6rem; border: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease; scroll-margin-top: 110px; }
.yd-faq-item[open] { border-color: rgba(242,92,5,.3); box-shadow: var(--yd-shadow); }
.yd-faq-item summary { list-style: none; cursor: pointer; padding: 1rem 1.15rem; display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--yd-ink); line-height: 1.6; }
.yd-faq-item summary::-webkit-details-marker { display: none; }
.yd-faq-item summary::after { content: "\F64D"; font-family: "bootstrap-icons"; margin-inline-start: auto; width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--yd-bg); color: var(--yd-coral); font-weight: 400; transition: transform .2s ease, background .2s ease; }
.yd-faq-item[open] summary::after { content: "\F63B"; background: var(--yd-coral); color: #fff; }
.yd-faq-item summary:focus-visible { outline: 3px solid rgba(242,92,5,.4); outline-offset: 2px; border-radius: var(--yd-radius-sm); }
.yd-faq-a { padding: 0 1.15rem 1rem; color: var(--yd-ink-soft); }
.yd-faq-a > :last-child { margin-bottom: 0; }
.yd-faq-item.hl { animation: yd-hl 1.6s ease; }
@keyframes yd-hl { 0%, 40% { box-shadow: 0 0 0 4px rgba(242,92,5,.35); } 100% { box-shadow: var(--yd-shadow); } }

/* help centre */
.yd-quick { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; height: 100%; padding: 1.1rem; border-radius: var(--yd-radius); background: #fff; box-shadow: var(--yd-shadow-sm); color: var(--yd-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.yd-quick i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--yd-coral-50); color: var(--yd-coral); font-size: 1.25rem; margin-bottom: .45rem; transition: background .15s ease, color .15s ease; }
.yd-quick b { font-size: .95rem; }
.yd-quick small { color: var(--yd-muted); font-size: .78rem; line-height: 1.45; }
.yd-quick:hover { transform: translateY(-3px); box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-quick:hover i { background: var(--yd-coral); color: #fff; }
.yd-q-link { display: flex; gap: .55rem; padding: .6rem .7rem; border-radius: var(--yd-radius-sm); color: var(--yd-ink); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.yd-q-link i { color: var(--yd-coral); padding-top: .15rem; }
.yd-q-link:hover { background: var(--yd-bg); }

/* contact */
.yd-contact-card { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1.3rem; border-radius: var(--yd-radius); background: #fff; box-shadow: var(--yd-shadow-sm); color: var(--yd-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.yd-contact-card i { font-size: 1.5rem; color: var(--yd-coral); margin-bottom: .35rem; }
.yd-contact-card small { color: var(--yd-muted); font-size: .82rem; }
.yd-contact-card:hover { transform: translateY(-3px); box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-contact-card.primary { background: linear-gradient(135deg, var(--yd-ink) 0%, var(--yd-ink-2) 100%); color: #fff; }
.yd-contact-card.primary i { color: var(--yd-sun); }
.yd-contact-card.primary small { color: rgba(255,255,255,.72); }
.yd-contact-card.primary:hover { color: #fff; }

/* about: live numbers */
.yd-stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -3.6rem; position: relative; z-index: 2; }
.yd-stat-band > div { background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow); padding: 1.15rem; display: flex; flex-direction: column; align-items: flex-start; }
.yd-stat-band i { color: var(--yd-coral); font-size: 1.3rem; }
.yd-stat-band b { font-size: 1.7rem; font-weight: 900; color: var(--yd-ink); line-height: 1.2; margin-top: .3rem; }
.yd-stat-band span { color: var(--yd-muted); font-size: .82rem; }
@media (max-width: 767.98px) { .yd-stat-band { grid-template-columns: repeat(2, 1fr); margin-top: -2.4rem; } }
.yd-page-hero:has(+ .container .yd-stat-band) { padding-bottom: 4.6rem; }

/* how it works: tabs + step cards */
.yd-step-tabs { gap: .4rem; background: #fff; padding: .35rem; border-radius: 999px; box-shadow: var(--yd-shadow-sm); width: fit-content; margin-inline: auto; flex-wrap: wrap; }
.yd-step-tabs .nav-link { border-radius: 999px; color: var(--yd-ink-soft); font-weight: 700; padding: .55rem 1.2rem; border: 0; background: none; }
.yd-step-tabs .nav-link.active { background: var(--yd-coral); color: #fff; box-shadow: 0 6px 16px -6px rgba(242,92,5,.6); }
.yd-steps-pane > p, .yd-steps-pane > blockquote { max-width: 780px; margin-inline: auto; }
.yd-steps-pane > ol { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.yd-steps-pane > ol > li { counter-increment: step; background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-sm); padding: 1.3rem; padding-top: 3.6rem; position: relative; margin: 0; line-height: 1.75; font-size: .93rem; }
.yd-steps-pane > ol > li::before { content: counter(step); position: absolute; top: 1.05rem; inset-inline-start: 1.2rem; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--yd-coral), #FF8A3D); }
.yd-steps-pane > ol > li strong:first-child { display: block; font-size: 1rem; margin-bottom: .25rem; }
.yd-steps-pane > h3 { text-align: center; margin-top: 2rem; }
.yd-steps-pane > ul { max-width: 780px; margin-inline: auto; }

/* order tracking */
.yd-track-card { background: #fff; border-radius: var(--yd-radius); box-shadow: var(--yd-shadow-lg); padding: clamp(1.25rem, 3vw, 2rem); margin-top: -3.4rem; position: relative; z-index: 2; }
.yd-page-hero.has-card { padding-bottom: 4.6rem; }
.yd-track-steps { display: flex; justify-content: space-between; position: relative; margin: 1.2rem 0 .4rem; }
.yd-track-steps::before { content: ""; position: absolute; top: 17px; inset-inline: 8%; height: 3px; background: var(--yd-line); border-radius: 2px; }
.yd-track-steps .bar { position: absolute; top: 17px; inset-inline-start: 8%; height: 3px; background: var(--yd-coral); border-radius: 2px; }
.yd-track-steps > div { position: relative; z-index: 1; flex: 1; text-align: center; font-size: .76rem; color: var(--yd-muted); }
.yd-track-steps > div i { width: 36px; height: 36px; display: grid; place-items: center; margin: 0 auto .35rem; border-radius: 50%; background: #fff; border: 2px solid var(--yd-line); font-size: 1rem; }
.yd-track-steps > div.done { color: var(--yd-ink); }
.yd-track-steps > div.done i { background: var(--yd-coral); border-color: var(--yd-coral); color: #fff; }
.yd-track-steps > div.cur i { box-shadow: 0 0 0 5px var(--yd-coral-50); }
.yd-track-steps.stopped > div.cur i { background: var(--yd-danger); border-color: var(--yd-danger); }
.yd-parcel { border: 1px solid var(--yd-line); border-radius: var(--yd-radius); padding: 1.2rem; background: #fff; }
.yd-parcel + .yd-parcel { margin-top: 1rem; }

/* print: content pages only */
@media print {
  .yd-topbar, header, footer, .yd-page-aside, .yd-page-print, .yd-help-search, .yd-mobile-nav, .yd-toasts, .yd-cookie { display: none !important; }
  .yd-page-hero { background: none !important; color: #000 !important; padding: 0 0 1rem; }
  .yd-page-hero::after, .yd-page-icon { display: none; }
  .yd-page-hero .lead-sm, .yd-page-meta { color: #333 !important; }
  .yd-crumbs-light { display: none; }
  #yd-article:not(.yd-faq) { box-shadow: none; padding: 0; }
  .col-lg-8 { width: 100% !important; }
  .yd-faq-item { box-shadow: none; border: 1px solid #ccc; }
  .yd-prose a { color: #000; text-decoration: none; }
}
/* =================================================================== analytics & performance (admin + seller) */
.yd-kpi .ic.success { background: #E7F6EF; color: var(--yd-success); }
.yd-kpi .ic.danger { background: #FCEBEB; color: var(--yd-danger); }
a.yd-kpi2 { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
a.yd-kpi2:hover { box-shadow: var(--yd-shadow); transform: translateY(-2px); color: inherit; }
.yd-kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .35rem; font-size: .74rem; }
.yd-kpi-sub { color: var(--yd-muted); }
.yd-trend { display: inline-flex; align-items: center; gap: .15rem; padding: .08rem .45rem; border-radius: 999px; font-weight: 700; font-size: .74rem; white-space: nowrap; }
.yd-trend.up { background: #E7F6EF; color: var(--yd-success); }
.yd-trend.down { background: #FCEBEB; color: var(--yd-danger); }
.yd-trend.flat { background: #EEF0F4; color: #6B7280; }
.yd-section-title { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--yd-ink-soft); margin: .25rem 0 .7rem; }
.yd-subtabs { display: flex; gap: .25rem; overflow-x: auto; padding: .3rem; background: #fff; border-radius: 14px; box-shadow: var(--yd-shadow-sm); scrollbar-width: thin; }
.yd-subtabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 10px; color: var(--yd-ink-soft); font-weight: 600; font-size: .86rem; white-space: nowrap; text-decoration: none; }
.yd-subtabs a:hover { background: var(--yd-bg); color: var(--yd-ink); }
.yd-subtabs a.active { background: var(--yd-ink); color: #fff; }
.yd-pill-tabs { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; }
.yd-pill-tabs .nav-link { border: 0; background: var(--yd-bg); color: var(--yd-ink-soft); border-radius: 999px; padding: .38rem .9rem; font-size: .84rem; font-weight: 600; }
.yd-pill-tabs .nav-link.active { background: var(--yd-coral); color: #fff; }
.yd-mini { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #fff; border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--yd-shadow-sm); height: 100%; }
.yd-mini span { color: var(--yd-muted); font-size: .8rem; font-weight: 600; }
.yd-mini b { font-size: 1rem; }
/* range picker */
.yd-range { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.yd-range-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.yd-range-chip { cursor: pointer; padding: .3rem .7rem; border-radius: 999px; background: var(--yd-bg); color: var(--yd-ink-soft); font-size: .78rem; font-weight: 600; margin: 0; }
.yd-range-chip input { position: absolute; opacity: 0; pointer-events: none; }
.yd-range-chip:hover { color: var(--yd-ink); }
.yd-range-chip.active { background: var(--yd-ink); color: #fff; }
.yd-range-chip:focus-within { outline: 2px solid var(--yd-coral); outline-offset: 1px; }
.yd-range-custom { display: flex; align-items: center; gap: .35rem; }
.yd-range-custom .form-control { width: auto; }
.yd-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.yd-chip.active { background: var(--yd-coral); color: #fff; border-color: var(--yd-coral); }
.yd-filters .form-label { color: var(--yd-ink-soft); font-weight: 600; }
.yd-live-body { transition: opacity .2s ease; }
.yd-live-body.loading { opacity: .45; pointer-events: none; }
/* chart */
.yd-ychart svg { width: 100%; height: auto; max-height: 280px; display: block; overflow: visible; }
.yd-ychart .grid { stroke: var(--yd-line); stroke-width: 1; stroke-dasharray: 3 4; }
.yd-ychart .bar rect:first-child { fill: var(--yd-coral); opacity: .85; transition: opacity .15s ease; }
.yd-ychart .bar:hover rect:first-child { opacity: 1; fill: var(--yd-coral-600); }
.yd-ychart .bar .hit { fill: transparent; }
.yd-ychart .line { fill: none; stroke: var(--yd-teal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.yd-ychart .lbl { font-size: 11px; fill: var(--yd-muted); text-anchor: middle; font-family: var(--yd-font-ltr); }
.yd-ychart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .35rem; }
.yd-ychart-legend .sw, .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.yd-ychart-legend .sw.bar { background: var(--yd-coral); }
.yd-ychart-legend .sw.line { background: var(--yd-teal); height: 3px; width: 14px; border-radius: 2px; }
.yd-chart-empty { padding: 2.5rem 1rem; text-align: center; color: var(--yd-muted); font-size: .9rem; background: var(--yd-bg); border-radius: 12px; }
/* tables */
.yd-period-table tbody tr.cur th { color: var(--yd-coral-600); }
.yd-period-table th, .yd-period-table td { white-space: nowrap; }
.yd-basis summary { cursor: pointer; }
.yd-basis li { margin-bottom: .25rem; color: var(--yd-ink-soft); }
.yd-avatar-sm { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.yd-avatar-sm.ph, .yd-thumb-sm.ph { display: inline-grid; place-items: center; background: var(--yd-bg); color: var(--yd-muted); }
.yd-thumb-sm { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.yd-share { display: inline-block; width: 60px; height: 6px; background: var(--yd-bg); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-inline-end: .35rem; }
.yd-share span { display: block; height: 100%; background: var(--yd-coral); border-radius: 3px; }
.yd-health-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px dashed var(--yd-line); font-size: .86rem; }
.yd-health-row:last-child { border-bottom: 0; }
.yd-hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: .6rem; padding: .32rem 0; font-size: .85rem; }
.yd-hbar .track { height: 8px; background: var(--yd-bg); border-radius: 4px; overflow: hidden; }
.yd-hbar .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--yd-coral), #FF8A3D); border-radius: 4px; }
html[dir="rtl"] .yd-hbar .track span { background: linear-gradient(270deg, var(--yd-coral), #FF8A3D); margin-inline-start: 0; }
.yd-rank-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .2rem; border-bottom: 1px solid var(--yd-line); color: var(--yd-ink); text-decoration: none; font-size: .88rem; }
.yd-rank-row:last-child { border-bottom: 0; }
a.yd-rank-row:hover { background: var(--yd-bg); color: var(--yd-ink); }
.yd-rank-row .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--yd-bg); font-weight: 800; font-size: .76rem; flex: 0 0 auto; }
.yd-rank-row:first-of-type .n { background: var(--yd-sun); color: #5A3E00; }
.yd-leader { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--yd-radius); color: #fff; background: linear-gradient(135deg, var(--yd-ink) 0%, var(--yd-ink-2) 100%); box-shadow: var(--yd-shadow); }
.yd-leader-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: #5A3E00; background: linear-gradient(135deg, var(--yd-sun), #FFD97A); flex: 0 0 auto; }
.yd-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--yd-bg); }
.yd-split .o, .sw.o { background: var(--yd-ink); }
.yd-split .s, .sw.s { background: var(--yd-coral); }
/* alerts */
.yd-alert-strip { background: #FFF8EC; border: 1px solid #F6D9A8; border-radius: var(--yd-radius); padding: .9rem 1rem; color: #7A4A00; }
.yd-alert-card { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: 12px; background: #fff; border-inline-start: 4px solid #F0A020; color: var(--yd-ink); text-decoration: none; font-size: .84rem; height: 100%; }
.yd-alert-card.critical { border-inline-start-color: var(--yd-danger); }
.yd-alert-card .sev { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: #B26A00; }
.yd-alert-card.critical .sev { color: var(--yd-danger); }
.yd-alert-card:hover { box-shadow: var(--yd-shadow-sm); color: var(--yd-ink); }
.yd-level { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.yd-level.normal { background: #E7F6EF; color: var(--yd-success); }
.yd-level.warning { background: #FFF1D6; color: #9A5B00; }
.yd-level.critical { background: #FCEBEB; color: var(--yd-danger); }
.yd-level.insufficient { background: #EEF0F4; color: #6B7280; }
.yd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F0A020; margin-inline-end: .4rem; vertical-align: middle; }
.yd-dot.critical { background: var(--yd-danger); }
/* rating */
.yd-rating-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.yd-rating-pill.success { background: #E7F6EF; color: var(--yd-success); }
.yd-rating-pill.primary { background: var(--yd-coral-50); color: var(--yd-coral-600); }
.yd-rating-pill.danger { background: #FCEBEB; color: var(--yd-danger); }
.yd-rating-pill.secondary, .yd-rating-pill.incomplete { background: #EEF0F4; color: #5B6170; white-space: normal; }
.yd-rating-big b { font-size: 2.6rem; font-weight: 900; color: var(--yd-ink); display: block; line-height: 1.1; }
.yd-rating-big span { font-weight: 700; color: var(--yd-ink-soft); }
.yd-seller-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border-radius: var(--yd-radius); padding: 1rem 1.2rem; box-shadow: var(--yd-shadow-sm); }
.yd-seller-head .logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; }
.yd-seller-head .logo.ph { display: grid; place-items: center; background: var(--yd-bg); color: var(--yd-muted); font-size: 1.6rem; }
.yd-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: .88rem; }
.yd-dl dt { color: var(--yd-muted); font-weight: 600; }
.yd-dl dd { margin: 0; }
@media (max-width: 575.98px) {
  .yd-leader { flex-wrap: wrap; }
  .yd-leader .text-end { width: 100%; text-align: start !important; }
  .yd-range-custom { width: 100%; }
}
/* seller dashboard */
.yd-wallet { border-radius: var(--yd-radius); padding: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--yd-ink) 0%, var(--yd-ink-2) 100%); box-shadow: var(--yd-shadow); }
.yd-wallet .amount { font-size: 1.9rem; font-weight: 900; letter-spacing: -.5px; }
.yd-wallet .yd-rating-pill { background: rgba(255,255,255,.14); color: #fff; }
.yd-stat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .8rem .9rem; background: #fff; border-radius: 14px; box-shadow: var(--yd-shadow-sm); color: var(--yd-ink); text-decoration: none; height: 100%; border: 1px solid transparent; transition: box-shadow .15s ease; }
.yd-stat-tile i { color: var(--yd-muted); font-size: 1.05rem; }
.yd-stat-tile b { font-size: 1.35rem; font-weight: 900; line-height: 1.2; }
.yd-stat-tile span { font-size: .76rem; color: var(--yd-muted); font-weight: 600; }
.yd-stat-tile:hover { box-shadow: var(--yd-shadow); color: var(--yd-ink); }
.yd-stat-tile.attn { border-color: rgba(242,92,5,.4); background: var(--yd-coral-50); }
.yd-stat-tile.attn i { color: var(--yd-coral); }
.yd-stat-tile.bad { border-color: rgba(217,58,58,.35); }
.yd-stat-tile.bad i { color: var(--yd-danger); }
.yd-tip { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 10px; margin-bottom: .4rem; font-size: .86rem; color: var(--yd-ink); text-decoration: none; background: var(--yd-bg); border-inline-start: 3px solid var(--yd-muted); }
.yd-tip i { margin-top: .1rem; }
.yd-tip.warning { border-inline-start-color: #F0A020; } .yd-tip.warning i { color: #C07A00; }
.yd-tip.danger { border-inline-start-color: var(--yd-danger); } .yd-tip.danger i { color: var(--yd-danger); }
.yd-tip.info { border-inline-start-color: var(--yd-teal); } .yd-tip.info i { color: var(--yd-teal); }
.yd-tip:hover { background: #ECEBF5; color: var(--yd-ink); }
.yd-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.yd-breakdown > div { display: flex; flex-direction: column; padding: .65rem .8rem; border-radius: 12px; background: var(--yd-bg); }
.yd-breakdown span { font-size: .76rem; color: var(--yd-muted); font-weight: 600; }
.yd-breakdown b { font-size: 1.02rem; }
.yd-breakdown .minus b { color: var(--yd-danger); }
.yd-breakdown .total { background: #E7F6EF; } .yd-breakdown .total b { color: var(--yd-success); }
/* ------------------------------------------------------------------ seller product wizard */
.yd-wizard-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.yd-wizard-steps li { flex: 1 1 9rem; }
.yd-wizard-steps li > a, .yd-wizard-steps li > span { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: var(--yd-radius-sm);
  background: #fff; border: 1px solid var(--yd-line); color: var(--yd-ink-soft); font-size: .85rem; text-decoration: none; block-size: 100%; }
.yd-wizard-steps .n { flex: none; inline-size: 1.6rem; block-size: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  font-size: .8rem; background: var(--yd-line); color: var(--yd-ink); }
.yd-wizard-steps li.done > a { color: var(--yd-ink); }
.yd-wizard-steps li.done .n { background: var(--yd-ink); color: #fff; }
.yd-wizard-steps li.current > span { border-color: var(--yd-coral); color: var(--yd-ink); font-weight: 600; box-shadow: 0 0 0 3px rgba(242, 92, 5, .12); }
.yd-wizard-steps li.current .n { background: var(--yd-coral); color: #fff; }
.yd-wizard-steps a:hover { border-color: var(--yd-ink-soft); }
.yd-wizard-steps a:focus-visible { outline: 3px solid var(--yd-coral); outline-offset: 2px; }
@media (max-width: 767.98px) { .yd-wizard-steps { max-inline-size: 100%; overflow-x: auto; scrollbar-width: none; } .yd-wizard-steps ol { flex-wrap: nowrap; padding-block: 3px; } .yd-wizard-steps li:not(.current) .l { display: none; } .yd-wizard-steps li { flex: 0 0 auto; } .yd-wizard-steps li.current { flex: 1 1 auto; } }
.yd-chip-check { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--yd-line); border-radius: 999px;
  font-size: .85rem; cursor: pointer; background: #fff; }
.yd-chip-check input { margin: 0; }
.yd-chip-check:has(input:checked) { border-color: var(--yd-ink); background: rgba(10, 20, 53, .05); }
.yd-chip-check .sw { inline-size: .9rem; block-size: .9rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.yd-wizard-desc :is(ul, ol) { padding-inline-start: 1.2rem; }
.yd-swatch-sm { display: inline-block; inline-size: .9rem; block-size: .9rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); vertical-align: middle; }

/* ------------------------------------------------------------------ seller storefronts (/{slug}) */
.yd-store-cover { position: relative; block-size: clamp(150px, 26vw, 260px); background: linear-gradient(120deg, var(--yd-store-accent, var(--yd-ink)), var(--yd-ink-2)); overflow: hidden; }
.yd-store-cover img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.yd-store-head { margin-block-start: -64px; position: relative; }
.yd-store-logo { inline-size: 96px; block-size: 96px; border-radius: 24px; font-size: 2rem; border: 4px solid #fff; box-shadow: var(--yd-shadow); flex: 0 0 auto; }
.yd-store-logo img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 20px; }
.yd-store-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; border-block-start: 1px solid var(--yd-line); padding-block-start: .75rem; }
.yd-store-nav > a, .yd-store-nav .dropdown > a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px; color: var(--yd-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.yd-store-nav > a:hover, .yd-store-nav .dropdown > a:hover { background: rgba(10, 20, 53, .06); }
.yd-store-nav a.active { background: var(--yd-ink); color: #fff; }
.yd-store-search { min-inline-size: 220px; }
.yd-img-preview { display: block; max-inline-size: 100%; margin-block-end: .5rem; border-radius: var(--yd-radius-sm); object-fit: cover; }
@media (max-width: 767.98px) {
  .yd-store-head { margin-block-start: -40px; }
  .yd-store-logo { inline-size: 76px; block-size: 76px; }
  .yd-store-search { min-inline-size: 0; flex: 1 1 100%; margin-inline-start: 0 !important; }
}
