:root { --brand: #F27A1A; --brand-600: #DC6408; --brand-700: #B44F05; --brand-50: #FFF4E9; --brand-100: #FFE4C8; --ink: #1F1712; --ink-2: #4B3F36; --muted: #7B6F66; --line: #EEE3D8; --bg: #FFFCF8; --night: #1A130F; --green: #178A52; --red: #C8381F; --blue: #2F6BDA; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 400 16.5px/1.8 'Almarai', 'Segoe UI', Tahoma, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-700); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1060px, 100% - 28px); margin-inline: auto; }
.top { background: var(--night); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.plain { color: #E9DDD2; font-weight: 700; font-size: .95rem; padding: 6px 10px; border-radius: 8px; }
.nav a.plain:hover { background: rgba(255, 255, 255, .1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: 12px; font-weight: 800; background: var(--brand); color: #fff; border: 0; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-600); }
.btn.ghost { background: #fff; color: var(--brand-700); border: 1.5px solid var(--brand); }
.btn.dark { background: var(--night); }
.btn.red { background: var(--red); }
.btn.sm { padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; }
.hero { background: var(--night); color: #F4ECE4; padding: 28px 0 54px; text-align: center; }
.hero h1 { margin: 0 0 4px; color: #fff; font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.4; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin: 0 auto 16px; color: #CDBFB3; max-width: 560px; }
.searchbox { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 6px; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 14px; background: transparent; }
.tabs { display: flex; gap: 6px; justify-content: center; margin: -26px auto 14px; }
.tabs button { font-weight: 800; padding: 10px 22px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(31, 23, 18, .4); }
.tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters select { min-width: 150px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; }
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: .85rem; font-weight: 700; line-height: 1.4; text-align: center; }
.cat i { font-style: normal; font-size: 1.6rem; line-height: 1.2; }
.cat small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.cat[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); }
.count { color: var(--muted); margin: 4px 0 10px; font-size: .92rem; }
.list { display: grid; gap: 10px; }
.ad { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); transition: .12s; }
.ad:hover { border-color: var(--brand); box-shadow: 0 10px 22px -16px rgba(31, 23, 18, .5); }
.ad h3 { margin: 4px 0 2px; font-size: 1.08rem; line-height: 1.6; }
.ad p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.7; }
.ad .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: .82rem; }
.badge { display: inline-block; font-weight: 800; font-size: .78rem; border-radius: 99px; padding: 0 10px; }
.badge.want { background: #E4EEFF; color: var(--blue); }
.badge.offer { background: #DFF5E8; color: var(--green); }
.price { color: var(--brand-700); font-weight: 800; }
.more { text-align: center; margin: 18px 0; }
.empty { text-align: center; padding: 46px 12px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.ad-slot { display: none; min-height: 90px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); font-size: .8rem; padding: 6px; }
.ads-on .ad-slot { display: block; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 18px 0; }
.card h1, .card h2 { margin: 0 0 6px; }
.f { margin-bottom: 14px; }
.f label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 3px; color: var(--ink-2); }
.f input, .f select, .f textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--brand); }
.f small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.f textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 800; background: #fff; }
.seg input { display: none; }
.seg input:checked + span { color: var(--brand-700); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.err { color: var(--red); font-weight: 700; min-height: 1.6em; }
.ok { background: #DFF5E8; border: 1px solid #9ADBB8; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin: 12px 0; }
.det h1 { margin: 6px 0 8px; font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.5; }
.det .body p { margin: 0 0 10px; white-space: pre-wrap; }
.det .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); margin: 8px 0 14px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.crumbs { margin: 16px 0 0; font-size: .9rem; color: var(--muted); }
.safe { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.my { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.foot { background: var(--night); color: #CDBFB3; padding: 22px 0; font-size: .9rem; text-align: center; margin-top: 40px; }
.foot a { color: #FFB06B; margin: 0 8px; }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(4, 1fr); } .nav a.plain.hide-sm { display: none; } .nav a.plain { font-size: .85rem; padding: 6px 6px; } }
@media (max-width: 480px) { .cats { grid-template-columns: repeat(3, 1fr); } .row2 { grid-template-columns: 1fr; } .brand img { height: 44px; } }

.subs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.subs:empty { display: none; }
.subs button { padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; }
.subs button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.badge.star { background: #FFF1C9; color: #8A5A00; }
.ad.feat { border-color: #F5C542; background: linear-gradient(180deg, #FFFDF3, #fff); }
