:root {
  --brand-primary: #2d6cdf;
  --brand-secondary: #5b7cfa;
  --brand-dark: #151c2b;
  --brand-muted: #7a8599;
  --surface-light: #f4f6fb;
  --surface-dark: #0f172a;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
}

.auth-page {
  background: linear-gradient(135deg, #eef2ff 0%, #f7f9ff 50%, #eef7ff 100%);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.1fr);
  gap: 0;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-width: 880px;
  width: 100%;
}

.auth-card-left {
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card-left h2 {
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.auth-card-left p {
  color: rgba(255, 255, 255, 0.85);
}

.auth-card-left ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.auth-card-left li {
  margin-bottom: 0.5rem;
}

.auth-card-right {
  padding: 2.5rem;
}

.auth-card-right .form-control,
.admin-form .form-control,
.admin-form .form-select {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.9rem;
}

.auth-card-right .form-control:focus,
.admin-form .form-control:focus,
.admin-form .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}

.auth-card-right .btn {
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
}

.auth-card-right .btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.client-auth-page {
  background: linear-gradient(180deg, #142d61 0%, #0d2a5b 100%);
}

.client-login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  gap: 1.5rem;
  background: url("/images/login-bg.jpg") center/cover no-repeat;
}

.client-login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1.75rem;
  /*overflow: hidden;*/
  background: #13346f;
  box-shadow: 0 30px 70px rgba(5, 15, 40, 0.45);
  position: absolute;
}

.client-logo-badge {
  position: absolute;
  right: 1.5rem;
  top: -2.5rem;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  color: #0f2f6b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid #ff4d91;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(10, 20, 40, 0.35);
}

.client-logo-badge img{
  width: 4.9rem;
}

.client-logo-badge strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.client-login-body {
  padding: 3.25rem 2rem 2rem;
  color: #fff;
}

.client-login-title {
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.client-login-form .form-control,
.client-login-form .input-group-text,
.client-login-form .btn {
  border-radius: 999px;
}

.client-login-form .form-control {
  border: 0;
  padding: 0.85rem 1.1rem;
  background: #fff;
  color: #0f172a;
}

.client-login-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.client-login-form .input-group .btn {
  border: 0;
  color: #1e3a8a;
  background: #e2e8f0;
  padding: 0 1rem;
}

.client-captcha-group .input-group-text {
  background: #f8fafc;
  color: #1e3a8a;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.2em;
  min-width: 4.75rem;
  justify-content: center;
}

.client-login-btn {
  background: linear-gradient(90deg, #cf1a74 0%, #f23c93 100%);
  border: 0;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.client-login-btn:hover {
  background: linear-gradient(90deg, #ba1467 0%, #e73388 100%);
  color: #fff;
}

.client-login-alt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.client-login-alt a {
  color: #f9a8d4;
  text-decoration: none;
}

.client-login-alt a:hover {
  color: #fbcfe8;
}

.client-login-footer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: fixed;
  bottom: 20px;
}

.client-login-footer-brand {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

#captcha-code {
  font-size: 1rem;
  letter-spacing: 0.2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  min-width: 4.75rem;
  justify-content: center;
  background: #f1f5f9;
  color: #1f2937;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.captcha-group .form-control {
  border-right: 0;
  border-radius: 0.75rem 0 0 0.75rem;
}

.captcha-group .input-group-text {
  border-left: 0;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.6rem 0.9rem;
}

.admin-page {
  background: var(--surface-light);
}

#video-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

#staff-sidebar {
  min-width: 250px;
  max-width: 280px;
  background: var(--surface-dark);
}

.sidebar-overlay {
  display: none;
}

#staff-sidebar .nav-link {
  color: #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
}

#staff-sidebar .nav-link:hover,
#staff-sidebar .nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#staff-sidebar .nav-link.text-white-50 {
  color: rgba(226, 232, 240, 0.7);
}

.admin-form .form-label {
  font-weight: 600;
  color: #334155;
}

.admin-section-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
}

.report-card {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.report-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.report-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
}

.stat-chip .label {
  color: var(--brand-muted);
  font-weight: 500;
}

.bet-row-declared {
  background: #ecfdf3;
}

.bet-row-declared td {
  color: #166534;
}

.bet-row-win {
  background: #dcfce7;
}

.bet-row-win td {
  color: #166534;
}

.bet-row-loss {
  background: #fee2e2;
}

.bet-row-loss td {
  color: #991b1b;
}

.report-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.report-filters .form-control-sm,
.report-filters .form-select-sm {
  border-radius: 0.65rem;
}

.report-table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.report-table tbody tr:hover {
  background: #f8fafc;
}

.client-limit-summary {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.client-limit-summary .summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.client-limit-summary .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.client-limit-summary .value {
  font-weight: 600;
  font-size: 1rem;
}

.client-dashboard-page {
  background: #f1f5f9;
}

.client-dashboard {
  min-height: 100vh;
  padding-bottom: 4.5rem;
}

.client-dashboard section {
  padding: 0 1rem 1rem;
}

.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #1e3a8a;
  color: #fff;
  padding: 0.75rem 1rem;
}

.client-brand-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.client-balance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.balance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.balance-label {
  color: #c7d2fe;
}

.balance-value {
  font-weight: 700;
}

.client-logout-btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.client-logout-btn:hover {
  border-color: #fff;
  color: #fff;
}

.client-welcome-bar {
  margin: 0.75rem 1rem 0.5rem;
  background: #d01c6a;
  color: #fff;
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.client-dashboard #alert {
  margin: 0 1rem 0.75rem;
}

.client-section {
  padding: 0 1rem 1rem;
}

.client-sport-tabs,
.client-casino-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.client-tab {
  flex: 1;
  border: 1px solid #cbd5f5;
  background: #e2e8f0;
  color: #1e3a8a;
  font-weight: 600;
  border-radius: 0.45rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
}

.client-tab.active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.client-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.client-event-item {
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.client-event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.client-event-status {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.client-event-status.upcoming {
  background: #e2e8f0;
  color: #475569;
}

.client-event-time {
  color: #ef4444;
  font-weight: 600;
}

.client-event-sport {
  background: #e2e8f0;
  color: #1e293b;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-event-name {
  margin-top: 0.35rem;
  font-weight: 600;
  color: #0f172a;
}

.client-section-title {
  margin-top: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.client-casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
}

.casino-tile {
  background: #0f172a;
  border-radius: 0.6rem;
  overflow: hidden;
  color: #fff;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.casino-tile img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.casino-tile-body {
  padding: 0.35rem 0.4rem;
  text-align: center;
  background: #1e3a8a;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0.6rem;
  gap: 0.5rem;
  z-index: 1100;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.client-bottom-nav .nav-link {
  border: 0;
  background: transparent;
  color: #c7d2fe;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}

.client-bottom-nav .nav-link.active {
  color: #fff;
}

.client-user-pill {
  background: #223f86;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.client-txn-link {
  color: #1e3a8a;
  font-weight: 600;
}

.session-bets-group {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

.session-bets-title {
  color: #0f172a;
}

.txn-summary-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.txn-summary-item.txn-summary-card {
  cursor: not-allowed;
  opacity: 0.7;
}

.txn-detail-row {
  cursor: pointer;
}

.txn-summary-card {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.txn-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.txn-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.txn-detail-item {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  text-align: left;
}

.txn-detail-item:hover {
  background: #f8fafc;
}

.txn-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.txn-total-bar .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.txn-total-bar .value {
  font-weight: 600;
}

.event-card {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.bet-wait {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: #fff;
}

.bet-wait-content {
  text-align: center;
  font-size: 1.25rem;
}

.cards-result-btn {
  font-size: .6rem;
  padding: 0.5rem 0.6rem;
  border: none;
  min-width: 48px;
  min-height: 38px;
  border-radius: 0.6rem;
}

.cards-results-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.cards-results-strip::-webkit-scrollbar {
  height: 6px;
}

.cards-results-strip::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

.cards-result-btn + .cards-result-btn {
  margin-left: 0.5rem;
}

.cards-results-strip .cards-result-btn + .cards-result-btn {
  margin-left: 0;
}

.cards-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.casino-preview-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.casino-card-group {
  flex: 1 1 160px;
  min-width: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
}

.casino-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.casino-card-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.casino-card-img {
  width: 28px;
  height: 40px;
  object-fit: contain;
}

.casino-card-placeholder {
  width: 28px;
  height: 40px;
  border-radius: 0.4rem;
  border: 1px dashed #cbd5f5;
  background: #fff;
}

.casino-timer {
  min-width: 48px;
  text-align: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-result-img {
  width: 48px;
  height: auto;
}

.card-result-img-lg {
  width: 72px;
  height: auto;
}

.bet-status-live {
  background: #f59e0b;
  color: #fff;
}

.bet-status-declared {
  background: #0ea5e9;
  color: #fff;
}

.bet-pl-win {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}

.bet-pl-loss {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  table-layout: fixed;
}

.market-table th,
.market-table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  vertical-align: middle;
  height: 64px;
}

.market-table tbody tr {
  height: 64px;
}

.market-col-name {
  width: 60%;
}

.market-col-price {
  width: 20%;
}

.market-col-card-left,
.market-col-card-right {
  width: 42%;
}

.market-col-card-center {
  width: 16%;
}

.market-minmax {
  font-weight: 600;
  color: #0f172a;
}

.market-normal {
  background: #2c6c72;
  color: #fff;
  font-weight: 600;
}

.market-banner {
  background: #2c6c72;
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  border-radius: 0.25rem;
}

.market-col-back {
  background: #7ec3f5;
  text-align: center;
  font-weight: 600;
}

.market-col-lay {
  background: #f7b0c5;
  text-align: center;
  font-weight: 600;
}

.market-col-yes {
  background: #7ec3f5;
  text-align: center;
}

.market-col-no {
  background: #f7b0c5;
  text-align: center;
}

.market-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-break: break-word;
}

.market-name-text {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-minmax {
  font-size: 0.75rem;
  color: #0f172a;
}

.market-table-session .market-name-text {
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
  max-height: 1.2em;
}

.market-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.market-table-card .market-card-cell {
  padding: 0.35rem;
}

.market-table-card .market-card-center {
  text-align: center;
  background: #f8fafc;
}

.market-card-center-img {
  width: 28px;
  height: auto;
}

.market-card-center-label {
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
}

.market-card-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 0.5rem;
  border: 1px solid #0f6b75;
  background: linear-gradient(180deg, #0f8ca0, #0b6b78);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.market-card-btn:focus,
.market-card-btn:hover {
  background: linear-gradient(180deg, #0f99ad, #0a6170);
}

.market-card-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 0 0.25rem;
}

.market-card-rate {
  font-weight: 700;
  font-size: 1rem;
}

.market-card-disabled {
  width: 100%;
  min-height: 56px;
  border-radius: 0.5rem;
  background: #3f4850;
  color: #ff3b30;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  text-align: center;
}

.market-card-disabled span {
  font-size: 0.65rem;
  font-weight: 600;
}

.market-card-empty {
  width: 100%;
  min-height: 56px;
}

.market-rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.market-size {
  font-size: 0.8rem;
  color: #1f2937;
}

.market-suspended {
  background: #3f4850;
  color: #ff3b30;
  text-align: center;
  font-weight: 700;
  min-height: 52px;
}

.market-running {
  background: #3f4850;
  color: #ff3b30;
  text-align: center;
  font-weight: 700;
  min-height: 52px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.score-team {
  flex: 1;
}

.score-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.score-value {
  font-size: 0.85rem;
  color: #475569;
}

.score-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.score-balls {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ball-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.ball-default {
  background: #94a3b8;
}

.ball-four {
  background: #38bdf8;
}

.ball-six {
  background: #2563eb;
}

.ball-dot {
  background: #64748b;
}

.ball-wide {
  background: #f59e0b;
}

.ball-wicket {
  background: #ef4444;
}

.score-message {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.score-alert {
  margin-top: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.ledger-amount {
  display: inline-flex;
  min-width: 90px;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.ledger-amount-positive {
  background: var(--success);
}

.ledger-amount-negative {
  background: var(--danger);
}

.hide-parent-col .parent-col {
  display: none;
}

.child-link {
  color: var(--brand-primary);
  text-decoration: underline;
}

.child-link:hover {
  color: #1d4ed8;
}

.password-strength {
  margin-top: 0.35rem;
}

.strength-meter {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.strength-meter-bar {
  height: 100%;
  width: 0%;
  background: #cbd5f5;
  transition: width 0.2s ease, background 0.2s ease;
}

.strength-weak {
  background: var(--danger);
}

.strength-fair {
  background: var(--warning);
}

.strength-good {
  background: #38bdf8;
}

.strength-strong {
  background: var(--success);
}

@media (max-width: 991.98px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card-left,
  .auth-card-right {
    padding: 2rem;
  }

  .auth-card-left {
    text-align: center;
  }

  .client-login-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  .client-login-card {
    max-width: 380px;
  }

  .admin-page > .d-flex {
    flex-direction: column;
  }

  .client-limit-summary {
    width: 100%;
    justify-content: center;
  }

  .report-header {
    align-items: flex-start;
  }

  .report-filters {
    width: 100%;
  }

  .report-filters > div {
    flex: 1 1 140px;
  }

  #staff-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    max-width: 80vw;
    min-width: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1040;
  }

  .admin-page main {
    padding: 1.5rem;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  body.sidebar-open #staff-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 575.98px) {
  .auth-wrapper {
    padding: 1.5rem 1rem;
  }

  .auth-card-left,
  .auth-card-right {
    padding: 1.5rem;
  }

  .client-login-card {
    border-radius: 1.25rem;
  }

  .client-logo-badge {
    width: 76px;
    height: 76px;
    right: 1rem;
    bottom: -1.25rem;
  }

  .client-logo-badge img{
    width: 4rem;
  }

  .client-login-body {
    padding: 2.75rem 1.5rem 1.75rem;
  }

  .client-login-title {
    font-size: 1.1rem;
  }

  .client-topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .client-balance {
    width: 100%;
    justify-content: flex-end;
    font-size: 0.75rem;
  }

  .client-logout-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .client-sport-tabs,
  .client-casino-tabs {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .client-tab {
    flex: 0 0 auto;
    min-width: 90px;
  }

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

  .cards-result-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
    min-width: 32px;
    min-height: 32px;
    border-radius: 0.5rem;
  }

  .card-result-img {
    width: 36px;
  }

  .card-result-img-lg {
    width: 56px;
  }

  .market-card-btn {
    min-height: 46px;
    border-radius: 0.4rem;
  }

  .market-card-label {
    font-size: 0.75rem;
  }

  .market-card-rate {
    font-size: 0.9rem;
  }

  .market-card-center-img {
    width: 22px;
  }

  .client-ledger-table thead {
    display: none;
  }

  .client-ledger-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-ledger-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-ledger-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-ledger-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }

  .client-transactions-table thead {
    display: none;
  }

  .client-transactions-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-transactions-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-transactions-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-transactions-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }

  .client-header {
    position: relative;
    padding-top: 0.25rem;
  }

  .client-logout-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
  }

  .client-txn-detail-table thead,
  .client-txn-bets-table thead {
    display: none;
  }

  .client-txn-detail-table tbody tr,
  .client-txn-bets-table tbody tr {
    display: block;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
  }

  .client-txn-detail-table tbody td,
  .client-txn-bets-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
  }

  .client-txn-detail-table tbody td:last-child,
  .client-txn-bets-table tbody td:last-child {
    border-bottom: 0;
  }

  .client-txn-detail-table tbody td::before,
  .client-txn-bets-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    flex: 0 0 40%;
  }
}
