#home-market[hidden], #home-market-more[hidden], .home-market-dialog [hidden] { display: none !important; }
#home-market { scroll-margin-top:100px; }
.home-market-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.home-market-heading p { color:#a7b6c1; margin:6px 0 0; }
.home-market-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.home-market-card { min-width:0; background:#182027; border:1px solid #34404a; border-radius:10px; padding:20px; display:flex; flex-direction:column; gap:12px; }
.home-market-icon { height:80px; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse,#dfc18717,transparent 75%); }
.home-market-icon img { width:64px; height:64px; object-fit:contain; }
.home-market-card h3 { color:#ecddbe; font-size:16px; line-height:1.4; overflow-wrap:anywhere; margin:0; }
.home-market-card p { color:#a7b6c1; font-size:12px; margin:0; overflow-wrap:anywhere; }
.home-market-card .home-market-price { color:#efce84; font-size:17px; font-weight:700; margin-top:auto; }
.home-market-card .home-market-price.tp { color:#9bcde9; }
.home-market-card button { width:100%; }
.home-market-details { display:flex; flex-direction:column; gap:5px; }
.home-market-details:empty { display:none; }
.home-market-card .home-market-quality { color:#efce84; font-weight:600; }
.home-market-actions { margin-top:24px; display:flex; justify-content:center; }
.home-market-dialog { position:fixed; inset:0; margin:auto; width:min(440px,calc(100% - 32px)); max-height:calc(100% - 32px); overflow-y:auto; box-sizing:border-box; padding:28px; background:#182027; color:#d4dbe0; border:1px solid #796748; border-radius:12px; }
.home-market-dialog::backdrop { background:#000b; }
.home-market-dialog h2 { font-family:var(--font-heading); color:#ecddbe; margin:0 0 20px; }
.home-market-dialog p { margin:12px 0; overflow-wrap:anywhere; }
.home-market-dialog .home-market-price { color:#efce84; font-size:20px; }
.home-market-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; margin-top:24px; }
.home-market-dialog button:disabled { opacity:.55; cursor:wait; }
.home-market-status { color:#c3d4c0; margin:16px 0 0; }
@media(max-width:1000px) { .home-market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .home-market-heading { align-items:flex-start; flex-direction:column; } .home-market-card { padding:14px; } .home-market-grid { gap:12px; } }
@media(max-width:350px) { .home-market-grid { grid-template-columns:1fr; } }
