:root {
  color: #172033;
  background: #f2f6fb;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
}

.member-auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
}

.member-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(232, 240, 252, 0.35) 0%, rgba(210, 226, 248, 0.55) 100%),
    url("/assets/timg.jpg") center / cover no-repeat;
}

.member-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(148, 180, 220, 0.18));
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 42px 36px 36px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(80, 110, 150, 0.18);
}

.login-panel-nav {
  padding-top: 36px;
}

.login-title {
  margin: 0 0 34px;
  text-align: center;
  color: #3d4a5c;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.login-nav-tip {
  margin: -18px 0 28px;
  text-align: center;
  color: #8b97a8;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 26px;
}

.login-field {
  display: block;
}

.login-field-label {
  display: block;
  margin-bottom: 10px;
  color: #8b97a8;
  font-size: 14px;
}

.login-field-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8dee8;
}

.login-field-line:focus-within {
  border-bottom-color: #4a7fd6;
}

.login-field-line-grow {
  flex: 1;
  min-width: 0;
}

.login-field-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #a8b3c2;
}

.login-field-line input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #2f3a4a;
  font-size: 15px;
}

.login-field-line input::placeholder {
  color: #c0c8d4;
}

.login-captcha-line {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.login-captcha-btn {
  flex: 0 0 auto;
  width: 108px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #f3f5f8;
}

.login-captcha-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.login-captcha-btn span {
  color: #7b8798;
  font-size: 13px;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #4f86e8 0%, #3b6fd4 100%);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 24px rgba(59, 111, 212, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(59, 111, 212, 0.34);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-message {
  margin: 18px 0 0;
  text-align: center;
  color: #dc2626;
  font-size: 14px;
}

@media (max-width: 480px) {
  .login-panel {
    padding: 32px 22px 28px;
  }

  .login-title {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .login-captcha-btn {
    width: 96px;
  }
}

.member-app {
  min-height: 100vh;
  padding: 18px;
  padding-bottom: 90px;
}

.app-header,
.member-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  max-width: 1560px;
  margin: 0 auto 14px;
  padding: 14px 20px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f3a70 0%, #0b6ab8 60%, #1d9bf0 100%);
  box-shadow: 0 18px 40px rgba(15, 58, 112, 0.25);
  overflow: visible;
}

/* ?????? nav + ???????? */
.member-nav-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.member-brand {
  flex: 0 0 200px;
  min-width: 0;
  padding-left: 20px;
}

.app-header p,
.member-brand p,
h1,
h2 {
  margin: 0;
}

.app-header p,
.member-brand p {
  color: #bfdbfe;
}

.app-header small {
  display: block;
  margin-top: 4px;
  color: #dbeafe;
}

.app-header h1,
.member-brand h1 {
  margin-top: 3px;
  font-size: 28px;
}

.member-main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 4px 6px;
  min-width: 0;
}

.member-main-nav button {
  flex: 0 1 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.member-main-nav button.active,
.member-main-nav button:hover {
  color: #082f49;
  background: #fde047;
}

.top-lottery-status {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px;
}

.top-lottery-status > div {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.top-lottery-status span {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.top-lottery-status strong {
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
}

.top-last-result {
  min-width: 190px;
}

.top-result-balls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.top-result-balls strong {
  margin-left: 2px;
  color: #fde047;
}

.top-result-balls span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.top-result-balls .tag-big,
.top-result-balls .tag-odd {
  color: #ffffff;
  background: #ef4444;
}

.top-result-balls .tag-small,
.top-result-balls .tag-even {
  color: #ffffff;
  background: #2563eb;
}

.top-ball {
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-style: normal;
}

.member-account {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
}

.member-account > button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #082f49;
  background: #fde047;
  font-weight: 900;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  width: 150px;
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.member-dropdown.is-open {
  display: grid;
}

.member-dropdown button,
.member-dropdown a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  color: #0f172a;
  background: #f1f5f9;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.member-placeholder {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.member-placeholder p {
  color: #64748b;
}

.member-profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.member-profile-summary span {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.member-detail-page {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.detail-page-head,
.member-table-card {
  padding: 16px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.detail-page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.detail-page-head p {
  margin: 6px 0 0;
  color: #64748b;
}

.detail-page-head button {
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
  font-weight: 800;
}

/* ?????/ ???? ??????*/
.results-lottery-tabs {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}
.results-lottery-tabs button {
  flex: 1;
  padding: 14px 0;
  border: none;
  border-right: 1px solid #dce8f5;
  background: #f8fafc;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 1px;
}
.results-lottery-tabs button:last-child {
  border-right: none;
}
.results-lottery-tabs button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}
.results-lottery-tabs button.active {
  background: linear-gradient(135deg, #0f3a70 0%, #1d9bf0 100%);
  color: #ffffff;
  font-size: 16px;
}

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

.bill-filter-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.bill-date-range,
.bill-quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bill-date-range input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.bill-date-range button,
.bill-quick-tabs button {
  padding: 9px 16px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.bill-date-range button,
.bill-quick-tabs button.active {
  color: #ffffff;
  background: #0f766e;
}

.bill-quick-tabs span {
  color: #334155;
  font-weight: 900;
}

.detail-summary-grid div {
  padding: 14px;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #ffffff;
}

.detail-summary-grid span,
.detail-summary-grid strong {
  display: block;
}

.detail-summary-grid span {
  color: #64748b;
  font-size: 13px;
}

.detail-summary-grid strong {
  margin-top: 4px;
  color: #0f172a;
  font-size: 20px;
}

.member-table-card {
  overflow-x: auto;
}

.member-detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.member-detail-table th,
.member-detail-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

.member-detail-table th {
  color: #334155;
  background: #f8fafc;
}

.member-detail-table .bet-number {
  color: #1d4ed8;
  font-weight: 900;
}

.lottery-result-table th {
  color: #ffffff;
  background: #0f766e;
}

.lottery-result-table td {
  font-weight: 700;
}

.result-ball {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.35), 0 3px 8px rgba(15, 23, 42, 0.18);
}

.ball-green {
  background: linear-gradient(145deg, #86efac 0%, #16a34a 65%, #15803d 100%);
}

.ball-blue {
  background: linear-gradient(145deg, #93c5fd 0%, #2563eb 65%, #1d4ed8 100%);
}

.ball-red {
  background: linear-gradient(145deg, #fda4af 0%, #e11d48 65%, #be123c 100%);
}

.ball-yellow {
  color: #713f12;
  background: linear-gradient(145deg, #fde68a 0%, #facc15 65%, #ca8a04 100%);
}

.result-sum {
  color: #0f172a;
  font-size: 18px;
}

.result-tag {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
}

.tag-big,
.tag-odd,
.tag-red {
  color: #b91c1c;
  background: #fee2e2;
}

.tag-small,
.tag-even,
.tag-blue {
  color: #1d4ed8;
  background: #dbeafe;
}

.tag-green {
  color: #047857;
  background: #d1fae5;
}

.tag-yellow {
  color: #92400e;
  background: #fef3c7;
}

.tag-combo {
  color: #6d28d9;
  background: #ede9fe;
}

.link-button {
  padding: 0;
  color: #1d4ed8;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
}

.profit-text {
  color: #dc2626 !important;
}

.loss-text {
  color: #15803d !important;
}

.member-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.member-pagination button {
  padding: 8px 14px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.member-pagination-info {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  margin-top: 10px;
}

.member-pagination button:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #f1f5f9;
}

.issue-bill-modal {
  width: min(1180px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.rules-content {
  padding: 20px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
  color: #334155;
  line-height: 1.9;
  white-space: pre-wrap;
}

.app-header button,
.amount-row button,
.mobile-slip button,
.login-card button {
  padding: 10px 20px;
  border-radius: 999px;
  color: #082f49;
  background: #fde047;
  font-weight: 800;
}

.issue-strip,
.play-tabs,
.bet-layout,
.login-card,
.announcement-strip,
.message {
  max-width: 1560px;
  margin: 0 auto;
}

.announcement-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid #fde68a;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 700;
}

.announcement-strip span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
}

.popup-card {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(2, 8, 23, 0.28);
}

.popup-card h2 {
  margin-bottom: 12px;
}

.popup-card p {
  color: #475569;
  line-height: 1.7;
  white-space: pre-wrap;
}

.popup-card button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: #1d4ed8;
  font-weight: 800;
}

/* ?????? */
.pwd-modal-card {
  width: min(400px, 100%);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(2, 8, 23, 0.28);
  overflow: hidden;
}
.pwd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.pwd-modal-header h3 { font-size: 16px; font-weight: 700; color: #1e293b; }
.pwd-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5f9; color: #64748b; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.pwd-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pwd-field { display: flex; flex-direction: column; gap: 6px; }
.pwd-field label { font-size: 13px; font-weight: 600; color: #475569; }
.pwd-field input {
  padding: 10px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-size: 14px; background: #f8fafc;
}
.pwd-field input:focus { outline: none; border-color: #3b82f6; background: #fff; }
.pwd-modal-footer {
  display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid #e2e8f0;
}
.pwd-btn-cancel {
  flex: 1; padding: 10px; border-radius: 10px;
  background: #f1f5f9; color: #64748b; font-weight: 600; font-size: 14px;
}
.pwd-btn-submit {
  flex: 2; padding: 10px; border-radius: 10px;
  background: #1d4ed8; color: #fff; font-weight: 700; font-size: 14px;
}
.pwd-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.login-card {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
}

.login-card input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

.message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 700;
}

.issue-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.issue-strip div,
.market-card,
.bet-slip {
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.issue-strip div {
  padding: 14px 16px;
}

.issue-strip span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.issue-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.timer {
  color: #dc2626;
}

.play-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
}

.play-tabs button {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-weight: 800;
}

.play-tabs button.active {
  color: #ffffff;
  background: #1d4ed8;
}

.member-betting-layout {
  max-width: 1560px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 288px;
  gap: 22px;
  align-items: start;
  margin: 0 auto;
}

.member-side-panel,
.member-market-panel,
.member-history-panel {
  display: grid;
  gap: 12px;
}

.member-market-panel {
  position: relative;
}

.member-market-panel.market-closed .market-card {
  filter: grayscale(0.78);
  opacity: 0.62;
}

.member-market-panel.market-closed .top-play-tabs {
  filter: none;
  opacity: 1;
}

.market-closed-mask {
  position: absolute;
  inset: 56px 0 0;
  z-index: 12;
  display: grid;
  place-content: center;
  gap: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  text-align: center;
  pointer-events: all;
}

.market-closed-mask strong {
  font-size: 26px;
}

.market-closed-mask span {
  color: #fde68a;
  font-weight: 900;
}

.member-market-panel .market-card:first-child {
  grid-row: auto;
}

.member-market-panel .top-play-tabs {
  max-width: none;
  margin: 0;
  padding: 8px;
  gap: 8px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.member-market-panel .top-play-tabs button {
  min-width: 78px;
  padding: 9px 16px;
  border-radius: 12px;
  color: #0f3a70;
  background: #eff6ff;
}

.member-market-panel .top-play-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0f6ca8 100%);
}

.side-card,
.member-history-panel {
  padding: 14px;
  border: 1px solid #dce8f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.side-card h2,
.member-history-panel h2 {
  margin-bottom: 12px;
  font-size: 16px;
  text-align: center;
}

.info-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.info-row span,
.ticket-meta span {
  color: #475569;
}

.info-row strong {
  color: #0f172a;
}

.mini-button {
  padding: 6px 8px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.danger-mini {
  color: #b91c1c;
  background: #fee2e2;
}

.ticket-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 14px;
}

.ticket-scroll {
  max-height: 360px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.ticket-order {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.ticket-order-head {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: #f8fafc;
}

.ticket-order-head strong {
  color: #0f3a70;
  font-size: 13px;
  word-break: break-all;
}

.ticket-order-head span {
  color: #64748b;
  font-size: 12px;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 14px;
}

.ticket-table th,
.ticket-table td {
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.ticket-table th {
  color: #334155;
  background: #f8fafc;
}

.ticket-card p {
  margin: 6px 0;
  color: #334155;
  font-size: 14px;
}

.ticket-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.ticket-actions button {
  padding: 8px 14px;
  border-radius: 8px;
  color: #0f172a;
  background: #e2e8f0;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow-y: auto;
}

.history-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.history-row-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.history-row-head strong {
  color: #0f3a70;
  flex-shrink: 0;
  font-size: 14px;
}

.history-row-head small {
  color: #94a3b8;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

.mini-result-balls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-ball {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.mini-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mini-result-tags span,
.mini-result-tags em {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mini-result-tags span {
  color: #0f172a;
  background: #e2e8f0;
}

.muted-text {
  color: #64748b;
}

.bet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.market-card,
.bet-slip {
  padding: 14px;
}

.market-card:first-child {
  grid-row: span 2;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 20px;
}

.section-title span,
.bet-slip p {
  color: #64748b;
}

.inline-bet-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline-bet-toolbar span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.inline-bet-toolbar strong {
  color: #dc2626;
  font-size: 15px;
}

.inline-bet-toolbar input {
  width: 90px;
  padding: 7px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.inline-bet-toolbar button {
  padding: 7px 13px;
  border-radius: 999px;
  color: #082f49;
  background: #fde047;
  font-weight: 900;
}

.inline-bet-toolbar .inline-clear-button {
  color: #475569;
  background: #e2e8f0;
}

.sum-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.sum-grid button,
.quick-grid button {
  min-height: 58px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.sum-grid button.selected,
.quick-grid button.selected {
  border-color: #2563eb;
  background: #dbeafe;
}

.sum-grid strong,
.sum-grid span,
.quick-grid strong,
.quick-grid span {
  display: block;
}

.sum-grid strong {
  color: #0f3a70;
  font-size: 20px;
}

.sum-grid span,
.quick-grid span {
  margin-top: 2px;
  color: #dc2626;
  font-weight: 800;
  font-size: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.two-side-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.two-side-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
}

.two-side-group h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #0f3a70;
  font-size: 16px;
  text-align: center;
}

.two-side-group button {
  min-height: 54px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.two-side-group button.selected {
  border-color: #2563eb;
  background: #dbeafe;
}

.two-side-group button span,
.two-side-group button strong {
  display: block;
}

.two-side-group button span {
  color: #0f172a;
  font-weight: 900;
}

.two-side-group button strong {
  margin-top: 3px;
  color: #dc2626;
  font-size: 14px;
}

.fixed-one-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fixed-one-group {
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
}

.fixed-one-group h3 {
  margin: 0;
  padding: 8px;
  color: #0f3a70;
  background: #eff6ff;
  font-size: 15px;
  text-align: center;
}

.fixed-one-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
}

.fixed-one-row.selected {
  background: #dbeafe;
}

.fixed-one-row strong {
  color: #0f172a;
  font-size: 16px;
}

.fixed-one-row span {
  color: #dc2626;
  font-size: 14px;
  font-weight: 900;
}

.fixed-one-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid #e2e8f0;
}

.fixed-one-tools button {
  padding: 5px 9px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.fixed-two-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.fixed-two-tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.fixed-two-tabs button.active {
  color: #ffffff;
  background: #1d4ed8;
}

.fixed-two-table {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
}

.fixed-two-table button {
  min-height: 46px;
  display: grid;
  gap: 2px;
  place-items: center;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
}

.fixed-two-table button.selected {
  background: #dbeafe;
}

.fixed-two-table button strong {
  color: #0f172a;
  font-size: 14px;
}

.fixed-two-table button span {
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.fixed-two-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.fixed-two-tools button {
  padding: 7px 10px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.quick-pick-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 12px;
}

.quick-generated-box,
.quick-generator-panel {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.quick-generated-box h3 {
  margin: 0;
  padding: 10px;
  color: #0f3a70;
  background: #eff6ff;
  font-size: 15px;
  text-align: center;
}

.quick-generated-list {
  min-height: 260px;
  max-height: 360px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 10px;
  overflow-y: auto;
  background: #ffffff;
}

.quick-generated-list button {
  min-height: 44px;
  display: grid;
  gap: 2px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
}

.quick-generated-list button strong {
  color: #0f172a;
}

.quick-generated-list button span {
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.quick-generated-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  text-align: center;
}

.quick-send-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #dbeafe;
}

.quick-send-box label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.quick-send-box input {
  width: 110px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.quick-send-box button {
  padding: 9px 16px;
  border-radius: 10px;
  color: #ffffff;
  background: #0d9488;
  font-weight: 900;
}

.quick-send-box .clear-bet-button {
  color: #475569;
  background: #e2e8f0;
}

.quick-send-box span {
  color: #0f172a;
  font-weight: 800;
}

.quick-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #dbeafe;
  background: #ffffff;
}

.quick-mode-tabs button {
  padding: 9px 18px;
  border-radius: 8px;
  color: #334155;
  background: #e2e8f0;
  font-weight: 800;
}

.quick-mode-tabs button.active {
  color: #ffffff;
  background: #be123c;
}

.quick-position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

/* ??????4????2?2 ????1/2??????/4???? */
.quick-position-grid.pl5-pos-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ===== ???????????? ===== */
/* ?????????? */
.max-bet-hint {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  margin-left: 6px;
}

/* ?????????*/
.qp-count-hint {
  font-size: 12px;
  color: #64748b;
  margin-left: 6px;
}

.qp-count-hint.over-limit {
  color: #ef4444;
  font-weight: 600;
}

.pl5-filter-panel {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pl5-filter-title {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pl5-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pl5-filter-label {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.pl5-filter-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.pl5-filter-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #6366f1;
}

.pl5-filter-input {
  flex: 1;
  min-width: 80px;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  outline: none;
}

.pl5-filter-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.pl5-filter-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ???????????*/
.pl5-tri-btns {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.pl5-tri-btns button {
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
  border: none;
  border-right: 1px solid #cbd5e1;
  cursor: pointer;
  color: #64748b;
  transition: background 0.15s, color 0.15s;
}

.pl5-tri-btns button:last-child {
  border-right: none;
}

.pl5-tri-btns button.active {
  background: #6366f1;
  color: #fff;
}

.pl5-tri-btns.small button {
  padding: 3px 7px;
  font-size: 11px;
}

/* ??????*/
.pl5-filter-pos-oe {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pl5-pos-oe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.pl5-pos-oe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pl5-pos-oe-item span {
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 420px) {
  .pl5-pos-oe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quick-position-card {
  display: grid;
  gap: 8px;
}

.quick-position-card h4 {
  margin: 0;
  color: #0f172a;
  text-align: center;
}

.quick-position-card input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
}

.quick-position-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.quick-position-tools button {
  padding: 5px 8px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 800;
}

.quick-rule-note {
  padding: 0 12px 10px;
  color: #64748b;
  text-align: center;
}

.quick-generator-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #dbeafe;
  background: #ffffff;
}

.quick-generator-actions button {
  padding: 9px 18px;
  border-radius: 10px;
  color: #ffffff;
  background: #0ea5e9;
  font-weight: 900;
}

/* ?????tab ?? */
.quick-main-tabs {
  display: flex;
  gap: 8px;
}
.quick-main-tabs button {
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 800;
  color: #334155;
  background: #e2e8f0;
  font-size: 13px;
}
.quick-main-tabs button.active {
  color: #ffffff;
  background: #be123c;
}

/* ???????? */
.quick-input-layout {
  display: grid;
  gap: 14px;
}

/* ???? */
.qi-input-panel {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.qi-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  background: #eff6ff;
  border-radius: 8px;
  padding: 8px 12px;
}
.qi-hint strong {
  color: #1d4ed8;
}
.qi-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  font-family: 'Courier New', Courier, monospace;
  box-sizing: border-box;
}
.qi-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.qi-parse-actions {
  display: flex;
  gap: 10px;
}
.qi-btn-parse {
  padding: 9px 22px;
  border-radius: 10px;
  color: #ffffff;
  background: #0d9488;
  font-weight: 900;
}
.qi-btn-clear {
  padding: 9px 18px;
  border-radius: 10px;
  color: #475569;
  background: #e2e8f0;
  font-weight: 800;
}

/* ?????? */
.qi-preview-panel {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qi-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #eff6ff;
  font-weight: 800;
  color: #0f3a70;
  font-size: 14px;
  flex-shrink: 0;
}
.qi-err-count {
  color: #dc2626;
  font-size: 13px;
}

/* ????????????*/
.qi-rows-scroll {
  max-height: 260px;
  overflow-y: auto;
  flex: 1;
}

/* ????*/
.qi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.qi-row:last-of-type {
  border-bottom: none;
}
.qi-row-error {
  background: #fff1f2;
  color: #b91c1c;
}
.qi-row-valid {
  background: #ffffff;
}
.qi-row-valid:hover {
  background: #f8fafc;
}
.qi-label-badge {
  min-width: 52px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
}
.qi-play-type {
  min-width: 52px;
  color: #334155;
  font-weight: 700;
}
.qi-odds-val {
  min-width: 40px;
  color: #dc2626;
  font-weight: 800;
}
.qi-item-amount {
  margin-left: auto;
  color: #0f172a;
  font-weight: 800;
}
.qi-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}
.qi-row-error .qi-remove-btn {
  display: none;
}
.qi-raw {
  font-family: 'Courier New', Courier, monospace;
  color: #b91c1c;
  font-weight: 700;
}
.qi-err-msg {
  color: #b91c1c;
  font-size: 12px;
}

/* ????????????????*/
.qi-submit-bar {
  padding: 14px;
  border-top: 1px solid #dbeafe;
  background: #f8fafc;
  display: grid;
  gap: 10px;
  flex-shrink: 0;
}
.qi-unified-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qi-unified-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
}
.qi-amount-input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}
.qi-total-hint {
  color: #334155;
  font-weight: 800;
}
.qi-format-a-total {
  font-size: 13px;
  color: #334155;
}
.qi-format-a-total strong {
  color: #dc2626;
}
.qi-credit-hint {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: #334155;
  padding: 6px 0 2px;
}
.qi-credit-hint span {
  font-weight: 700;
}
.qi-credit-over {
  color: #b91c1c;
}
.qi-over-warning {
  color: #dc2626;
  font-weight: 900;
}

.qi-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.qi-summary-row span {
  color: #334155;
  font-weight: 800;
}
.qi-submit-btn {
  padding: 10px 28px;
  border-radius: 10px;
  color: #ffffff;
  background: #dc2626;
  font-weight: 900;
  font-size: 15px;
}
.qi-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ????? */
@media (max-width: 640px) {
  .qi-row {
    flex-wrap: wrap;
  }
  .qi-item-amount {
    margin-left: 0;
  }
}

.market-bet-actions {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.bet-actions-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.bet-actions-head strong {
  color: #0f172a;
}

.bet-actions-head button {
  padding: 6px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.market-bet-actions p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
}

.amount-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.amount-row label {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.amount-row label span {
  flex: 0 0 auto;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.amount-row input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

.amount-row .clear-bet-button {
  color: #475569;
  background: #e2e8f0;
}

.default-amount-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.bet-summary-line {
  padding-top: 8px;
  color: #334155;
  font-weight: 800;
}

.bet-summary-line strong {
  color: #dc2626;
  font-size: 18px;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.chips button {
  padding: 9px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.chips button.chip-primary {
  color: #1d4ed8;
  background: #eff6ff;
}

.chips button.chip-success {
  color: #047857;
  background: #d1fae5;
}

.chips button.chip-warning {
  color: #b45309;
  background: #fef3c7;
}

.chips button.chip-danger {
  color: #b91c1c;
  background: #fee2e2;
}

.amount-preset-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
}

.amount-preset-editor input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.amount-preset-editor button {
  padding: 9px 12px;
  border-radius: 10px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
}

.amount-preset-editor small {
  grid-column: 1 / -1;
  color: #64748b;
}

.mobile-slip {
  display: none;
}

@media (max-width: 1200px) {
  .member-topbar {
    padding: 12px 16px;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .member-app {
    padding: 12px;
    padding-bottom: 86px;
  }

  .app-header {
    display: grid;
    border-radius: 16px;
  }

  .member-topbar {
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .member-nav-area {
    order: 2;
    flex: 1 1 100%;
  }

  .member-main-nav button {
    padding: 7px 10px;
    font-size: 12px;
  }

  .top-lottery-status {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 6px;
  }

  .member-brand {
    order: 1;
  }

  .member-account {
    order: 1;
  }

  .member-profile-summary {
    grid-template-columns: 1fr;
  }

  .detail-page-head {
    display: grid;
  }

  .detail-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .issue-strip {
    grid-template-columns: 1fr;
  }

  .login-card {
    display: grid;
  }

  .member-captcha-row {
    grid-template-columns: 1fr;
  }

  .member-betting-layout,
  .bet-layout {
    display: block;
  }

  .market-card,
  .bet-slip,
  .member-side-panel,
  .member-market-panel,
  .member-history-panel {
    margin-bottom: 12px;
  }

  .sum-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-side-grid {
    grid-template-columns: 1fr;
  }

  .fixed-one-grid {
    grid-template-columns: 1fr;
  }

  .fixed-two-table {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .quick-pick-layout,
  .quick-position-grid {
    grid-template-columns: 1fr;
  }

  .quick-position-grid.pl5-pos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amount-preset-editor {
    grid-template-columns: 1fr;
  }

  .bet-slip {
    display: none;
  }

  .mobile-slip {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  }

  .mobile-slip span,
  .mobile-slip strong {
    display: block;
  }
}

/* =============================================
   ????????   ============================================= */

/* ?????????*/
.detail-type-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.detail-type-filter button {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2eaf4;
  transition: background 0.15s;
}

.detail-type-filter button.active {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/* =============================================
   ????????   ============================================= */

.bac-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ?????????+ ?????? */
.bac-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bac-top-bar .bac-last-result {
  flex: 1;
  margin-bottom: 0;
}

/* ???????? */
.bac-help-btn {
  background: #1e3a5f;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ???? */
.bac-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ???????????????? */
.bac-help-modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.bac-help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #1e3a5f;
  color: #fff;
}
.bac-help-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.bac-help-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bac-help-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bac-rule-block {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid #2563eb;
}
.bac-rule-special {
  border-left-color: #dc2626;
  background: #fff5f5;
}
.bac-rule-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 6px;
}
.bac-rule-desc {
  font-size: 12px;
  color: #374151;
  line-height: 1.7;
}
.bac-rule-example {
  font-size: 11px;
  color: #6b7280;
  margin-top: 5px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  border: 1px dashed #cbd5e1;
}
.bac-rule-item {
  font-size: 12px;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.bac-tag-triplet-sm {
  background: #0f172a;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bac-tag-push-sm {
  background: #94a3b8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ????*/
.bac-odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 4px;
}
.bac-odds-table th {
  background: #1e3a5f;
  color: #fff;
  padding: 5px 8px;
  text-align: left;
}
.bac-odds-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #374151;
}
.bac-odds-table tr:last-child td { border-bottom: none; }
.bac-odds-table tr:nth-child(even) td { background: #f1f5f9; }
.bac-odds-table td:last-child {
  font-weight: 700;
  color: #dc2626;
}

.bac-rule-note {
  font-size: 11px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.6;
}

/* ?????*/
.bac-last-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafd;
  border-radius: 8px;
  border: 1px solid #e2eaf4;
  flex-wrap: wrap;
}

.bac-last-empty {
  color: #94a3b8;
  font-size: 13px;
}

.bac-balls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bac-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.bac-ball-sep {
  color: #94a3b8;
  font-size: 12px;
}

.bac-last-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bac-points {
  font-size: 12px;
  color: #64748b;
}

.bac-outcome-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.bac-tag-banker  { background: #fee2e2; color: #dc2626; }
.bac-tag-player  { background: #dbeafe; color: #2563eb; }
.bac-tag-tie     { background: #dcfce7; color: #16a34a; }
.bac-tag-lucky6  { background: #fef3c7; color: #d97706; }
.bac-tag-triplet { background: #1e293b; color: #fff; }
.bac-tag-push_1314 { background: #f1f5f9; color: #475569; }

/* ??????*/
.bac-stats-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12px;
}

.bac-stat-item     { padding: 2px 6px; border-radius: 10px; font-weight: 600; }
.bac-stat-total    { background: #e2e8f0; color: #334155; }
.bac-stat-banker   { background: #fee2e2; color: #dc2626; }
.bac-stat-player   { background: #dbeafe; color: #2563eb; }
.bac-stat-tie      { background: #dcfce7; color: #16a34a; }
.bac-stat-lucky6   { background: #fef3c7; color: #d97706; }
.bac-stat-triplet  { background: #1e293b; color: #e2e8f0; }
.bac-stat-push     { background: #e2e8f0; color: #64748b; }

/* ??????*/
.bac-road-tabs {
  display: flex;
  gap: 6px;
}

.bac-road-tabs button {
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2eaf4;
  transition: background 0.15s;
}

.bac-road-tabs button.active {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/* ????????????*/
.bac-road-scroll {
  overflow: auto;
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  background: #fff;
  min-height: 150px;
  padding: 4px;
}

.bac-bead-grid,
.bac-big-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-width: max-content;
}

.bac-road-col {
  display: flex;
  flex-direction: column;
}

.bac-road-cell {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ???? */
.bac-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
}

.bac-dot-banker   { background: #dc2626; border: 1.5px solid #b91c1c; color: #fff; }
.bac-dot-player   { background: #2563eb; border: 1.5px solid #1d4ed8; color: #fff; }
.bac-dot-tie      { background: #16a34a; border: 1.5px solid #15803d; color: #fff; }
.bac-dot-triplet  { background: #0f172a; border: 1.5px solid #334155; color: #fbbf24; }
.bac-dot-push_1314 { background: #cbd5e1; border: 1.5px solid #94a3b8; color: #475569; }
.bac-dot-lucky6   { outline: 2px solid #f59e0b; }

/* .bac-dot-sm ???????????? */

.bac-dot-badge {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

/* ?? badge?????????? */
.bac-tie-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ???????????????????????? +N */
.bac-overflow-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: #475569;
  border-radius: 3px;
  padding: 0 2px;
  line-height: 11px;
  z-index: 3;
}

.bac-empty-tip {
  font-size: 12px;
  color: #94a3b8;
  padding: 16px;
}

/* ????*/
.bac-bet-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bac-bet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bac-bet-btn {
  flex: 1;
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  font-size: 14px;
  min-width: 0;
}

.bac-bet-btn strong {
  font-size: 15px;
  font-weight: 700;
}

.bac-bet-btn span {
  font-size: 11px;
  opacity: 0.85;
}

.bac-btn-player   { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.bac-btn-banker   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.bac-btn-tie      { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.bac-btn-lucky6   { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.bac-btn-lucky7   { background: #faf5ff; color: #7c3aed; border-color: #ddd6fe; }
.bac-btn-pair     { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }

/* ???????? */
.bac-sim-bar {
  padding: 8px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #fde68a;
}
.bac-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bac-sim-title {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.3px;
}
.bac-sim-total {
  font-size: 11px;
  color: #78350f;
}
.bac-sim-total strong {
  color: #dc2626;
  font-size: 13px;
}
.bac-sim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 8px;
}
.bac-sim-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 3px 4px;
}
.bac-sim-label {
  font-size: 10px;
  color: #92400e;
}
.bac-sim-amount {
  font-weight: 700;
  color: #dc2626;
  font-size: 12px;
}
.bac-btn-triplet  { background: #0f172a; color: #f8fafc; border-color: #334155; }
.bac-btn-sum1314  { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #065f46; border-color: #6ee7b7; font-weight: 700; }

.bac-bet-btn.selected {
  border-color: currentColor;
  filter: brightness(0.88);
  transform: scale(0.97);
}

.bac-bet-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #ticket-print-area,
  #ticket-print-area * {
    visibility: visible;
  }

  #ticket-print-area {
    position: absolute;
    inset: 0 auto auto 0;
    width: 320px;
    box-shadow: none;
  }

  .ticket-input,
  .chips,
  .ticket-actions {
    display: none;
  }
}

/* ??? ???????? ?????????????????????????????????????????????????????????? */
/* ????????member-main-nav ?????? */
.lottery-type-switch {
  display: inline-flex;
  gap: 4px 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  padding: 0;
}
.lottery-type-switch button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  transition: all .18s;
  white-space: nowrap;
}
.lottery-type-switch button:hover,
.lottery-type-switch button.active {
  background: #fde047;
  color: #082f49;
}
/* ???????????????????????*/
.lottery-type-switch.light {
  background: none;
}
.lottery-type-switch.light button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 6px 12px;
  font-weight: 700;
}
.lottery-type-switch.light button:hover,
.lottery-type-switch.light button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.lottery-type-switch.small button {
  padding: 5px 10px;
  font-size: 12px;
}

/* ???????????????*/
.pl5-fixed-one-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px;
}
.pl5-fixed-one-row .fixed-one-group h3 {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 6px;
}
.pl5-fixed-one-row .fixed-one-group h3 small {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
}
@media (max-width: 540px) {
  .pl5-fixed-one-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ?????? */
.pl5-present-one-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
}
.pl5-present-pool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.pl5-present-pool-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.pl5-present-pool-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.pl5-present-pool-btn.selected {
  background: var(--color-primary, #1677ff);
  color: #fff;
  border-color: var(--color-primary, #1677ff);
}
.pl5-present-generate-btn {
  margin-left: 8px;
}
.pl5-present-result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  max-height: 200px;
  overflow-y: auto;
}
.pl5-present-result-list button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.pl5-present-result-list button.selected {
  background: #fff7e6;
  border-color: #fa8c16;
}

/* ??????4?grid?????????? */
.pl5-qp-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pl5-fixed2-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 8px 12px;
  max-height: 260px;
  overflow-y: auto;
}
.pl5-fixed2-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  background: var(--color-surface);
  font-size: 12px;
  gap: 2px;
  transition: all .15s;
}
.pl5-fixed2-grid button strong { font-size: 13px; }
.pl5-fixed2-grid button span { font-size: 9px; color: var(--color-text-muted); }
.pl5-fixed2-grid button.selected { border-color: var(--color-primary); background: var(--color-primary-light); }

.pl5-fixed4-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
}
.pl5-fixed4-input label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pl5-fixed4-input input {
  font-size: 24px;
  letter-spacing: 8px;
  font-weight: bold;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
  background: var(--color-surface);
  width: 100%;
}
.pl5-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
}
.pl5-selected-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 13px;
}
.pl5-selected-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.result-tag.tag-manual {
  background: #f6ad55;
  color: #fff;
}
.ball-blue { background: #3b82f6 !important; color: #fff !important; }

/* ?? ?????? ??????????????????????????????????????????????????????????? */
.sports-event-panel { overflow-y: auto; padding: 0 !important; }

.sports-event-list { display: flex; flex-direction: column; gap: 8px; padding: 8px; }

.sports-event-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.sports-event-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.sports-league-tag {
  background: #e0f2fe; color: #0369a1;
  font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600;
}
.sports-match-time { font-size: 12px; color: #888; flex: 1; }
.sports-open-tag {
  background: #dcfce7; color: #15803d;
  font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600;
}

.sports-teams-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 10px; font-size: 15px; font-weight: 600;
}
.sports-home-team, .sports-away-team { flex: 1; text-align: center; }
.sports-home-team { text-align: right; }
.sports-away-team { text-align: left; }
.sports-vs { color: #aaa; font-size: 12px; font-weight: 400; }

.sports-market-row { margin-bottom: 8px; }
.sports-market-label {
  font-size: 11px; color: #666; margin-bottom: 4px; display: block;
}
.sports-odds-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sports-odds-btn {
  flex: 1; min-width: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; background: #f8fafc; cursor: pointer;
  transition: all .15s;
}
.sports-odds-btn:hover:not(:disabled) { border-color: #3b82f6; background: #eff6ff; }
.sports-odds-btn.selected { border-color: #2563eb; background: #dbeafe; }
.sports-odds-btn:disabled { opacity: .4; cursor: not-allowed; }
.sports-sel-label { font-size: 11px; color: #555; }
.sports-sel-odds { font-size: 14px; font-weight: 700; color: #2563eb; }
.sports-odds-btn.selected .sports-sel-odds { color: #1d4ed8; }

/* ????*/
.sports-bet-bar {
  position: sticky; bottom: 0; background: #fff;
  border-top: 2px solid #e2e8f0;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.sports-bet-info { display: flex; align-items: flex-start; gap: 8px; }
.sports-bet-cancel {
  background: none; border: none; font-size: 18px; color: #999; cursor: pointer; padding: 0;
}
.sports-bet-match { font-size: 13px; font-weight: 600; }
.sports-bet-sel { font-size: 12px; color: #555; }
.sports-bet-actions { display: flex; gap: 8px; }
.sports-amount-input { flex: 1; height: 36px; padding: 0 10px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.sports-submit-btn {
  height: 36px; padding: 0 18px;
  background: #2563eb; color: #fff; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.sports-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ???????*/
.sports-recent-order {
  padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px;
}
.sports-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.sports-status-dot { font-size: 11px; font-weight: 600; }
.sports-status-dot.pending { color: #f59e0b; }
.sports-status-dot.won { color: #16a34a; }
.sports-status-dot.lost { color: #dc2626; }
.sports-status-dot.cancelled { color: #9ca3af; }
.sports-recent-detail { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }

/* ?????? */
.member-main-nav a.nav-link {
  flex: 0 1 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.member-main-nav a.nav-link.active,
.member-main-nav a.nav-link:hover {
  color: #082f49;
  background: #fde047;
}
.sum-grid button.selected,
.quick-grid button.selected,
.two-side-group button.selected,
.fixed-one-row.selected,
.fixed-two-table button.selected,
.bac-bet-btn.selected {
  outline: 2px solid #1d4ed8;
  background: #eff6ff;
}
.chip-btn.active { background: #fde047; font-weight: 800; }

.sports-history-score { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.sports-score-badge {
  background: #1e40af; color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 2px 10px; border-radius: 5px;
}
