/* Модуль «Социальное»: профиль, лист «Поделиться», приглашения. Только токены из style.css. */

/* Шапка: «Мой профиль» */
.soc-me { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; white-space: nowrap; }
.soc-me:hover { border-color: var(--ink); }
.soc-me-link { margin: 10px 0 0; font-size: 15px; } .soc-me-link a { font-weight: 700; }

/* Кнопка «Поделиться» у рассчитанного прогноза */
.soc-share { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.soc-share:hover { border-color: var(--ink); }

/* Лист «Поделиться» (поверх .sheet / .sheet-card из style.css) */
.soc-card { max-height: 100vh; overflow-y: auto; }
.soc-h { font: 700 20px/1.2 var(--body); margin: 0 0 12px; }
.soc-img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.soc-img[src=""] { display: none; }
a.confirm { display: block; text-align: center; text-decoration: none; }
.confirm.soc-wa { background: var(--ink); color: var(--surface); }
.soc-btn { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; min-height: 48px; }
.soc-btn:hover { background: var(--paper); }

/* «Пригласи друзей»: лаймовый блок, тёмная кнопка WhatsApp */
.soc-invite { margin-top: 48px; background: var(--lime); color: var(--ink); border-radius: 24px; padding: 28px; display: grid; gap: 12px; --focus: var(--ink); }
.soc-invite h2 { margin: 0; font: 800 30px/1.1 var(--body); letter-spacing: -.03em; }
.soc-invite > p { margin: 0; color: #2A3530; font-size: 16px; font-weight: 600; max-width: 640px; }
.soc-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-top: 6px; }
.soc-inv .soc-link { min-width: 0; min-height: 48px; border: 0; border-radius: 12px; padding: 10px 14px; font: 600 15px var(--body); color: var(--ink); background: rgba(255, 255, 255, .7); }
.soc-inv .soc-btn, .soc-inv .confirm { width: auto; margin: 0; padding: 0 18px; font-size: 15px; min-height: 48px; border-radius: 12px; }
.soc-inv .soc-btn { background: transparent; border: 1.5px solid var(--ink); font-weight: 800; }
.soc-inv .soc-btn:hover { background: rgba(255, 255, 255, .45); }
.soc-inv-stats { margin: 0; font-variant-numeric: tabular-nums; color: #2A3530; font-weight: 600; }
@media (max-width: 860px) { .soc-invite { margin-top: 32px; padding: 20px; border-radius: 22px; } .soc-invite h2 { font-size: 24px; } }
@media (max-width: 560px) { .soc-inv { grid-template-columns: 1fr; } .soc-inv .confirm { order: -1; } }

/* Предложение поделиться после угаданного прогноза */
.soc-toast { position: fixed; left: 50%; bottom: calc(16px + var(--below, 0px)); transform: translateX(-50%); z-index: 40; width: calc(100% - 32px); max-width: 460px;
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 10px 16px; font-weight: 700; }
.soc-toast span { flex: 1; }
.soc-toast .soc-btn { width: auto; margin: 0; padding: 8px 14px; min-height: 40px; }
.soc-toast .link { margin: 0; padding: 0 6px; font-size: 22px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .soc-toast { animation: soc-in .25s ease-out; } @keyframes soc-in { from { transform: translate(-50%, 30px); opacity: 0; } } }

/* Публичный профиль */
.soc-prof { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin: 8px 0 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; align-items: center; }
.soc-prof h1 { font: 700 clamp(30px, 6vw, 48px)/1.05 var(--body); margin: 0; overflow-wrap: anywhere; }
.soc-prof .soc-cc { color: var(--ink-2); margin: 6px 0 0; }
.soc-prof .stats { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 4px 0 0; }
.soc-prof .soc-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.soc-prof .soc-actions .soc-btn, .soc-prof .soc-actions .confirm { width: auto; margin: 0; padding: 10px 18px; font-size: 16px; min-height: 46px; }
.soc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; grid-column: 1 / -1; }
.soc-badges li { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; font-weight: 700; font-size: 14px; background: var(--surface); }
.soc-badges li.longshot { background: var(--sun-bg); }
.soc-note { color: var(--ink-2); font-size: 14px; grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .soc-prof { grid-template-columns: 1fr; padding: 18px; } .soc-prof .tag.big { justify-self: start; } .soc-prof .stats { grid-template-columns: 1fr 1fr; } }

.soc-bets { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); }
.soc-bets li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.soc-bets li + li { border-top: 1px solid var(--line); }
.soc-bets .empty { color: var(--ink-2); }
.soc-bets a.bq { color: var(--ink); text-decoration: none; } .soc-bets a.bq:hover { text-decoration: underline; }

/* Страница карточки share.html */
.soc-shared { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 8px; }
.soc-shared .soc-img { max-width: 480px; margin: 0; border: 1px solid var(--line); }
.soc-shared h1 { font: 700 clamp(26px, 4.5vw, 40px)/1.12 var(--body); margin: 0 0 10px; }
.soc-shared .soc-q { font-size: 19px; margin: 0 0 18px; }
.soc-shared .confirm { max-width: 360px; }
.soc-shared .soc-by { margin: 14px 0 0; }
@media (max-width: 760px) { .soc-shared { grid-template-columns: 1fr; } }
