/* apppromo-20261112: Telegram / VK app icons and the one-time login prompt. Hidden inside mini apps. */
html[data-vk-miniapp="1"] .mm-apps,
body[data-vk-miniapp="1"] .mm-apps,
html[data-mm-miniapp="1"] .mm-apps { display: none !important; }

.mm-apps-label { font-size: 12px; font-weight: 800; letter-spacing: .01em; color: var(--text-dim); }
.mm-apps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-apps-a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface, #fff); color: var(--text); font-weight: 700; font-size: 13px; text-decoration: none; line-height: 1; }
.mm-apps-a:hover { border-color: var(--accent-line, var(--accent)); color: var(--text); background: var(--accent-soft, rgba(108,71,255,.08)); }
.mm-apps-a .brand-logo { width: 24px; height: 24px; flex: none; display: block; }
.mm-apps-a .mm-apps-name { white-space: nowrap; }

/* Footer */
.mm-apps-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mm-apps-foot .mm-apps-label { font-size: 14px; font-weight: 800; color: var(--text); }

/* Guest burger */
.mm-apps-menu { margin-top: 6px; padding: 8px 8px 6px; border-top: 1px solid var(--border); }
.mm-apps-menu .mm-apps-label { margin: 0 4px 8px; }
.mm-apps-menu .mm-apps-a { flex: 1; min-width: 0; justify-content: center; }

/* Mobile sheet */
.mm-apps-msheet { margin: 12px 0 4px; padding: 10px 0 0; border-top: 1px solid var(--border); }
.mm-apps-msheet .mm-apps-label { margin-bottom: 8px; }
.mm-apps-msheet .mm-apps-a { min-height: 44px; }

/* Desktop sidebar */
.mm-apps-side { margin: 6px 0 2px; padding: 8px 8px 4px; }
.mm-apps-side .mm-apps-label { margin: 0 2px 6px; }
.mm-apps-side .mm-apps-row { flex-direction: column; align-items: stretch; gap: 6px; }
.mm-apps-side .mm-apps-a { width: 100%; justify-content: flex-start; min-height: 36px; padding: 4px 10px 4px 6px; }
/* ux-20261118: the side rail is always dark (see appside.css), so the buttons must not follow the page theme (they turned white in light mode) */
.mm-apps-side .mm-apps-label { color: #8d8798; }
.mm-apps-side .mm-apps-a { background: #1c1a24; border-color: rgba(255,255,255,.16); color: #f2f0f7; }
.mm-apps-side .mm-apps-a:hover { background: #2a2636; border-color: rgba(255,255,255,.28); color: #fff; }
@media (min-width: 761px) {
  html[data-appside-collapsed="1"] .mm-apps-side { padding: 4px 0; }
  html[data-appside-collapsed="1"] .mm-apps-side .mm-apps-label,
  html[data-appside-collapsed="1"] .mm-apps-side .mm-apps-name { display: none; }
  html[data-appside-collapsed="1"] .mm-apps-side .mm-apps-row { flex-direction: column; align-items: center; gap: 6px; }
  html[data-appside-collapsed="1"] .mm-apps-side .mm-apps-a { width: 36px; min-width: 36px; min-height: 36px; padding: 4px; border-radius: 50%; justify-content: center; }
}

/* Login page / modal hint — sits under the social buttons, does not block sign-in */
.mm-apps-login { margin: 16px 0 0; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); }
.mm-apps-login .mm-apps-lead { margin: 0 0 10px; font-size: .9rem; font-weight: 700; color: #e9e6f1; }
.mm-apps-login .mm-apps-hint { margin: 8px 0 0; font-size: .76rem; color: #8d8798; }
.mm-apps-login .mm-apps-a { background: #1c1a24; border-color: rgba(255,255,255,.16); color: #f2f0f7; }
.mm-apps-login .mm-apps-a:hover { background: #2a2636; }

/* One-time prompt after sign-in */
.mm-ap-ov { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12,10,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mm-ap-card { width: min(420px, 100%); box-sizing: border-box; padding: 22px 20px 18px; border-radius: 20px; background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(12,10,18,.28); }
.mm-ap-card h2 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.mm-ap-card .mm-ap-sub { margin: 0 0 16px; font-size: .92rem; color: var(--text-dim); }
.mm-ap-card .mm-apps-row { margin: 0 0 16px; }
.mm-ap-card .mm-apps-a { flex: 1; justify-content: center; min-height: 46px; }
.mm-ap-go { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; color: #fff; background: var(--accent-grad, linear-gradient(135deg,#6c47ff,#ff4d9d)); cursor: pointer; }
.mm-ap-go:hover { filter: brightness(1.05); }
.mm-ap-note { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 760px) {
  .mm-ap-ov { align-items: flex-end; padding: 0; }
  .mm-ap-card { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .mm-ap-ov { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .mm-ap-card { animation: none; } }
@keyframes mm-ap-up { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.mm-ap-card { animation: mm-ap-up .2s ease both; }
