/* Look: TopDeal shop layout (info masthead, nav bar, categories sidebar, hot-deals strip)
   + Milk v2 forum cards (rounded white cards, circle icons, stats). One colour: neon blue; dark mode follows the system. */
:root {
  --accent: #0a9bf5; --accent-2: #0077c4;
  --bg: #f2f3f5; --card: #ffffff; --text: #1d2026; --muted: #727884; --line: #e6e8ec; --head: #262a31;
  --good: #3bb54a; --warn: #b77900; --bad: #d93a2b;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--card));
  --good-soft: color-mix(in srgb, var(--good) 14%, var(--card));
  --warn-soft: color-mix(in srgb, var(--warn) 14%, var(--card));
  --bad-soft: color-mix(in srgb, var(--bad) 12%, var(--card));
  --shadow: 0 1px 2px rgba(20,24,32,.04), 0 10px 30px -18px rgba(20,24,32,.28);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --card: #1a1d23; --text: #e8eaee; --muted: #9399a4; --line: #2a2e36; --head: #0b0c0f;
    --good: #4fca6a; --warn: #e3b45a; --bad: #f0665c; --shadow: 0 10px 30px -20px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Rubik", -apple-system, "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif; }
h1 { font-size: 20px; margin: 0; } h2 { font-size: 19px; margin: 0 0 6px; } h3 { font-size: 16px; margin: 0 0 8px; }
a { color: var(--accent); }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.name { unicode-bidi: plaintext; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.big { padding: 12px 30px; font-size: 16px; align-self: flex-start; box-shadow: 0 8px 20px -10px var(--accent); }
.btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.count { position: absolute; top: -6px; inset-inline-end: -8px; background: var(--bad); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; line-height: 17px; font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.grey { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

/* ---------- masthead (TopDeal) ---------- */
.topline { height: 5px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #6fd3e6)); }
.masthead { background: var(--card); }
.mast { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); border: 2px solid var(--accent); transform: rotate(-6deg); }
.brand-txt { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.brand-txt em { font-style: normal; color: var(--accent); margin-inline-start: 4px; }
.infos { display: flex; gap: 26px; flex: 1; justify-content: center; }
.info { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); background: none; border: 0; padding: 0; text-align: start; }
.info.as-btn { cursor: pointer; }
.info.as-btn:hover b { color: var(--accent); }
.info .ic { position: relative; font-size: 28px; line-height: 1; filter: saturate(.9); }
.info .lbl { display: block; color: var(--muted); }
.info b { display: block; color: var(--text); font-weight: 500; }
.state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-inline-end: 6px; vertical-align: 1px; }
.state.good::before { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.state.warn::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.cartbox { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.cartbox b { display: block; font-size: 16px; }
.cartbox .hl { color: var(--accent); }
.cart-ic { width: 48px; height: 48px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 18px -10px var(--accent); }

/* ---------- nav bar ---------- */
.navbar { background: var(--accent); position: sticky; top: 0; z-index: 20; box-shadow: 0 6px 16px -12px rgba(0,0,0,.5); }
.nav { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; min-height: 58px; }
.nav-links { display: flex; align-items: stretch; }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 0 16px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link.active, .nav-drop:hover > .nav-link, .nav-drop:focus-within > .nav-link { background: var(--accent-2); }
.caret { font-size: 11px; opacity: .9; }
.nav-drop { position: relative; display: flex; }
.nav-link.new-link { background: rgba(255,255,255,.16); }
.nav-link.new-link:hover, .nav-link.new-link.active { background: var(--head); }
.drop { position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px; max-width: 340px; background: var(--card); color: var(--text); border-top: 3px solid var(--accent); box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); padding: 6px 0; display: none; z-index: 30; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
.drop a { display: flex; gap: 10px; align-items: center; padding: 8px 16px; color: var(--text); text-decoration: none; font-size: 14px; }
.drop a:hover { background: var(--accent-soft); color: var(--accent); }
.drop a .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .empty { padding: 10px 16px; }
.quick { display: flex; align-items: center; align-self: center; background: #fff; border-radius: 4px; overflow: hidden; width: min(460px, 42vw); height: 40px; }
.quick select { border: 0; border-inline-end: 1px solid #e3e3e3; border-radius: 0; background: #fff; color: #333; height: 100%; padding: 0 10px; max-width: 150px; }
.quick input { flex: 1; border: 0; border-radius: 0; background: #fff; color: #222; height: 100%; padding: 0 12px; }
.quick input:focus, .quick select:focus { outline: none; }
.quick button { width: 48px; height: 100%; border: 0; background: var(--head); color: #fff; cursor: pointer; font-size: 16px; }
.quick button:hover { background: #000; }

.banner { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--text); border: 1px solid var(--warn); }
.news { margin-top: 14px; background: var(--card); border-radius: var(--r); padding: 6px 16px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); }
.news .item { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.news .item:last-child { border: 0; }
.news .item a { color: var(--text); text-decoration: none; }
.news .item.unread b { color: var(--accent); }

/* ---------- layout + "all categories" sidebar ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; padding-top: 14px; padding-bottom: 60px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; max-height: calc(100vh - 86px); overflow: auto; scrollbar-width: thin; }
.cat-box { background: var(--card); box-shadow: var(--shadow); }
.cat-head { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--head); color: #fff; border: 0; padding: 14px 16px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: start; }
.cat-head .caret { margin-inline-start: auto; transition: transform .2s; }
.cat-head.plain { cursor: default; justify-content: space-between; }
.cat-head.plain label { display: flex; align-items: center; gap: 5px; font-weight: 400; color: #cfd2d8; cursor: pointer; }
.burger { font-size: 17px; }
.cat-box.collapsed .cat-list { display: none; }
.cat-box.collapsed .caret { transform: rotate(90deg); }
.cat-list { list-style: none; margin: 0; padding: 4px 18px 6px; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; color: var(--text); text-decoration: none; font-size: 15px; }
.cat-list .ci { width: 24px; text-align: center; font-size: 18px; filter: grayscale(1); opacity: .65; transition: filter .15s, opacity .15s; }
.cat-list .n { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.cat-list .chev { color: var(--muted); font-size: 10px; margin-inline-start: auto; }
.cat-list .n + .chev { margin-inline-start: 0; }
.cat-list a:hover, .cat-list a.active { color: var(--accent); }
.cat-list a:hover .ci, .cat-list a.active .ci { filter: none; opacity: 1; }
.search-list { display: flex; flex-direction: column; padding: 6px 10px 10px; }
.sitem { display: flex; gap: 10px; align-items: center; padding: 10px 8px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); border-inline-start: 3px solid transparent; }
.sitem:last-child { border-bottom: 0; }
.sitem:hover { background: var(--bg); }
.sitem.active { background: var(--accent-soft); border-inline-start-color: var(--accent); }
.sitem .t { font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.sitem .t span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitem .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.sitem .meta .ltr { color: var(--accent); font-weight: 600; }
.sbody { flex: 1; min-width: 0; }
.sthumb { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--c) 30%, var(--card)); border: 1px solid var(--line); }
.sthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }

/* product photo on option cards */
.photo { position: relative; display: grid; place-items: center; height: 200px; margin: -18px -16px 4px; border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); text-decoration: none; }
.photo .ph { font-size: 64px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12px; transition: transform .3s; }
.opt:hover .photo img { transform: scale(1.04); }
.opt .rank { z-index: 2; }
.empty { padding: 16px; text-align: center; color: var(--muted); }

.view { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--card); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); }

/* section header: accent tab on a bar with an accent top border (TopDeal "Hot Deals") */
.sec-head { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; background: var(--card); border-top: 2px solid var(--accent); box-shadow: var(--shadow); flex-wrap: wrap; }
.sec-head .tab { background: var(--accent); color: #fff; padding: 9px 20px; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sec-head .aside { display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: var(--accent); font-weight: 700; flex-wrap: wrap; }
.panel > .sec-head:first-child { margin: -16px -20px 14px; box-shadow: none; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.panel > .sec-head:first-child .tab { border-start-start-radius: 0; }

/* ---------- hero slider ---------- */
.hero { position: relative; border-radius: var(--r); overflow: hidden; min-height: 330px; box-shadow: var(--shadow); background: var(--card); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr 1fr; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide .art { position: relative; overflow: hidden; display: grid; place-items: center; }
.slide .art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 1.5px, transparent 1.6px), radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.1px); background-size: 46px 46px, 23px 23px; background-position: 0 0, 11px 11px; }
.slide .emo { position: relative; font-size: 92px; line-height: 1; display: flex; gap: 10px; filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
.slide .emo span:nth-child(2) { font-size: 128px; transform: translateY(-12px); }
.slide .copy { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 30px 44px 30px; padding-inline-start: 56px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.slide .copy::before { content: ""; position: absolute; top: -10%; bottom: -10%; inset-inline-start: -70px; width: 140px; border-radius: 50%; background: inherit; }
.slide .kicker { position: relative; font-size: 13px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.slide h2 { position: relative; font-size: 30px; line-height: 1.25; color: var(--accent); font-weight: 800; margin: 6px 0 16px; }
.slide .cta { position: relative; padding: 11px 34px; font-size: 16px; box-shadow: 0 10px 22px -10px var(--accent); }
.slide .sub { position: relative; margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.burst { position: absolute; top: 24px; inset-inline-start: -70px; width: 118px; height: 118px; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 800; line-height: 1.05; z-index: 2;
  background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 7px rgba(255,255,255,.85), 0 14px 26px -12px rgba(0,0,0,.5); transform: rotate(-8deg); }
.burst::before, .burst::after { content: ""; position: absolute; inset: -9px; border-radius: 42% 58% 47% 53% / 55% 41% 59% 45%; background: var(--accent); z-index: -1; }
.burst::after { inset: -4px -12px; border-radius: 50% 40% 55% 45%; }
.burst b { display: block; font-size: 30px; } .burst span { font-size: 15px; }
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; background: rgba(20,22,26,.82); color: #fff; font-size: 18px; cursor: pointer; border-radius: 3px; }
.hero .arrow:hover { background: var(--accent); }
.hero .prev { inset-inline-start: 22px; } .hero .next { inset-inline-end: 22px; }
.dots { position: absolute; bottom: 16px; inset-inline-end: 50px; display: flex; gap: 8px; z-index: 3; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--head); background: transparent; cursor: pointer; }
.dots button.on { border-color: var(--accent); }

/* ---------- promo banners ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo { position: relative; display: flex; align-items: center; gap: 18px; min-height: 172px; padding: 22px 26px; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.promo:hover { transform: translateY(-2px); }
.promo.pink { background: linear-gradient(110deg, #f08a93 0%, #f6a3a7 55%, #f9b8b6 100%); }
.promo.blue { background: linear-gradient(110deg, #2aa8dc 0%, #46bde6 60%, #7fd3ef 100%); }
.promo::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 230px; height: 260px; background: rgba(255,255,255,.14); transform: skewX(-18deg); }
.promo .big { font-size: 58px; font-weight: 800; line-height: 1; direction: ltr; unicode-bidi: isolate; text-shadow: 0 6px 14px rgba(0,0,0,.12); flex-shrink: 0; }
.promo .txt { position: relative; z-index: 1; min-width: 0; }
.promo .txt b { display: block; font-size: 20px; letter-spacing: .5px; }
.promo .txt span { display: block; font-size: 13.5px; opacity: .95; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo .txt .lnk { margin-top: 6px; font-weight: 700; font-size: 12.5px; letter-spacing: 2px; opacity: .9; }
.promo .disc { position: relative; z-index: 1; margin-inline-start: auto; flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.1; background: conic-gradient(var(--accent) 0 62%, #3bb54a 62% 100%); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); font-weight: 800; }
.promo .disc small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.promo .disc b { font-size: 17px; direction: ltr; unicode-bidi: isolate; }

/* ---------- new-search form ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat .circ { width: 46px; height: 46px; font-size: 22px; }
.cat.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form label.inline { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 14px; flex-wrap: wrap; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); min-width: 0; }
.form input, .form textarea, .form select { border-radius: 22px; }
.form textarea { border-radius: 16px; }
textarea { resize: vertical; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }

/* ---------- hot deals ---------- */
.deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.deal { background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.deal:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(0,0,0,.45); }
.deal .pic { position: relative; height: 170px; display: grid; place-items: center; font-size: 76px; overflow: hidden; }
.deal .pic::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.5) 1.4px, transparent 1.5px); background-size: 30px 30px; }
.deal .pic span { position: relative; filter: drop-shadow(0 12px 14px rgba(0,0,0,.25)); transition: transform .3s; }
.deal:hover .pic span { transform: scale(1.08) rotate(-4deg); }
.deal .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 14px; transition: transform .3s; }
.deal .pic.has-img::before { display: none; }
.deal:hover .pic img { transform: scale(1.05); }
.promo-img { position: relative; z-index: 1; flex-shrink: 0; width: 120px; height: 120px; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.45); }
.promo-img img { width: 100%; height: 100%; object-fit: contain; }
.promo .txt .pp { margin-top: 8px; display: inline-block; align-self: flex-start; background: #fff; color: var(--accent); font-weight: 800; font-size: 18px; padding: 2px 14px; border-radius: 999px; direction: ltr; unicode-bidi: isolate; }
.sale { position: absolute; top: 16px; inset-inline-end: 16px; width: 56px; height: 56px; border-radius: 50% 50% 50% 8%; background: var(--good); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); z-index: 1; }
.sale.drop { background: var(--bad); font-size: 13px; direction: ltr; }
.deal .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.deal .nm { font-weight: 600; unicode-bidi: plaintext; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal .vd { color: var(--muted); font-size: 12.5px; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal .pr { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.deal .pr b { color: var(--accent); font-size: 21px; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.deal .pr span { color: var(--muted); font-size: 12.5px; }
.deal .of { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; }
.deal .of em { font-style: normal; color: var(--accent); font-weight: 600; }

/* ---------- category boards (Milk forum cards) ---------- */
.boards-title { font-size: 30px; font-weight: 700; margin: 24px 4px 14px; }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.board { background: var(--card); border-radius: 18px; padding: 26px 26px 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s, transform .2s; cursor: pointer; text-align: start; font: inherit; }
.board:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.board.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.board.new-board { align-items: center; justify-content: center; text-align: center; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 5%, var(--card)); box-shadow: none; }
.board.new-board .plus { font-size: 34px; }
.board.new-board h3 { justify-content: center; color: var(--accent); }
.board .top { display: flex; gap: 18px; align-items: flex-start; }
.circ { width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: var(--c, var(--accent)); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.board h3 { font-size: 19px; font-weight: 600; margin: 4px 0 6px; display: flex; gap: 6px; align-items: center; }
.board h3 .ok { color: var(--good); font-size: 16px; }
.board p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board .rule { width: 70px; height: 3px; background: var(--accent); border-radius: 2px; margin: 22px 0 14px; }
.board .stats { display: flex; gap: 28px; margin-top: auto; }
.board .stats div { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); }
.board .stats b { font-size: 19px; color: var(--text); font-weight: 500; }
.board .stats .d b { font-size: 15px; padding-top: 3px; }

/* ---------- search detail ---------- */
.head-title { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.head-title h2 { font-size: 22px; display: flex; gap: 12px; align-items: center; }
.head-title h2 .circ { width: 50px; height: 50px; font-size: 24px; }
.req { white-space: pre-wrap; margin: 8px 0; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.box { border-radius: var(--r); padding: 14px 18px; background: var(--card); box-shadow: var(--shadow); border-inline-start: 4px solid var(--line); }
.box.summary { border-inline-start-color: var(--good); background: linear-gradient(90deg, var(--good-soft), var(--card) 70%); }
.box.understood { border-inline-start-color: var(--muted); }
.box.error { border-inline-start-color: var(--bad); background: var(--bad-soft); }
.box.progress { border-inline-start-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--card) 80%); }
.steps { list-style: none; padding: 0; margin: 8px 0 0; max-height: 260px; overflow: auto; font-size: 13.5px; }
.steps li { padding: 2px 0; display: flex; gap: 8px; }
.steps li .tx { unicode-bidi: plaintext; overflow-wrap: anywhere; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sec-head .tabs .btn.ghost { background: var(--card); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.opt { background: var(--card); border-radius: var(--r); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); position: relative; border-top: 4px solid var(--line); }
.opt.pick { border-top-color: var(--good); }
.opt.maybe { border-top-color: var(--warn); }
.opt.rank1 { border-top-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.opt.reject, .opt.dismissed, .opt.inactive { opacity: .62; }
.opt .rank { position: absolute; top: -16px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50% 50% 50% 8%; display: grid; place-items: center; background: var(--head); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.opt.pick .rank { background: var(--good); }
.opt.rank1 .rank { background: var(--accent); }
.opt .top-line { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding-inline-end: 50px; }
.opt .nm { font-weight: 700; font-size: 16px; unicode-bidi: plaintext; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-size: 24px; font-weight: 800; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.price .unit { color: var(--muted); font-size: 13px; }
.score { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.score .bar { flex: 1; height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 60%, #b6f0c2)); border-radius: 99px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13.5px; }
.pc ul { margin: 0; padding-inline-start: 18px; }
.pc .pros li::marker { content: "✔ "; color: var(--good); }
.pc .cons li::marker { content: "✘ "; color: var(--bad); }
details summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
td.num { direction: ltr; text-align: end; white-space: nowrap; }
.opt .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.spark { width: 100%; height: 34px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark circle { fill: var(--accent); }
ul.advice { margin: 0; padding-inline-start: 20px; } ul.advice li { margin: 3px 0; }
.q { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.sources a { display: block; overflow-wrap: anywhere; unicode-bidi: plaintext; font-size: 13.5px; }
.notes .n { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }

.foot { background: var(--head); color: #aeb3bc; font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------- visitor requests: owner's inbox (local) + "your requests" (public) ---------- */
.inbox { margin-top: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border-top: 3px solid var(--accent); padding: 4px 16px; }
.inbox-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; font-weight: 700; font-size: 16px; }
.req-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.req-item .circ { width: 46px; height: 46px; font-size: 22px; }
.req-body { flex: 1; min-width: 0; }
.req-text { font-weight: 600; overflow-wrap: anywhere; }
.req-body .chips { margin-top: 6px; align-items: center; }
.req-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.my-reqs h3 { margin-top: 0; }
.req-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.req-line .req-text { flex: 1; min-width: 160px; }
.req-line a.pill { text-decoration: none; }
#myReqs:not(:empty) { margin-bottom: 14px; }
.form-panel + #myReqs { margin-top: 14px; }

/* ---------- «بحث جديد»: the home box and the 3-step page ---------- */
.newsearch { padding: 22px 24px; border-top: 4px solid var(--accent); }
.ns-head { display: flex; gap: 14px; align-items: center; }
.ns-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 20px -10px var(--accent); }
.ns-head h2 { margin: 0; font-size: 26px; }
.ns-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.newsearch .box.pub { margin: 14px 0 0; }
.step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; font-size: 17px; }
.form .step { margin-top: 10px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.newsearch .cats { margin-top: 12px; }
.newsearch textarea { font-size: 16px; padding: 14px 16px; }
details.more { border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; }
details.more summary { font-size: 14.5px; }
.more-body { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.btn.go { align-self: stretch; justify-content: center; font-size: 18px; padding: 15px; }
.ns-quick { margin-bottom: 14px; }
.ns-row { display: flex; gap: 10px; margin-top: 16px; }
.ns-row input { flex: 1; font-size: 16px; padding: 13px 18px; border-radius: 999px; }
.ns-row .btn.big { align-self: auto; }
@media (max-width: 520px) { .ns-row { flex-direction: column; } .ns-row .btn { justify-content: center; } .ns-head h2 { font-size: 22px; } }
@media (max-width: 860px) { .req-item { flex-wrap: wrap; } .req-btns { width: 100%; justify-content: flex-start; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .infos .info:nth-child(2) { display: none; }
  .slide { grid-template-columns: 1fr 1.1fr; }
  .slide h2 { font-size: 25px; }
}
@media (max-width: 980px) {
  .infos { display: none; }
  .mast { justify-content: space-between; min-height: 74px; }
  .navbar { position: static; }
  .side { top: 14px; }
  .nav { flex-wrap: wrap; padding-bottom: 10px; }
  .nav-links { overflow-x: auto; scrollbar-width: none; width: 100%; }
  .nav-link { min-height: 48px; }
  .quick { width: 100%; }
  .drop { position: fixed; top: auto; inset-inline: 16px; max-width: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; order: 2; }
  .grid2, .grid3, .pc, .promos { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 160px 1fr; }
  .slide .emo { font-size: 60px; } .slide .emo span:nth-child(2) { font-size: 84px; }
  .slide .copy::before { display: none; }
  .slide h2 { font-size: 23px; }
  .slide .copy { padding: 34px 20px 54px; }
  .dots { inset-inline-end: 50%; transform: translateX(-50%); bottom: 14px; }
  .cats { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .burst { width: 86px; height: 86px; top: -56px; inset-inline-start: auto; inset-inline-end: 18px; }
  .burst b { font-size: 22px; } .burst span { font-size: 12px; }
  .hero .arrow { top: 80px; width: 34px; height: 34px; }
  .promo .big { font-size: 44px; } .promo .disc { width: 84px; height: 84px; }
  .boards-title { font-size: 24px; }
}
@media (max-width: 520px) {
  .brand-txt { font-size: 22px; }
  .cartbox b { font-size: 14px; }
  .cartbox .small { display: none; }
  .promo { padding: 18px; gap: 12px; }
  .promo .disc { display: none; }
  .promo-img { width: 84px; height: 84px; }
  .quick select { max-width: 110px; }
}

/* Public site (find.seelive.work): read-only, content published by the owner's local app. */
.public .priv { display: none !important; }
html:not(.public) .pub { display: none !important; }

/* ---------- phone app: compact sticky header, bottom tab bar, one screen per tab ---------- */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .topline, .navbar, .cartbox { display: none; }
  .masthead { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 var(--line), 0 8px 18px -16px rgba(0,0,0,.5); }
  .mast { min-height: 56px; justify-content: center; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .brand-txt { font-size: 21px; }
  .wrap { padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .layout { padding-top: 12px; padding-bottom: 24px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* the search list is its own tab («عمليات البحث»); other tabs show only the page */
  .side { display: none; }
  body[data-page="searches"] .side { display: flex; }
  body[data-page="searches"] .view { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    background: none; border: 0; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .tabbar .ti { position: relative; font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .75; }
  .tabbar .active { color: var(--accent); }
  .tabbar .active .ti { filter: none; opacity: 1; }
  .tabbar .tb-new .ti { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
    filter: none; opacity: 1; font-size: 20px; box-shadow: 0 8px 18px -8px var(--accent); border: 3px solid var(--card); }
  .tabbar .tb-new { color: var(--accent); }
  .tabbar .count { top: -4px; inset-inline-end: -10px; }
  /* phone inputs: 16px so iPhone does not zoom in on focus; finger-sized buttons */
  input, select, textarea { font-size: 16px; }
  .btn.small { min-height: 40px; padding: 8px 14px; }
  .foot { padding-bottom: 12px; }
}
