/* Account Page Specific Styles */

/* Clean Modern Prize Card Styles */
.prize-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.prize-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.prize-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px;
}

.prize-card .card-text {
  font-size: 13px;
  color: #718096;
  margin: 0 0 10px;
  line-height: 1.4;
}

.prize-card .card-text strong {
  font-weight: 500;
  color: #2d3748;
}

.prize-card hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 10px 0;
}

.prize-card .value {
  font-size: 14px;
  color: #2d3748;
  margin: 4px 0;
  padding: 2px 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.prize-card .value:hover {
  background-color: #f7fafc;
}

.prize-card .value span {
  font-weight: 600;
  color: #1a202c;
  font-size: 16px;
}

.prize-card .value:first-of-type {
  margin-top: 0;
}

.prize-card .value:last-of-type {
  margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prize-card {
    padding: 14px;
  }
  
  .prize-card h5 {
    font-size: 16px;
  }
  
  .btn-primary {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  .prize-card {
    padding: 12px;
  }
  
  .prize-card h5 {
    font-size: 15px;
  }
  
  .prize-card .card-text {
    font-size: 12px;
  }

  .btn-primary {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Override Bootstrap table defaults for this page */
.table {
  --bs-table-bg: var(--glass-bg);
  --bs-table-hover-bg: var(--glass-bg-hover);
  --bs-table-color: #ffffff;
  --bs-table-color-state: #ffffff;
  --bs-table-color-type: #ffffff;
  color: #ffffff !important;
  border-color: var(--glass-border);
}

/* Force white text for all table cells in dark theme */
:not(.light-theme) .table > :not(caption) > * > * {
  --bs-table-color-state: #ffffff !important;
  --bs-table-color-type: #ffffff !important;
  color: #ffffff !important;
}

/* Table cells in dark theme */
:not(.light-theme) .table td,
:not(.light-theme) .table th {
  color: #ffffff !important;
}

/* Light theme table text */
.light-theme .table {
  --bs-table-color: #212529;
  --bs-table-color-state: #212529;
  --bs-table-color-type: #212529;
  color: #212529 !important;
}

.light-theme .table > :not(caption) > * > * {
  --bs-table-color-state: #212529 !important;
  --bs-table-color-type: #212529 !important;
  color: #212529 !important;
}

.light-theme .table td,
.light-theme .table th {
  color: #212529 !important;
}

/* Tracking Details Modal Styles */
.tracking-details-modal {
  border-radius: 12px;
  overflow: hidden;
}

.tracking-details-modal .modal-header {
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
}

.tracking-details-modal .modal-title {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.tracking-details-modal .modal-title i {
  color: var(--primary);
}

.tracking-details-modal .modal-body {
  padding: 1.5rem;
  background: var(--glass-bg);
  color: var(--text-color);
}

.tracking-details-content {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  min-height: 100px;
}

.tracking-text {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.tracking-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
  display: inline-block;
  margin: 0.25rem 0;
}

.tracking-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.tracking-details-modal .modal-footer {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
}

.tracking-details-modal .btn-close {
  filter: var(--btn-close-filter, invert(1));
}

/* Dark Theme Specific */
.dark-theme .tracking-details-modal .modal-content {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.dark-theme .tracking-details-modal .btn-close {
  filter: invert(1);
}

.dark-theme .tracking-details-content {
  background: rgba(25, 25, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .tracking-text {
  color: #e0e0e0;
}

/* Light Theme Specific */
.light-theme .tracking-details-modal .modal-content {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .tracking-details-modal .btn-close {
  filter: none;
}

.light-theme .tracking-details-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .tracking-text {
  color: #333;
}

.light-theme .tracking-link {
  color: var(--primary);
}

.light-theme .tracking-link:hover {
  color: var(--primary-hover);
}

/* Discount Alert - Dark Theme */
:not(.light-theme) .alert-success .text-muted,
.dark-theme .alert-success .text-muted {
  color: #ffffff !important;
}

/* Discount Alert - Light Theme */
.light-theme .alert-success .text-muted {
  color: #6c757d !important;
}
.table-container {
  background: var(--glass-bg);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 20px;
  margin-bottom: 20px;
}

/* ============================================
   ACCOUNT CONTROL TABS - THEME AWARE STYLES
   Maximum specificity to override Bootstrap
   ============================================ */

/* CARDS - Dark Theme (Default) */
#account-control-tab-pane #spending-limit-container .card,
#account-control-tab-pane #disable-account-container .card {
  background-color: rgba(25, 25, 25, 0.8) !important;
  background: rgba(25, 25, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* CARDS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .card,
.light-theme #account-control-tab-pane #disable-account-container .card {
  background-color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

/* CARD HEADERS - Dark Theme */
#account-control-tab-pane #spending-limit-container .card-header,
#account-control-tab-pane #disable-account-container .card-header {
  background-color: #d12026 !important;
  background: #d12026 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* CARD HEADERS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .card-header,
.light-theme #account-control-tab-pane #disable-account-container .card-header {
  background-color: #c41c22 !important;
  background: #c41c22 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* CARD HEADER H5 - Dark Theme */
#account-control-tab-pane #spending-limit-container .card-header h5,
#account-control-tab-pane #disable-account-container .card-header h5 {
  color: #ffffff !important;
}

/* CARD HEADER H5 - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .card-header h5,
.light-theme #account-control-tab-pane #disable-account-container .card-header h5 {
  color: #ffffff !important;
}

/* CARD BODY - Dark Theme */
#account-control-tab-pane #spending-limit-container .card-body,
#account-control-tab-pane #disable-account-container .card-body {
  background-color: transparent !important;
  background: transparent !important;
  color: #ffffff !important;
}

/* CARD BODY - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .card-body,
.light-theme #account-control-tab-pane #disable-account-container .card-body {
  background-color: transparent !important;
  background: transparent !important;
  color: #212529 !important;
}

/* CARD BODY ALL TEXT ELEMENTS - Dark Theme */
#account-control-tab-pane #spending-limit-container .card-body p,
#account-control-tab-pane #spending-limit-container .card-body div,
#account-control-tab-pane #spending-limit-container .card-body span,
#account-control-tab-pane #spending-limit-container .card-body strong,
#account-control-tab-pane #spending-limit-container .card-body h1,
#account-control-tab-pane #spending-limit-container .card-body h2,
#account-control-tab-pane #spending-limit-container .card-body h3,
#account-control-tab-pane #spending-limit-container .card-body h4,
#account-control-tab-pane #spending-limit-container .card-body h5,
#account-control-tab-pane #spending-limit-container .card-body h6,
#account-control-tab-pane #disable-account-container .card-body p,
#account-control-tab-pane #disable-account-container .card-body div,
#account-control-tab-pane #disable-account-container .card-body span,
#account-control-tab-pane #disable-account-container .card-body strong,
#account-control-tab-pane #disable-account-container .card-body h1,
#account-control-tab-pane #disable-account-container .card-body h2,
#account-control-tab-pane #disable-account-container .card-body h3,
#account-control-tab-pane #disable-account-container .card-body h4,
#account-control-tab-pane #disable-account-container .card-body h5,
#account-control-tab-pane #disable-account-container .card-body h6 {
  color: #ffffff !important;
}

/* CARD BODY ALL TEXT ELEMENTS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .card-body p,
.light-theme #account-control-tab-pane #spending-limit-container .card-body div,
.light-theme #account-control-tab-pane #spending-limit-container .card-body span,
.light-theme #account-control-tab-pane #spending-limit-container .card-body strong,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h1,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h2,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h3,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h4,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h5,
.light-theme #account-control-tab-pane #spending-limit-container .card-body h6,
.light-theme #account-control-tab-pane #disable-account-container .card-body p,
.light-theme #account-control-tab-pane #disable-account-container .card-body div,
.light-theme #account-control-tab-pane #disable-account-container .card-body span,
.light-theme #account-control-tab-pane #disable-account-container .card-body strong,
.light-theme #account-control-tab-pane #disable-account-container .card-body h1,
.light-theme #account-control-tab-pane #disable-account-container .card-body h2,
.light-theme #account-control-tab-pane #disable-account-container .card-body h3,
.light-theme #account-control-tab-pane #disable-account-container .card-body h4,
.light-theme #account-control-tab-pane #disable-account-container .card-body h5,
.light-theme #account-control-tab-pane #disable-account-container .card-body h6 {
  color: #212529 !important;
}

/* FORM LABELS - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-label,
#account-control-tab-pane #disable-account-container .form-label {
  color: #ffffff !important;
}

/* FORM LABELS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-label,
.light-theme #account-control-tab-pane #disable-account-container .form-label {
  color: #212529 !important;
}

/* FORM CHECK LABELS - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-check-label,
#account-control-tab-pane #disable-account-container .form-check-label {
  color: #ffffff !important;
}

/* FORM CHECK LABELS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-check-label,
.light-theme #account-control-tab-pane #disable-account-container .form-check-label {
  color: #212529 !important;
}

/* FORM TEXT (help text) - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-text,
#account-control-tab-pane #disable-account-container .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* FORM TEXT (help text) - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-text,
.light-theme #account-control-tab-pane #disable-account-container .form-text {
  color: #6c757d !important;
}

/* FORM CONTROLS (inputs, selects) - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-control,
#account-control-tab-pane #spending-limit-container .form-select,
#account-control-tab-pane #disable-account-container .form-control,
#account-control-tab-pane #disable-account-container .form-select {
  background-color: rgba(25, 25, 25, 0.6) !important;
  background: rgba(25, 25, 25, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* FORM CONTROLS (inputs, selects) - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-control,
.light-theme #account-control-tab-pane #spending-limit-container .form-select,
.light-theme #account-control-tab-pane #disable-account-container .form-control,
.light-theme #account-control-tab-pane #disable-account-container .form-select {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #ced4da !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

/* FORM CONTROLS FOCUS - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-control:focus,
#account-control-tab-pane #spending-limit-container .form-select:focus,
#account-control-tab-pane #disable-account-container .form-control:focus,
#account-control-tab-pane #disable-account-container .form-select:focus {
  background-color: rgba(25, 25, 25, 0.6) !important;
  background: rgba(25, 25, 25, 0.6) !important;
  border-color: #d12026 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 32, 38, 0.25) !important;
  outline: none !important;
}

/* FORM CONTROLS FOCUS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-control:focus,
.light-theme #account-control-tab-pane #spending-limit-container .form-select:focus,
.light-theme #account-control-tab-pane #disable-account-container .form-control:focus,
.light-theme #account-control-tab-pane #disable-account-container .form-select:focus {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-color: #c41c22 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 28, 34, 0.25) !important;
  outline: none !important;
}

/* FORM CONTROL PLACEHOLDER - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-control::placeholder,
#account-control-tab-pane #disable-account-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

/* FORM CONTROL PLACEHOLDER - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-control::placeholder,
.light-theme #account-control-tab-pane #disable-account-container .form-control::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* FORM CHECK INPUT - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-check-input,
#account-control-tab-pane #disable-account-container .form-check-input {
  background-color: rgba(25, 25, 25, 0.6) !important;
  background: rgba(25, 25, 25, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* FORM CHECK INPUT - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-check-input,
.light-theme #account-control-tab-pane #disable-account-container .form-check-input {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: 1px solid #ced4da !important;
  border-color: #ced4da !important;
}

/* FORM CHECK INPUT CHECKED - Dark Theme */
#account-control-tab-pane #spending-limit-container .form-check-input:checked,
#account-control-tab-pane #disable-account-container .form-check-input:checked {
  background-color: #d12026 !important;
  background: #d12026 !important;
  border-color: #d12026 !important;
}

/* FORM CHECK INPUT CHECKED - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .form-check-input:checked,
.light-theme #account-control-tab-pane #disable-account-container .form-check-input:checked {
  background-color: #c41c22 !important;
  background: #c41c22 !important;
  border-color: #c41c22 !important;
}

/* ALERTS - Dark Theme */
#account-control-tab-pane #spending-limit-container .alert,
#account-control-tab-pane #disable-account-container .alert {
  background-color: rgba(25, 25, 25, 0.8) !important;
  background: rgba(25, 25, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* ALERTS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .alert,
.light-theme #account-control-tab-pane #disable-account-container .alert {
  background-color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

/* ALERT WARNING - Dark Theme */
#account-control-tab-pane #spending-limit-container .alert-warning,
#account-control-tab-pane #disable-account-container .alert-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
  background: rgba(255, 193, 7, 0.1) !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
  color: #ffffff !important;
}

/* ALERT WARNING - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .alert-warning,
.light-theme #account-control-tab-pane #disable-account-container .alert-warning {
  background-color: rgba(255, 193, 7, 0.15) !important;
  background: rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  color: #856404 !important;
}

/* ALERT DANGER - Dark Theme */
#account-control-tab-pane #spending-limit-container .alert-danger,
#account-control-tab-pane #disable-account-container .alert-danger {
  background-color: rgba(220, 53, 69, 0.1) !important;
  background: rgba(220, 53, 69, 0.1) !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
  color: #ffffff !important;
}

/* ALERT DANGER - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .alert-danger,
.light-theme #account-control-tab-pane #disable-account-container .alert-danger {
  background-color: rgba(220, 53, 69, 0.1) !important;
  background: rgba(220, 53, 69, 0.1) !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
  color: #721c24 !important;
}

/* ALERT STRONG - Dark Theme */
#account-control-tab-pane #spending-limit-container .alert strong,
#account-control-tab-pane #disable-account-container .alert strong {
  color: #ffffff !important;
}

/* ALERT STRONG - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .alert strong,
.light-theme #account-control-tab-pane #disable-account-container .alert strong {
  color: #212529 !important;
}

/* ALERT ICONS - Dark Theme */
#account-control-tab-pane #spending-limit-container .alert i,
#account-control-tab-pane #disable-account-container .alert i {
  color: #ffffff !important;
}

/* ALERT ICONS - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .alert i,
.light-theme #account-control-tab-pane #disable-account-container .alert i {
  color: inherit !important;
}

/* DYNAMICALLY LOADED CONTENT - Stats boxes, etc. */
.account-control-stats-box {
  background-color: rgba(25, 25, 25, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.light-theme .account-control-stats-box {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

.account-control-stats-label {
  color: rgba(255, 255, 255, 0.7) !important;
  display: block;
}

.light-theme .account-control-stats-label {
  color: #6c757d !important;
}

.account-control-stats-value {
  color: #ffffff !important;
}

.light-theme .account-control-stats-value {
  color: #212529 !important;
}

/* Progress bar text color - Dark Theme */
#account-control-tab-pane #spending-limit-container .progress-bar,
#account-control-tab-pane #disable-account-container .progress-bar {
  color: #ffffff !important;
}

/* Progress bar text color - Light Theme */
.light-theme #account-control-tab-pane #spending-limit-container .progress-bar,
.light-theme #account-control-tab-pane #disable-account-container .progress-bar {
  color: #212529 !important;
}

/* Claim Prize Modal - Custom backdrop opacity */

/* Prize Groups Styling */
.prize-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.prize-group-title {
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
}

.prize-group-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

/* Different accent colors for different groups */
.prize-group.physical-only .prize-group-title {
  border-bottom-color: var(--text-muted);
}

.prize-group.physical-only .prize-group-title::after {
  background: var(--text-muted);
}

.prize-group.site-credit-only .prize-group-title {
  border-bottom-color: #28a745;
}

.prize-group.site-credit-only .prize-group-title::after {
  background: #28a745;
}

.prize-group.cash-only .prize-group-title {
  border-bottom-color: #ffc107;
}

.prize-group.cash-only .prize-group-title::after {
  background: #ffc107;
}

.prize-group.both-alternatives .prize-group-title {
  border-bottom-color: #17a2b8;
}

.prize-group.both-alternatives .prize-group-title::after {
  background: #17a2b8;
}

/* Bulk claim button styling */
.bulk-claim-btn {
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.bulk-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulk-claim-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Bulk claim modal styling */
.bulk-claim-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.bulk-claim-summary h6 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Make summary text white in dark theme */
.dark-theme .bulk-claim-summary small {
  color: #ffffff !important;
}

.dark-theme .bulk-claim-summary .text-muted {
  color: #ffffff !important;
}

/* Make bulk claim option descriptions white in dark theme */
.dark-theme .bulk-claim-option small {
  color: #ffffff !important;
}

.dark-theme .bulk-claim-option .form-check-label small {
  color: #ffffff !important;
}

.bulk-claim-option {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.bulk-claim-option:hover {
  border-color: var(--primary);
  background: rgba(209, 32, 38, 0.05);
}

.bulk-claim-option.selected {
  border-color: var(--primary);
  background: rgba(209, 32, 38, 0.1);
}

.bulk-claim-total {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Dark theme adjustments */
.dark-theme .prize-group {
  background: rgba(25, 25, 25, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
}

.light-theme .prize-group {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
}
.modal-backdrop.show {
  opacity: 0.9 !important;
}

/* Form text styling for dark theme */
:not(.light-theme) .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

.light-theme .form-text {
  color: #6c757d !important;
}

/* Google Places Autocomplete dropdown - Fix z-index and positioning for modals */
.pac-container {
  z-index: 1060 !important; /* Higher than Bootstrap modal (1050) */
  position: absolute !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  background: white !important;
  margin-top: 2px !important;
  font-family: inherit !important;
}

/* Light theme - Google Places dropdown */
.light-theme .pac-container {
  background: white !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.light-theme .pac-item {
  color: #333 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
}

.light-theme .pac-item:hover,
.light-theme .pac-item-selected {
  background-color: #f0f0f0 !important;
}

.light-theme .pac-item-query {
  color: #333 !important;
}

/* Dark theme - Google Places dropdown */
.dark-theme .pac-container,
:not(.light-theme) .pac-container {
  background: #1a202c !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme .pac-item,
:not(.light-theme) .pac-item {
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
}

.dark-theme .pac-item:hover,
:not(.light-theme) .pac-item:hover {
  background-color: #2d3748 !important;
}

.dark-theme .pac-item-selected,
:not(.light-theme) .pac-item-selected {
  background-color: #4a5568 !important;
}

.dark-theme .pac-item-query,
:not(.light-theme) .pac-item-query {
  color: #e2e8f0 !important;
}

.dark-theme .pac-matched,
:not(.light-theme) .pac-matched {
  color: #90cdf4 !important;
  font-weight: 600 !important;
}

/* Ensure address input has proper positioning context */
#address-line1 {
  position: relative;
  z-index: 1;
}

/* ============================================
   WITHDRAWAL MODAL - THEME AWARE STYLES
   ============================================ */

/* Modal Content - Dark Theme */
#withdrawalModal .modal-content {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-color) !important;
}

/* Modal Header - Dark Theme */
#withdrawalModal .modal-header {
  background: transparent !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: #ffffff !important;
}

#withdrawalModal .modal-title {
  color: #ffffff !important;
}

#withdrawalModal .btn-close {
  filter: invert(1) !important;
}

/* Modal Body - Dark Theme */
#withdrawalModal .modal-body {
  background: transparent !important;
  color: #ffffff !important;
}

/* Alert Info - Dark Theme */
#withdrawalModal .alert-info {
  background-color: rgba(13, 110, 253, 0.15) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  color: #a0d0ff !important;
}

#withdrawalModal .alert-info strong {
  color: #a0d0ff !important;
}

/* Form Labels - Dark Theme */
#withdrawalModal .form-label {
  color: #ffffff !important;
}

/* Form Select - Dark Theme */
#withdrawalModal .form-select {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#withdrawalModal .form-select:focus {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: #d12026 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 32, 38, 0.25) !important;
}

/* Bank Details Card - Dark Theme */
#withdrawalModal .card.bg-light {
  background-color: rgba(25, 25, 25, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#withdrawalModal .card.bg-light div {
  color: #ffffff !important;
}

#withdrawalModal .card.bg-light strong {
  color: #ffffff !important;
}

/* Form Control - Dark Theme */
#withdrawalModal .form-control {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#withdrawalModal .form-control:focus {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: #d12026 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 32, 38, 0.25) !important;
}

#withdrawalModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

/* Form Text - Dark Theme */
#withdrawalModal .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Buttons - Dark Theme */
#withdrawalModal .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

#withdrawalModal .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

#withdrawalModal .btn-secondary {
  background-color: rgba(108, 117, 125, 0.3) !important;
  border-color: rgba(108, 117, 125, 0.5) !important;
  color: #ffffff !important;
}

#withdrawalModal .btn-secondary:hover {
  background-color: rgba(108, 117, 125, 0.5) !important;
  border-color: rgba(108, 117, 125, 0.7) !important;
  color: #ffffff !important;
}

/* Modal Footer - Dark Theme */
#withdrawalModal .modal-footer {
  background: transparent !important;
  border-top: 1px solid var(--glass-border) !important;
}

/* ============================================
   LIGHT THEME STYLES
   ============================================ */

/* Modal Content - Light Theme */
.light-theme #withdrawalModal .modal-content {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

/* Modal Header - Light Theme */
.light-theme #withdrawalModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

.light-theme #withdrawalModal .modal-title {
  color: #212529 !important;
}

.light-theme #withdrawalModal .btn-close {
  filter: none !important;
}

/* Modal Body - Light Theme */
.light-theme #withdrawalModal .modal-body {
  color: #212529 !important;
}

/* Alert Info - Light Theme */
.light-theme #withdrawalModal .alert-info {
  background-color: rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  color: #084298 !important;
}

.light-theme #withdrawalModal .alert-info strong {
  color: #084298 !important;
}

/* Form Labels - Light Theme */
.light-theme #withdrawalModal .form-label {
  color: #212529 !important;
}

/* Form Select - Light Theme */
.light-theme #withdrawalModal .form-select {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

.light-theme #withdrawalModal .form-select:focus {
  background-color: #ffffff !important;
  border-color: #c41c22 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 28, 34, 0.25) !important;
}

/* Bank Details Card - Light Theme */
.light-theme #withdrawalModal .card.bg-light {
  background-color: rgba(248, 249, 250, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

.light-theme #withdrawalModal .card.bg-light div {
  color: #212529 !important;
}

.light-theme #withdrawalModal .card.bg-light strong {
  color: #212529 !important;
}

/* Form Control - Light Theme */
.light-theme #withdrawalModal .form-control {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

.light-theme #withdrawalModal .form-control:focus {
  background-color: #ffffff !important;
  border-color: #c41c22 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 28, 34, 0.25) !important;
}

.light-theme #withdrawalModal .form-control::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Form Text - Light Theme */
.light-theme #withdrawalModal .form-text {
  color: #6c757d !important;
}

/* Buttons - Light Theme */
.light-theme #withdrawalModal .btn-outline-secondary {
  border-color: #6c757d !important;
  color: #6c757d !important;
}

.light-theme #withdrawalModal .btn-outline-secondary:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

.light-theme #withdrawalModal .btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

.light-theme #withdrawalModal .btn-secondary:hover {
  background-color: #5a6268 !important;
  border-color: #545b62 !important;
  color: #ffffff !important;
}

/* Modal Footer - Light Theme */
.light-theme #withdrawalModal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   BANK DETAILS MODAL - THEME AWARE STYLES
   ============================================ */

/* Modal Content - Dark Theme */
#bankDetailsModal .modal-content {
  background: var(--glass-bg) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-color) !important;
}

/* Modal Header - Dark Theme */
#bankDetailsModal .modal-header {
  background: transparent !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: #ffffff !important;
}

#bankDetailsModal .modal-title {
  color: #ffffff !important;
}

#bankDetailsModal .btn-close {
  filter: invert(1) !important;
}

/* Modal Body - Dark Theme */
#bankDetailsModal .modal-body {
  background: transparent !important;
  color: #ffffff !important;
}

/* Alert Info - Dark Theme */
#bankDetailsModal .alert-info {
  background-color: rgba(13, 110, 253, 0.15) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  color: #a0d0ff !important;
}

#bankDetailsModal .alert-info strong {
  color: #a0d0ff !important;
}

/* Form Labels - Dark Theme */
#bankDetailsModal .form-label {
  color: #ffffff !important;
}

/* Form Select - Dark Theme */
#bankDetailsModal .form-select {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#bankDetailsModal .form-select:focus {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: #d12026 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 32, 38, 0.25) !important;
}

/* Form Control - Dark Theme */
#bankDetailsModal .form-control {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

#bankDetailsModal .form-control:focus {
  background-color: rgba(25, 25, 25, 0.6) !important;
  border-color: #d12026 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 32, 38, 0.25) !important;
}

#bankDetailsModal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

/* Form Text - Dark Theme */
#bankDetailsModal .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Buttons - Dark Theme */
#bankDetailsModal .btn-secondary {
  background-color: rgba(108, 117, 125, 0.3) !important;
  border-color: rgba(108, 117, 125, 0.5) !important;
  color: #ffffff !important;
}

#bankDetailsModal .btn-secondary:hover {
  background-color: rgba(108, 117, 125, 0.5) !important;
  border-color: rgba(108, 117, 125, 0.7) !important;
  color: #ffffff !important;
}

/* Modal Footer - Dark Theme */
#bankDetailsModal .modal-footer {
  background: transparent !important;
  border-top: 1px solid var(--glass-border) !important;
}

/* ============================================
   LIGHT THEME STYLES
   ============================================ */

/* Modal Content - Light Theme */
.light-theme #bankDetailsModal .modal-content {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

/* Modal Header - Light Theme */
.light-theme #bankDetailsModal .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #212529 !important;
}

.light-theme #bankDetailsModal .modal-title {
  color: #212529 !important;
}

.light-theme #bankDetailsModal .btn-close {
  filter: none !important;
}

/* Modal Body - Light Theme */
.light-theme #bankDetailsModal .modal-body {
  color: #212529 !important;
}

/* Alert Info - Light Theme */
.light-theme #bankDetailsModal .alert-info {
  background-color: rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  color: #084298 !important;
}

.light-theme #bankDetailsModal .alert-info strong {
  color: #084298 !important;
}

/* Form Labels - Light Theme */
.light-theme #bankDetailsModal .form-label {
  color: #212529 !important;
}

/* Form Select - Light Theme */
.light-theme #bankDetailsModal .form-select {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

.light-theme #bankDetailsModal .form-select:focus {
  background-color: #ffffff !important;
  border-color: #c41c22 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 28, 34, 0.25) !important;
}

/* Form Control - Light Theme */
.light-theme #bankDetailsModal .form-control {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}

.light-theme #bankDetailsModal .form-control:focus {
  background-color: #ffffff !important;
  border-color: #c41c22 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 28, 34, 0.25) !important;
}

.light-theme #bankDetailsModal .form-control::placeholder {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Form Text - Light Theme */
.light-theme #bankDetailsModal .form-text {
  color: #6c757d !important;
}

/* Buttons - Light Theme */
.light-theme #bankDetailsModal .btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
}

.light-theme #bankDetailsModal .btn-secondary:hover {
  background-color: #5a6268 !important;
  border-color: #545b62 !important;
  color: #ffffff !important;
}

/* Modal Footer - Light Theme */
.light-theme #bankDetailsModal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}
