.forecast-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 20px; }
.forecast-actions > div:first-child { display: flex; gap: 6px; padding: 5px; border-radius: 28px; background: #f3effb; }
.forecast-actions > div:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
.forecast-actions a { display: inline-block; padding: 9px 15px; border-radius: 22px; color: #5949b3; font-weight: 700; }
.forecast-actions a.active { background: #5949b3; color: #fff; }
.forecast-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 0 0 26px; padding: 18px 22px; border: 1px solid #eee5f4; border-radius: 12px; background: #fff; }
.forecast-filter label { flex: 1 1 210px; margin: 0; color: #5949b3; font-weight: 700; }
.forecast-filter .form-control { margin-top: 7px; }
.forecast-filter button { border: 0; }
.forecast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.forecast-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #eee5f4; border-top: 4px solid #f4b72c; border-radius: 12px; background: #fff; box-shadow: 0 3px 24px rgba(45,70,222,.12); }
.forecast-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #5949b3; font-weight: 700; }
.forecast-card h3 { margin: 18px 0 4px; color: #5949b3; font-size: 22px; }
.forecast-pill { padding: 4px 10px; border-radius: 20px; background: #e9f8ef; color: #267448; font-size: 12px; white-space: nowrap; }
.forecast-pill.premium { background: #fff1cb; color: #835600; }
.forecast-date { color: #666; font-size: 14px; }
.forecast-balls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 15px 0; }
.forecast-balls span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(86deg,#ec038b,#fb6468 44%,#fbb936); color: #fff; font-weight: 700; box-shadow: 0 5px 8px rgba(243,42,126,.19); }
.forecast-note { margin: 4px 0 12px; }
.forecast-balls span.match { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f4b72c, 0 5px 8px rgba(243,42,126,.19); }
.forecast-result { margin: 4px 0 12px; padding: 12px 14px; border-radius: 9px; background: #f7f4fb; }
.forecast-result-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; color: #5949b3; font-size: 13px; font-weight: 700; }
.forecast-score { padding: 3px 10px; border-radius: 20px; background: #ebe6f4; color: #6b6280; font-size: 12px; white-space: nowrap; }
.forecast-score.hit { background: #e9f8ef; color: #267448; }
.forecast-result-balls { display: flex; justify-content: center; gap: 7px; }
.forecast-result-balls span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #5949b3; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 2px #e2d9f0; }
.forecast-result-balls span.match { background: linear-gradient(86deg,#ec038b,#fb6468 44%,#fbb936); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f4b72c; }
.forecast-pending { margin-top: 8px; color: #666; font-size: 14px; }
.forecast-play { margin-bottom: 16px; color: #5949b3; font-weight: 700; }
.forecast-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #eee5f4; color: #777; font-size: 12px; }
.forecast-empty { padding: 48px 22px; border: 1px solid #eee5f4; border-radius: 12px; background: #fff; text-align: center; color: #5949b3; }
.forecast-disclaimer { margin: 22px 0 0; color: #666; font-size: 14px; }
.forecast-pages { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 24px 0; }
.forecast-form-card { max-width: 760px; margin: 0 auto; padding: 30px; border: 1px solid #eee5f4; border-radius: 12px; background: #fff; box-shadow: 0 3px 24px rgba(45,70,222,.12); }
.forecast-form-card h2, .forecast-form-card h3 { color: #5949b3; }
.forecast-field { margin: 16px 0; }
.forecast-field label { display: block; margin-bottom: 6px; color: #5949b3; font-weight: 700; }
.forecast-field small { display: block; margin-top: 5px; color: #666; }
.forecast-field input[type=file] { height: auto; padding: 9px; }
.forecast-field .errorlist { margin: 8px 0; padding-left: 20px; color: #bb2459; }
.forecast-dashboard-head, .forecast-my-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.forecast-my-row { padding: 14px 0; border-bottom: 1px solid #eee5f4; }
.forecast-profile-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; padding: 26px; border: 1px solid #eee5f4; border-radius: 12px; background: #fff; box-shadow: 0 3px 24px rgba(45,70,222,.12); }
.forecast-profile-head h2, .forecast-profile-title { color: #5949b3; }
.forecast-profile-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.forecast-profile-kicker { color: #a67614; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.forecast-tagline { margin: 0 0 4px; color: #322a4a; font-weight: 700; }
.forecast-avatar { display: inline-block; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; background: #f3effb; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eee5f4; }
.forecast-price { color: #5949b3; font-size: 26px; font-weight: 700; }
.forecast-price small { display: block; color: #666; font-size: 14px; font-weight: 400; }
.forecast-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.forecast-plans label { position: relative; cursor: pointer; }
.forecast-plans input { position: absolute; opacity: 0; }
.forecast-plans span { display: flex; flex-direction: column; gap: 5px; min-height: 118px; padding: 17px; border: 2px solid #e8dff3; border-radius: 11px; background: #fff; color: #5949b3; }
.forecast-plans input:checked + span { border-color: #5949b3; background: #f6f2fc; }
.forecast-plans input:focus-visible + span { outline: 3px solid #f4b72c; outline-offset: 2px; }
.forecast-plans b { font-size: 22px; }
.forecast-plans small { color: #666; }
.forecast-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 24px; }
.forecast-stats div { padding: 14px 16px; border: 1px solid #eee5f4; border-radius: 11px; background: #fff; }
.forecast-stats b { display: block; color: #5949b3; font-size: 22px; }
.forecast-stats small { color: #666; }
.forecast-rank { color: #a67614; font-size: 18px; font-weight: 700; }
.forecast-board { border: 1px solid #eee5f4; border-radius: 12px; background: #fff; overflow: hidden; }
.forecast-board-row { display: grid; grid-template-columns: 50px 2fr repeat(4, 1fr); align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid #eee5f4; color: #322a4a; }
.forecast-board-head { border-top: 0; background: #f7f4fb; color: #5949b3; font-weight: 700; font-size: 13px; }
a.forecast-board-row:hover { background: #fbf9fe; }
@media (max-width: 991px) { .forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .forecast-grid { grid-template-columns: 1fr; }
  .forecast-filter { padding: 16px; }
  .forecast-filter button { width: 100%; }
  .forecast-form-card { padding: 22px 18px; }
  .forecast-actions > div { width: 100%; }
  .forecast-plans { grid-template-columns: 1fr; }
  .forecast-plans span { min-height: 0; }
  .forecast-board-head { display: none; }
  .forecast-board-row { grid-template-columns: 28px 1fr 1fr; row-gap: 6px; }
  .forecast-board-row > span:nth-child(2) { grid-column: span 2; }
  .forecast-board-row > span:nth-child(3), .forecast-board-row > span:nth-child(5) { grid-column: 2; }
  .forecast-board-row span[data-label] { font-size: 14px; }
  .forecast-board-row span[data-label]::before { content: attr(data-label) ': '; color: #666; font-size: 12px; }
}

/* Card author + locked state */
.forecast-author { display: flex; align-items: center; gap: 11px; margin: 16px 0 2px; color: #5949b3; }
.forecast-author strong { display: block; font-size: 20px; line-height: 1.2; }
.forecast-author small { display: block; color: #666; font-size: 13px; font-weight: 400; }
.forecast-author:hover strong { color: #ec038b; }
.forecast-avatar.small { width: 44px; height: 44px; }
.forecast-avatar.is-default { background: transparent; box-shadow: none; object-fit: contain; }
.forecast-avatar.medium { width: 56px; height: 56px; }
.forecast-balls.locked span { background: #f1ecf8; color: #b3a6d3; font-size: 13px; box-shadow: inset 0 0 0 1px #e2d9f0; }
.forecast-locked-text { margin: 0 0 12px; color: #666; font-size: 14px; text-align: center; }
.forecast-locked-text strong { color: #5949b3; }
.forecast-play-btn { align-self: center; margin: 2px 0 16px; padding: 10px 26px; font-size: 15px; text-align: center; }
.forecast-play-later { margin: 0 0 14px; color: #666; font-size: 13px; text-align: center; }

/* Top forecasters */
.forecast-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.forecast-top-item { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 20px; border: 1px solid #eee5f4; border-top: 4px solid #f4b72c; border-radius: 12px; background: #fff; color: #322a4a; box-shadow: 0 3px 24px rgba(45,70,222,.12); transition: transform .15s ease; }
.forecast-top-item:hover { color: #322a4a; transform: translateY(-2px); }
.forecast-top-avatar { position: relative; flex: 0 0 auto; }
.forecast-medal { position: absolute; right: -4px; bottom: -4px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.forecast-medal.rank-1 { background: #f4b72c; }
.forecast-medal.rank-2 { background: #a9b0c2; }
.forecast-medal.rank-3 { background: #cd8b5a; }
.forecast-top-body { flex: 1 1 auto; min-width: 0; }
.forecast-top-body strong { display: block; overflow: hidden; color: #5949b3; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.forecast-top-rate { display: flex; align-items: center; gap: 9px; margin: 6px 0 3px; }
.forecast-top-rate b { color: #322a4a; font-size: 16px; }
.forecast-meter { flex: 1 1 auto; height: 8px; border-radius: 4px; background: #f1ecf8; overflow: hidden; }
.forecast-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(86deg,#ec038b,#fb6468 44%,#fbb936); }
.forecast-top-body small { display: block; color: #666; font-size: 12px; }
@media (max-width: 991px) { .forecast-top { grid-template-columns: 1fr; gap: 12px; } }

/* Forecasting tab (account area) */
.forecast-account-card { height: 100%; padding: 30px; border-radius: 12px; background: #fff; }
.forecast-account-card .icon { display: flex; align-items: center; justify-content: center; height: 110px; }
.forecast-account-card .icon .forecast-avatar { width: 96px; height: 96px; }
.forecast-account-links a { color: #5949b3; font-weight: 700; }
.forecast-row-balls { display: flex; flex-wrap: wrap; gap: 6px; }
.forecast-row-balls .account-number-ball { flex: 0 0 34px; width: 34px; height: 34px; }
.forecast-row-balls .account-number-ball.match { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f4b72c; }
.forecast-post-hint { display: block; color: #666; }
.forecast-terms-box { margin: 6px 0 18px; padding: 20px 22px; border: 1px solid #eee5f4; border-radius: 12px; background: #fbf9fe; }
.forecast-terms-box h5 { margin-bottom: 6px; color: #5949b3; }
.forecast-terms-lead { margin-bottom: 12px; color: #322a4a; }
.forecast-terms { margin: 0; padding-left: 20px; color: #4b4560; font-size: 15px; line-height: 1.6; list-style: decimal; }
.forecast-terms li { margin-bottom: 8px; }
.forecast-terms strong { color: #5949b3; }
.forecast-terms-accept label { display: flex; align-items: flex-start; gap: 10px; color: #5949b3; font-weight: 700; cursor: pointer; }
.forecast-terms-accept input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }

/* Forecasting sections */
.forecast-see-all { margin: 0; padding: 0 0 22px; text-align: center; }
.forecast-see-all a { color: #5949b3; font-weight: 700; }
.forecast-post-form { padding: 6px 30px 30px; }
.forecast-post-form label { color: #5949b3; font-weight: 700; }
.forecast-picker-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.forecast-picker-head label { flex: 0 0 auto; width: auto; margin: 0; white-space: nowrap; }
.forecast-picker-count { flex: 0 0 auto; white-space: nowrap; padding: 3px 11px; border-radius: 14px; background: #f3effb; color: #5949b3; font-size: 13px; font-weight: 700; }
.forecast-picker-clear { margin-left: auto; padding: 0; border: 0; background: none; color: #ec038b; font-weight: 700; cursor: pointer; }
.forecast-picker { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 7px; margin: 0 0 14px; padding: 16px; list-style: none; border-radius: 12px; background: #f8f6fc; }
.forecast-picker li { display: flex; justify-content: center; }
.forecast-picker button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #ededff; color: #595192; font-weight: 600; font-size: 14px; cursor: pointer; }
.forecast-picker button:hover:not(:disabled), .forecast-picker button.sel { background: linear-gradient(86deg,#ec038b,#fb6468 44%,#fbb936); color: #fff; box-shadow: 0 7px 7px rgba(243,42,126,.23); }
.forecast-picker button:disabled { opacity: .45; cursor: not-allowed; }
.forecast-picker button:focus-visible { outline: 3px solid #5949b3; outline-offset: 2px; }
.forecast-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.forecast-post-actions small { flex: 1 1 280px; color: #666; }
.forecast-post-actions a { color: #5949b3; font-weight: 700; }

/* Forecaster profile edit */
.forecast-photo-card { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 32px 24px; border-radius: 12px; background: #fff; box-shadow: 0 3px 24px rgba(45,70,222,.12); text-align: center; }
.forecast-photo-preview .forecast-avatar { width: 128px; height: 128px; }
.forecast-photo-card h4 { margin: 16px 0 2px; color: #5949b3; }
.forecast-photo-tagline { margin: 0; color: #666; }
.forecast-photo-button { margin-top: 18px; cursor: pointer; }
.forecast-photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.forecast-photo-input:focus-visible + small { outline: 2px solid #5949b3; }
.forecast-photo-file { margin-top: 8px; color: #666; }
.forecast-photo-remove { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #bb2459; font-weight: 600; cursor: pointer; }
.forecast-photo-public { margin-top: auto; padding-top: 18px; color: #5949b3; font-weight: 700; }
@media (max-width: 991px) { .forecast-picker { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .forecast-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 12px; }
  .forecast-post-form { padding: 6px 16px 22px; }
  .forecast-subnav a { flex: 1 1 auto; justify-content: center; }
}
.forecast-photo-remove input[type=checkbox] { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; }
.forecast-picker-head { width: 100%; }
.forecast-picker-clear { order: 3; }
.forecast-back { margin: 0 0 18px; }
.forecast-back a, .forecast-terms-link a { color: #5949b3; font-weight: 700; }
.forecast-terms-link { margin: 18px 0 0; text-align: center; }
.forecast-field-help { display: block; margin-top: 5px; color: #666; }
.forecast-buy .forecast-profile-id { margin-bottom: 20px; }
.forecast-buy-draw { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; background: #f7f4fb; }
.forecast-buy-draw span { display: block; color: #666; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.forecast-buy-draw strong { display: block; color: #5949b3; font-size: 18px; }
.forecast-buy-draw small { color: #666; }
.forecast-buy-price { text-align: right; }
.forecast-buy-price strong { font-size: 26px; }
.forecast-buy .forecast-balls { margin: 20px 0; }
.forecast-buy form { margin-top: 6px; }
.forecast-buy form label { color: #5949b3; font-weight: 700; }
.forecast-buy-button { width: 100%; padding: 13px; font-size: 16px; }

/* Join page steps */
.forecast-join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 30px; }
.forecast-join-steps > div { padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 3px 24px rgba(45,70,222,.12); text-align: center; }
.forecast-join-steps span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(86deg,#ec038b,#fb6468 44%,#fbb936); color: #fff; font-weight: 700; }
.forecast-join-steps h5 { margin-bottom: 6px; color: #5949b3; }
.forecast-join-steps p { margin: 0; color: #666; }
@media (max-width: 767px) { .forecast-join-steps { grid-template-columns: 1fr; gap: 12px; } }
