.hm { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.4rem; animation: hmIn .45s ease both; }
.hm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem; }
.hm-k { margin: 0; font: 700 .74rem 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: #a1a1aa; }
.hm-head h1 { margin: .3rem 0 .2rem; font: 800 clamp(1.9rem, 4.5vw, 3rem)/1.1 'Cinzel', Georgia, serif; color: #fbbf24; }
.hm-q { margin: 0; color: #a1a1aa; font-style: italic; font-size: .92rem; }
.hm-stats { display: flex; gap: .7rem; }
.hm-stats div { min-width: 120px; padding: .8rem 1rem; border: 1px solid #27272a; border-radius: 14px; background: rgba(18,18,20,.85); }
.hm-stats small { display: block; color: #a1a1aa; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.hm-stats b { font: 800 1.35rem 'Cinzel', Georgia, serif; color: #f4f4f5; }
.hm-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem; border-radius: 18px; border: 1px solid rgba(251,191,36,.45); background: linear-gradient(120deg, rgba(251,191,36,.14), rgba(16,185,129,.08)); }
.hm-next small { color: #fbbf24; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.hm-next h2 { margin: .25rem 0; font-size: 1.25rem; color: #f4f4f5; }
.hm-next p { margin: 0; color: #d4d4d8; font-size: .92rem; }
.hm-go { background: #fbbf24; color: #0b0b0c; border: 0; border-radius: 999px; padding: .8rem 1.4rem; font-weight: 800; cursor: pointer; transition: transform .2s, background-color .2s; }
.hm-go:hover { transform: translateX(4px); background: #fcd34d; }
.hm-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; border-bottom: 1px solid #27272a; scrollbar-width: thin; }
.hm-tabs button { flex: none; background: transparent; color: #a1a1aa; border: 1px solid transparent; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; font-size: .9rem; cursor: pointer; transition: color .2s, background-color .2s; }
.hm-tabs button:hover { color: #fbbf24; }
.hm-tabs button.on { background: #fbbf24; color: #0b0b0c; }
.hm-panel[hidden] { display: none !important; }
.hm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.hm-tile { text-align: left; display: grid; gap: .3rem; padding: 1.2rem; min-height: 130px; border-radius: 18px; border: 1px solid #27272a; background: rgba(18,18,20,.9); color: #f4f4f5; cursor: pointer; transition: transform .2s, border-color .2s; animation: hmIn .4s ease both; }
.hm-tile:hover { transform: translateY(-3px); border-color: #fbbf24; }
.hm-ic { font-size: 1.8rem; line-height: 1; }
.hm-tile b { font-size: 1.02rem; }
.hm-tile small { color: #a1a1aa; font-size: .82rem; line-height: 1.4; }
@keyframes hmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .hm-tiles { grid-template-columns: 1fr 1fr; } .hm-tile { min-height: 110px; padding: .9rem; } }
.hm-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
@media (min-width: 900px) { .hm-tabs { -webkit-mask-image: none; mask-image: none; } }
.hm-tiles:not(.hm-open) .hm-extra { display: none; }
.hm-more { margin-top: .9rem; background: transparent; color: #fbbf24; border: 1px solid #3f3f46; border-radius: 999px; padding: .5rem 1.2rem; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s; }
.hm-more:hover { border-color: #fbbf24; background: rgba(251,191,36,.08); }
.hm-swipe { display: none; color: #71717a; font-size: .72rem; margin: .35rem 0 0; }
@media (max-width: 899px) { .hm-swipe { display: block; } }
/* V29.8.9 — Mobile tidy: no overlaps in the top bar, readable bottom menu, floating buttons stacked above the menu */
@media (max-width: 575px) {
  .top-nav { padding: 6px 10px 6px 58px !important; min-height: 84px; align-content: center; }
  .top-nav .nav-logo { width: auto !important; flex: 1 1 auto; text-align: right !important; font-size: .78rem !important; white-space: nowrap; margin-left: auto; }
  .top-nav .nav-right { width: 100% !important; justify-content: flex-end !important; }
  #walletMicroChip { left: 74px !important; top: 12px !important; }
  #myFilesNavChip { left: 10px !important; right: auto !important; top: 52px !important; }
  #bottomNav .bottom-nav-links { justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  #bottomNav .bottom-nav-links::-webkit-scrollbar { display: none; }
  #bottomNav .bottom-nav-link { flex: 0 0 auto; min-width: 58px !important; padding: .55rem .35rem !important; }
  #bottomNav .bottom-nav-label { font-size: .64rem !important; white-space: nowrap; line-height: 1.2; }
  #floatingChatWidget { right: 12px !important; bottom: 108px !important; top: auto !important; left: auto !important; width: 46px !important; height: 46px !important; }
  #aiChatToggle { right: 12px !important; bottom: 162px !important; top: auto !important; left: auto !important; width: 46px !important; height: 46px !important; }
}
body:has(#roleSwitcherBar) #earnPopup { bottom: 150px !important; }
@media (max-width: 575px) {
  #chatWidgetButton { right: 12px !important; bottom: 216px !important; top: auto !important; left: auto !important; width: 46px !important; height: 46px !important; }
}
@media (min-width: 576px) {
  #walletMicroChip { left: 76px !important; top: 14px !important; }
  .top-nav .nav-logo { margin-left: 206px; }
  #myFilesNavChip { left: 450px !important; right: auto !important; top: 13px !important; }
}
