.bet-history-shell {
  background: #fff;
  padding: 12px;
}

.txn-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bet-overline {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8faa;
}

.txn-page-head h2 {
  margin: 0;
  color: #1b2140;
  font-size: 24px;
}

.bet-subtitle {
  margin: 4px 0 0;
  color: #606886;
  font-size: 13px;
}

.txn-filter-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.txn-custom-date-wrap {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.txn-custom-date-wrap.show {
  display: grid;
}

.txn-filter-row label {
  display: block;
  margin-bottom: 6px;
  color: #525b79;
  font-size: 13px;
  font-weight: 600;
}

.txn-filter-row select,
.txn-filter-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d6daea;
  background: #fff;
  color: #1f2540;
  border-radius: 12px;
  outline: none;
}

.txn-filter-row select:focus,
.txn-filter-row input:focus {
  border-color: #7d8be4;
  box-shadow: 0 0 0 3px rgba(82, 101, 214, 0.14);
}

.txn-filter-btn {
  border: none;
  padding: 11px 14px;
  background: var(--mcw-accent, #ff7a00);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  min-width: 96px;
}

.txn-filter-btn:hover {
  filter: brightness(0.97);
}

.txn-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.txn-summary-card {
  border: 1px solid #dfe4f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f9faff);
  padding: 11px 12px;
}

.txn-summary-card span {
  display: block;
  font-size: 12px;
  color: #67708f;
  margin-bottom: 5px;
}

.txn-summary-card strong {
  font-size: 17px;
  color: #1b2140;
}

.txn-summary-card:nth-child(2) strong {
  color: #0f8a42;
}

.txn-summary-card:nth-child(3) strong {
  color: #cf2f25;
}

.txn-summary-card.profit-card strong {
  color: #0f8a42;
}

.txn-summary-card.loss-card strong {
  color: #cf2f25;
}

.txn-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.txn-results-count {
  margin: 0;
  font-size: 13px;
  color: #5f6783;
}

.txn-results-count strong {
  color: #1b2140;
}

.txn-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  background: #fff;
}

.txn-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.txn-table thead th {
  background: linear-gradient(180deg, #fafbff, #f3f5fc);
  color: #535a78;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #e6e8f2;
}

.txn-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #eff1f7;
  color: #1f2540;
  font-size: 14px;
  white-space: nowrap;
}

.txn-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

.txn-table tbody tr:last-child td {
  border-bottom: none;
}

.txn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.txn-status-win {
  color: #0f8a42;
  background: rgba(15, 138, 66, 0.14);
}

.txn-status-lose {
  color: #d93025;
  background: rgba(217, 48, 37, 0.14);
}

.txn-status-draw {
  color: #2456c5;
  background: rgba(36, 86, 197, 0.14);
}

.txn-empty-state {
  padding: 28px 14px;
  text-align: center;
  color: #5d657f;
  border: 1px dashed #d8dced;
  border-radius: 12px;
  background: #f9faff;
}

@media (max-width: 900px) {
  .txn-filter-wrap {
    grid-template-columns: 1fr;
  }

  .txn-custom-date-wrap {
    grid-template-columns: 1fr;
  }

  .txn-filter-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .txn-page-head h2 {
    font-size: 20px;
  }

  .txn-filter-wrap {
    grid-template-columns: 1fr;
  }

  .txn-summary-cards {
    grid-template-columns: 1fr;
  }

  .txn-table-wrap {
    border-radius: 12px;
  }
}
