.tippstats-monthly,
.tippstats-tips {
  --ts-navy: #0A0B3A;
  --ts-primary: #1D1E56;
  --ts-accent: #00ECD5;
  --ts-ok: #1aae6f;
  --ts-bad: #e5484d;
  --ts-text: #1a1a2e;
  --ts-muted: #6b7280;
  --ts-row: #f3f4f6;
  --ts-row-alt: #ffffff;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ts-text);
  margin: 1.25rem 0;
}

.tippstats-monthly:not(.tippstats-tips) {
  max-width: 440px;
}

.tippstats-tips {
  max-width: 100%;
  min-width: 0;
}

.tippstats-monthly__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(165deg, #1D1E56 0%, #0A0B3A 80%);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 236, 213, 0.22);
  box-shadow: 0 12px 28px rgba(10, 11, 58, 0.28);
}

.tippstats-monthly__total--solo {
  display: block;
}

.tippstats-monthly__total-main {
  min-width: 0;
}

.tippstats-monthly__total-value.is-pos {
  color: #00ECD5;
}

.tippstats-monthly__total-value.is-neg {
  color: #ff7b84;
}

.tippstats-tips__count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.tippstats-tips__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tippstats-tips__table--desktop {
  min-width: 640px;
}

.tippstats-tips__table--desktop th.tippstats-tips__col-num,
.tippstats-tips__table--desktop td.tippstats-tips__col-num {
  text-align: right;
  white-space: nowrap;
}

.tippstats-tips__teams,
.tippstats-tips__pick {
  max-width: 220px;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.35;
}

.tippstats-tips__cards--mobile {
  display: none;
}

.tippstats-tips__card {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.05rem;
  border-top: 1px solid #eceff3;
  background: #fff;
}

.tippstats-tips__card:nth-child(odd) {
  background: var(--ts-row);
}

.tippstats-tips__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ts-muted);
}

.tippstats-tips__card.tippstats-monthly__row--pos::before {
  background: var(--ts-ok);
}

.tippstats-tips__card.tippstats-monthly__row--neg::before {
  background: var(--ts-bad);
}

.tippstats-tips__card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--ts-muted);
  font-weight: 600;
}

.tippstats-tips__card-teams {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.tippstats-tips__card-pick {
  margin: 0 0 0.55rem;
  color: var(--ts-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.tippstats-tips__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .tippstats-tips__table--desktop {
    display: none;
  }

  .tippstats-tips__cards--mobile {
    display: block;
  }

  .tippstats-tips__wrap {
    overflow: visible;
  }

  .tippstats-monthly__total-value {
    font-size: 1.45rem;
  }

  .tippstats-tips__head {
    flex-wrap: wrap;
  }

  .tippstats-monthly__table tbody td {
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }
}

.tippstats-monthly__total-label,
.tippstats-monthly__current-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tippstats-monthly__total-value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.tippstats-monthly__table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.tippstats-monthly__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.tippstats-monthly__table thead th {
  background: var(--ts-navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
}

.tippstats-monthly__table thead th:last-child {
  text-align: right;
}

.tippstats-monthly__table tbody td {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border-top: 1px solid #eceff3;
}

.tippstats-monthly__table tbody tr:nth-child(odd) {
  background: var(--ts-row);
}

.tippstats-monthly__table tbody tr:nth-child(even) {
  background: var(--ts-row-alt);
}

.tippstats-monthly__month {
  position: relative;
  padding-left: 1.15rem !important;
  font-weight: 600;
}

.tippstats-monthly__month::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ts-muted);
}

.tippstats-monthly__row--pos .tippstats-monthly__month::before {
  background: var(--ts-ok);
}

.tippstats-monthly__row--neg .tippstats-monthly__month::before {
  background: var(--ts-bad);
}

.tippstats-monthly__profit {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.tippstats-monthly__row--pos .tippstats-monthly__profit {
  color: var(--ts-ok);
}

.tippstats-monthly__row--neg .tippstats-monthly__profit {
  color: var(--ts-bad);
}

.tippstats-monthly__empty {
  padding: 1rem;
  color: var(--ts-muted);
  font-size: 0.9rem;
}

.tippstats-widget .tippstats-monthly__pager,
.tippstats-monthly__pager {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.7rem 0.85rem !important;
  border-top: 1px solid #eceff3;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}

.tippstats-widget .tippstats-monthly__pager[hidden] {
  display: none !important;
}

.tippstats-widget .tippstats-monthly__nav {
  flex: 0 0 2.25rem !important;
  width: 2.25rem !important;
  min-width: 2.25rem !important;
  max-width: 2.25rem !important;
  height: 2.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0A0B3A !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  cursor: pointer;
}

.tippstats-widget .tippstats-monthly__nav:disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

.tippstats-widget .tippstats-monthly__pages {
  display: none !important;
}

.tippstats-widget .tippstats-monthly__pager-info {
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
