* { box-sizing: border-box; }
body { font-family: Vazirmatn, Tahoma, sans-serif; margin: 0; background: #0f1115; color: #e8eaed; }
header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #171a21; }
h1 { font-size: 18px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; background: #141821; position: sticky; top: 0; z-index: 5; }
.filters input, .filters select, .filters button { padding: 8px 10px; border-radius: 8px; border: 1px solid #2a3040; background: #1b2130; color: #e8eaed; font-family: inherit; }
.filters button { background: #2f6fed; border-color: #2f6fed; cursor: pointer; }
.filters button.ghost { background: transparent; }
#stats { padding: 0 20px; color: #9aa4b5; }
main { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 12px 20px; }
.card { background: #171b24; border: 1px solid #232a38; border-radius: 12px; padding: 12px; cursor: pointer; }
.card:hover { border-color: #2f6fed; }
.card .title { font-weight: 600; margin-bottom: 6px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; color: #9aa4b5; font-size: 12px; margin-top: 6px; }
.chip { background: #202737; border-radius: 999px; padding: 2px 8px; }
.price { color: #4ade80; font-weight: 700; margin-top: 8px; }
#pager { display: flex; gap: 8px; justify-content: center; padding: 16px; }
#pager button { padding: 6px 12px; border-radius: 8px; border: 1px solid #2a3040; background: #1b2130; color: #e8eaed; cursor: pointer; }
.hidden { display: none; }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.modal-body { background: #171b24; border-radius: 12px; padding: 20px; max-width: 720px; width: 92%; max-height: 86vh; overflow: auto; position: relative; }
#close { position: absolute; left: 12px; top: 8px; background: none; border: none; color: #e8eaed; font-size: 22px; cursor: pointer; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; }
dt { color: #9aa4b5; }
