/* HubGPT: фото, видео, токены */
.hm-top,.hm-opts,.hm-img{text-align:left}
.hm-top{display:flex;align-items:center;gap:10px;margin:-2px 0 6px;flex-wrap:wrap}
.hm-tabs{display:inline-flex;background:var(--bg-soft-2,#f3f4f6);border-radius:12px;padding:3px;gap:2px}
.hm-tab{border:none;background:transparent;color:var(--text-secondary,#4a5568);font:500 .82rem var(--font,inherit);padding:5px 12px;border-radius:9px;cursor:pointer;transition:all .15s}
.hm-tab:hover{color:var(--text,#1a1a1a)}
.hm-tab.active{background:#fff;color:var(--primary,#4d6bfe);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.hm-cost{margin-left:auto;font-size:.78rem;color:var(--text-muted,#8a8f98)}
.hm-cost b{color:var(--text,#1a1a1a)}

.hm-opts{display:none;flex-direction:column;gap:6px;margin-bottom:6px}
.hm-media .hm-opts{display:flex}
.hm-row{display:flex;align-items:center;gap:8px;min-width:0}
.hm-row__label{font-size:.74rem;color:var(--text-muted,#8a8f98);width:62px;flex-shrink:0}
.hm-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;padding:1px}
.hm-chips::-webkit-scrollbar{display:none}
.hm-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border,#e6e6e8);background:#fff;color:var(--text-secondary,#4a5568);font:500 .8rem var(--font,inherit);padding:5px 10px;border-radius:16px;cursor:pointer;transition:all .15s;white-space:nowrap}
.hm-chip:hover{border-color:var(--primary-light,#7e95ff);color:var(--text,#1a1a1a)}
.hm-chip.active{border-color:var(--primary,#4d6bfe);background:#eef2ff;color:var(--primary,#4d6bfe)}
.hm-chip__price{font-size:.72rem;color:var(--text-muted,#8a8f98);background:var(--bg-soft-2,#f3f4f6);border-radius:8px;padding:1px 6px}
.hm-chip.active .hm-chip__price{background:#fff;color:var(--primary,#4d6bfe)}
.hm-note{font-size:.74rem;color:var(--text-muted,#8a8f98);padding-left:70px}

.hm-img:empty{display:none}
.hm-img{margin-bottom:6px}
.hm-img__chip{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border,#e6e6e8);border-radius:12px;padding:4px 6px 4px 4px;font-size:.78rem;color:var(--text-secondary,#4a5568);max-width:260px}
.hm-img__chip img{width:40px;height:40px;object-fit:cover;border-radius:8px;flex-shrink:0}
.hm-img__chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-img__rm{border:none;background:transparent;color:var(--text-muted,#8a8f98);font-size:1.1rem;line-height:1;cursor:pointer;width:22px;height:22px;border-radius:50%;flex-shrink:0}
.hm-img__rm:hover{background:var(--bg-hover,#eef0f3);color:#ef4444}
.hm-img__add{border:1.5px dashed var(--primary-light,#7e95ff);background:#f6f8ff;color:var(--primary,#4d6bfe);font:500 .82rem var(--font,inherit);padding:8px 14px;border-radius:12px;cursor:pointer}
.hm-img__add:hover{background:#eef2ff}

.hm-user__tag{font-size:.72rem;color:var(--primary,#4d6bfe);font-weight:600;margin-bottom:4px}
.hm-user__img img{display:block;max-width:220px;max-height:220px;border-radius:10px;margin-top:6px}

.hm-result img,.hm-result video{display:block;max-width:min(100%,460px);max-height:520px;border-radius:12px;background:var(--bg-soft-2,#f3f4f6)}
.hm-result__actions{display:flex;gap:14px;margin-top:8px;font-size:.82rem}
.hm-result__actions a{color:var(--primary,#4d6bfe);text-decoration:none;font-weight:500}
.hm-result__actions a:hover{text-decoration:underline}

.hm-progress{display:flex;align-items:center;gap:10px;color:var(--text-secondary,#4a5568);font-size:.9rem}
.hm-progress__time{color:var(--text-muted,#8a8f98);font-variant-numeric:tabular-nums}
.hm-spinner{width:18px;height:18px;border:2px solid #dbe2ff;border-top-color:var(--primary,#4d6bfe);border-radius:50%;animation:hm-spin .8s linear infinite;flex-shrink:0}
@keyframes hm-spin{to{transform:rotate(360deg)}}

.hm-wallet{background:#f6f8ff;border:1px solid #e0e6ff;border-radius:12px;padding:10px 12px;margin-bottom:8px}
.hm-wallet__row{display:flex;justify-content:space-between;align-items:baseline;font-size:.85rem;color:var(--text-secondary,#4a5568)}
.hm-wallet__row b{font-size:1.05rem;color:var(--text,#1a1a1a)}
.hm-wallet__sub{font-size:.72rem;color:var(--text-muted,#8a8f98);margin:3px 0 8px;line-height:1.35}
.hm-wallet__buy{width:100%;border:none;background:var(--primary,#4d6bfe);color:#fff;font:600 .8rem var(--font,inherit);padding:8px 10px;border-radius:9px;cursor:pointer}
.hm-wallet__buy:hover{background:var(--primary-dark,#3a55e0)}

.hm-modal{display:none;position:fixed;inset:0;background:rgba(15,20,40,.45);z-index:1000;align-items:center;justify-content:center;padding:16px}
.hm-modal.open{display:flex}
.hm-modal__box{position:relative;background:#fff;border-radius:18px;max-width:400px;width:100%;padding:24px 22px 18px;box-shadow:0 20px 60px rgba(0,0,0,.2);max-height:90vh;overflow:auto;font-family:var(--font,inherit)}
.hm-modal__box h3{margin:0 0 8px;font-size:1.2rem}
.hm-modal__box p{margin:0 0 14px;font-size:.88rem;color:var(--text-secondary,#4a5568);line-height:1.5}
.hm-modal__close{position:absolute;top:10px;right:12px;border:none;background:transparent;font-size:1.5rem;line-height:1;color:var(--text-muted,#8a8f98);cursor:pointer}
.hm-pack{display:flex;justify-content:space-between;align-items:center;border:2px solid var(--primary,#4d6bfe);background:#f6f8ff;border-radius:14px;padding:12px 14px;margin-bottom:12px}
.hm-pack div{display:flex;flex-direction:column;gap:2px}
.hm-pack span{font-size:.75rem;color:var(--text-muted,#8a8f98)}
.hm-pack__price{font-size:1.25rem;color:var(--primary,#4d6bfe)}
.hm-modal__pay{width:100%;border:none;background:var(--primary,#4d6bfe);color:#fff;font:600 .95rem var(--font,inherit);padding:12px;border-radius:12px;cursor:pointer}
.hm-modal__pay:disabled{opacity:.6;cursor:default}
.hm-modal__msg{font-size:.82rem;color:var(--text-secondary,#4a5568);min-height:1.2em;margin:8px 0 4px;text-align:center}
.hm-prices{font-size:.82rem;color:var(--text-secondary,#4a5568)}
.hm-prices summary{cursor:pointer;color:var(--primary,#4d6bfe);font-weight:500}
.hm-prices ul{list-style:none;padding:0;margin:8px 0}
.hm-prices li{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid var(--border-light,#f0f0f2)}
.hm-prices p{font-size:.75rem;margin:6px 0 0}

@media (max-width:768px){
  .hm-row__label{display:none}
  .hm-note{padding-left:0}
  .hm-cost{font-size:.72rem}
  .hm-tab{padding:5px 10px}
}
