:root{--bg:#0f1115;--panel:#181b22;--panel-2:#1f232c;--border:#2a303b;--text:#e7e9ee;--muted:#9aa3b2;--accent:#ff5b8a;--accent-2:#6ea8ff;--bubble-user:#2a3441;--bubble-assistant:#1d2230;--danger:#ff6b6b;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji}*,:after,:before{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--bg);color:var(--text);min-height:100%}html[dir=rtl] body{font-family:ui-sans-serif,system-ui,Segoe UI,Tahoma,Geeza Pro,Noto Naskh Arabic,Arial,sans-serif}button{font:inherit;color:inherit}a{color:var(--accent-2)}.app{display:grid;grid-template-rows:auto 1fr auto;height:100vh;max-width:920px;margin:0 auto;padding:16px;grid-gap:12px;gap:12px}.header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.brand{display:flex;flex-direction:column;gap:2px}.brand .title{font-weight:700;font-size:18px}.brand .tagline{color:var(--muted);font-size:12px}.header-actions{display:flex;gap:8px;align-items:center}.lang-switcher{display:inline-flex;background:var(--panel-2);border:1px solid var(--border);border-radius:999px;overflow:hidden}.lang-switcher button{background:transparent;border:0;padding:6px 12px;cursor:pointer;color:var(--muted)}.lang-switcher button[aria-pressed=true]{background:var(--accent);color:#fff}.icon-btn{background:var(--panel-2);border:1px solid var(--border);border-radius:8px;padding:6px 12px;cursor:pointer;color:var(--text)}.icon-btn:hover{border-color:var(--accent-2)}.thread{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:12px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.empty{margin:auto;text-align:center;color:var(--muted);padding:32px}.empty h2{margin:0 0 8px;color:var(--text)}.bubble{max-width:80%;padding:10px 14px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;line-height:1.5}.bubble.user{align-self:flex-end;background:var(--bubble-user);border-bottom-right-radius:4px}html[dir=rtl] .bubble.user{border-bottom-right-radius:14px;border-bottom-left-radius:4px}.bubble.assistant{align-self:flex-start;background:var(--bubble-assistant);border-bottom-left-radius:4px}html[dir=rtl] .bubble.assistant{border-bottom-left-radius:14px;border-bottom-right-radius:4px}.bubble.error{background:hsla(0,100%,71%,.15);color:var(--danger);align-self:center;font-size:13px}.retrieved-block{margin-top:10px;font-size:12px;color:var(--muted)}.retrieved-heading{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:6px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-gap:8px;gap:8px}.product-card{display:flex;flex-direction:column;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;overflow:hidden;color:var(--text)}.product-card-media{position:relative;aspect-ratio:1/1;background:#12151b;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-card-hot{position:absolute;top:6px;left:6px;padding:2px 6px;border-radius:4px;background:#ff5b8a;color:#fff;font-size:10px;font-weight:700;letter-spacing:.5px;line-height:1}.product-card-media img{width:100%;height:100%;object-fit:cover;display:block}.product-card-placeholder{width:100%;height:100%;background:linear-gradient(135deg,rgba(110,168,255,.08),rgba(255,91,138,.08))}.product-card-body{padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px}.product-card-title{font-size:13px;font-weight:600;color:var(--text);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-sub{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-card-price{font-size:13px;font-weight:600;color:var(--accent-2);margin-top:4px}.product-card-cashback{font-size:11px;font-weight:600;color:#ff5b8a;margin-top:2px}.reward-list{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12px;line-height:1.2;text-decoration:none}.chip.reward{background:rgba(255,91,138,.12);border:1px solid rgba(255,91,138,.3);color:var(--text)}a.chip.reward:hover{border-color:var(--accent)}.reward-chip-name{color:var(--text)}.reward-chip-points{background:rgba(255,91,138,.25);color:#ffd6e2;font-weight:600}.reward-chip-cashback,.reward-chip-points{border-radius:999px;padding:1px 8px;font-size:11px}.reward-chip-cashback{background:#ff5b8a;color:#fff;font-weight:700;letter-spacing:.3px}.typing{display:inline-flex;gap:3px;align-items:center;color:var(--muted);font-size:12px}.dot{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s ease-in-out infinite}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.2}40%{opacity:1}}.composer{display:flex;gap:8px;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:8px}.composer textarea{flex:1 1;min-height:44px;max-height:160px;background:transparent;color:var(--text);border:0;outline:none;resize:none;font:inherit;padding:8px}.composer button{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:10px 16px;cursor:pointer;font-weight:600}.composer button:disabled{opacity:.5;cursor:not-allowed}