/* ================== ACCOUNT PROFILE ================== */
.account-right {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  max-width: 110px;
  overflow: hidden;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.profile-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
}

.profile-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================== EMPTY STATE ================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================== ACCOUNT DETAIL ================== */
.account-detail-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.detail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator.online {
  background: var(--online);
  box-shadow: 0 0 10px var(--online);
}

.status-indicator.offline {
  background: var(--offline);
}

.detail-balance, .detail-freebets {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-freebets {
  border-bottom: none;
}

.balance-label, .freebets-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: none;
}

.balance-value {
  font-size: 24px;
  font-weight: 700;
}

.freebets-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-warning);
}

/* ================== ACTION GRID ================== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.action-card {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.15s ease;
  color: var(--text-primary);
  font-size: 12px;
  box-shadow:
    0 6px 14px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.action-card:active {
  transform: scale(0.94);
  box-shadow:
    inset 0 4px 10px rgba(0,0,0,0.12);
}

.action-card.danger {
  color: var(--accent-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.action-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.action-card.danger .action-icon {
  color: var(--accent-danger);
}

.detail-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Collapsible detail section */
.detail-section.collapsible {
  padding: 0;
}

.detail-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
}

.detail-section-toggle h3 {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.detail-section.collapsible.open .toggle-chevron {
  transform: rotate(180deg);
}

.detail-section.collapsible .settings-summary,
.detail-section.collapsible .detail-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.detail-section.collapsible.open .settings-summary,
.detail-section.collapsible.open .detail-section-body {
  max-height: 600px !important;
  padding: 0 20px 20px !important;
}

/* Live Cashout Section */
.live-cashout-section {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-elevated) 100%);
  border: 2px solid var(--accent-success);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  animation: pulse-border 1s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent-success); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { border-color: #4ade80; box-shadow: 0 0 20px 5px rgba(34, 197, 94, 0.2); }
}

.cashout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cashout-multiplier {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-success);
}

.cashout-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}

.cashout-progress {
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-success), #4ade80);
  border-radius: 3px;
  transition: width 0.1s linear;
  width: 0%;
}

.btn-cashout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-success), #16a34a);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.2s;
  animation: pulse-btn 0.5s ease-in-out infinite;
}

@keyframes pulse-btn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.btn-cashout:hover {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.btn-cashout:active {
  transform: scale(0.98);
}

/* Floating Cashout Widget - Minimal */
.floating-cashout {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-floating-widget); /* 90 - below modal layer */
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.2s ease;
}

.floating-cashout.minimized {
  width: auto;
  min-width: 80px;
}

.floating-cashout.minimized .cashout-widget-body,
.floating-cashout.minimized .cashout-widget-body * {
  display: none !important;
}

.cashout-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.floating-cashout.minimized .cashout-widget-header {
  border-bottom: none;
  border-radius: var(--radius-md);
}

.cashout-widget-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashout-widget-account {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cashout-widget-multiplier {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.cashout-widget-minimize {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cashout-widget-body {
  padding: 12px;
}

.cashout-widget-amount {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.cashout-widget-progress {
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.cashout-widget-bar {
  height: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.1s linear;
  width: 0%;
}

.btn-cashout-floating {
  width: 100%;
  padding: 11px;
  background: #ffffff;
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.2s ease;
  animation: floatingBtnPulse 2s ease-in-out infinite;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
}

.btn-cashout-floating:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  animation: none;
}

.btn-cashout-floating:active {
  transform: scale(0.98);
  animation: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-label {
  display: block;
  margin-bottom: 4px;
}

.stat-item .stat-value {
  font-size: 16px;
  color: var(--text-primary);
}

.settings-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.setting-row-simple:last-child {
  border-bottom: none;
}

.setting-row-simple span:first-child {
  color: var(--text-secondary);
}

.setting-row-simple span:last-child {
  font-weight: 500;
  color: var(--accent-success);
}

.setting-row-simple span:last-child.inactive {
  color: var(--text-muted);
}

/* ================== FREEBETS PAGE ================== */
#page-freebets {
  position: relative;
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #0b0d10;
  min-height: 100vh;
}

#page-freebets.active {
  display: flex;
  animation: pageSlideIn 0.3s ease;
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Checking State */
.freebets-checking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
  background: #0b0d10;
}

.checking-spinner .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #1f2228;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.checking-text {
  font-size: 16px;
  color: #9aa0a6;
  font-weight: 500;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State — Ready for Illustration */
.freebets-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: #0b0d10;
  flex: 1;
}

/* ⭐ 8. Illustration Space */
.freebets-empty .empty-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  position: relative;
}

.freebets-empty .empty-icon {
  width: 64px;
  height: 64px;
  color: #1f2228;
  margin-bottom: 16px;
  /* Ready for animation */
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.3s ease;
}

/* Ticket icon bounce animation (ready to use) */
.freebets-empty .empty-icon.animated {
  animation: ticketBounce 2s ease-in-out infinite;
}

@keyframes ticketBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.freebets-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.freebets-empty p {
  font-size: 14px;
  color: #6b7280;
  max-width: 280px;
  margin-bottom: 24px;
}

/* Confetti container (for future win celebration) */
.freebets-empty .confetti-container,
.freebets-summary .confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}

.empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.15s ease;
}

.empty-actions .btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
}

.empty-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.empty-actions .btn-secondary {
  background: #1f2228;
  color: #ffffff;
  border: 1px solid #2a2d35;
}

.empty-actions .btn-secondary:hover {
  background: #2a2d35;
}

/* Freebets Summary — Dark Style */
.freebets-summary {
  padding: 0;
  overflow-y: auto;
  background: #0b0d10;
  flex: 1;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

/* ⭐ 7. Page Header Power Feel */
.freebets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #1f2228;
}

.freebets-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.freebets-total {
  font-size: 13px;
  color: #9aa0a6;
  font-weight: 500;
}

.freebets-account-info {
  padding: 12px 20px 16px;
  border-bottom: 1px solid #1f2228;
  margin-bottom: 8px;
}

.freebets-account-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.freebets-tickets-count {
  font-size: 13px;
  color: #9aa0a6;
}

.freebets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

/* Freebet Row (Grouped by Amount) — Dark Premium Style */
.freebet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #0f1115;
  border: 1px solid #1f2228;
  border-radius: 12px;
  /* ⭐ 1. Subtle Card Depth */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.25s ease;
  animation: rowEnter 0.3s ease backwards;
}

.freebet-row:nth-child(1) { animation-delay: 0ms; }
.freebet-row:nth-child(2) { animation-delay: 50ms; }
.freebet-row:nth-child(3) { animation-delay: 100ms; }
.freebet-row:nth-child(4) { animation-delay: 150ms; }
.freebet-row:nth-child(5) { animation-delay: 200ms; }

@keyframes rowEnter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ⭐ 2. Improved Hover Focus (Trading Feel) */
.freebet-row:hover {
  border-color: #ffffff22;
  background: #13161c;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.freebet-row.spinning {
  border-color: #00ffae;
  box-shadow: 0 0 0 1px #00ffae44 inset,
              0 0 20px #00ffae33,
              0 0 40px #00ffae11;
  pointer-events: none;
  animation: rowGlow 1.5s ease-in-out infinite;
}

.freebet-row.highlighted {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6 inset,
              0 0 20px #3b82f644,
              0 8px 24px rgba(0,0,0,0.4);
  background: #131825;
  transform: translateY(-2px) scale(1.02);
  z-index: 10;
}

@keyframes rowGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px #00ffae44 inset,
                0 0 20px #00ffae33,
                0 0 40px #00ffae11;
  }
  50% {
    box-shadow: 0 0 0 2px #00ffae66 inset,
                0 0 30px #00ffae55,
                0 0 60px #00ffae22;
  }
}

/* ⭐ 6. Smooth Count Change Animation */
.freebet-row.updating {
  opacity: 0.6;
}

.freebet-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.freebet-amount {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px;
  min-width: 100px;
}

.freebet-amount::after {
  content: " freebet";
  font-size: 12px;
  color: #6b7280;
  margin-left: 6px;
}

.freebet-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  /* ⭐ 3. Stronger Quantity Badge Hierarchy */
  color: #cfd3da;
  background: #181b21;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.freebet-quantity svg,
.freebet-quantity i {
  width: 14px;
  height: 14px;
  stroke: #6b7280;
  color: #6b7280;
}

.btn-spin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.15s ease;
  /* ⭐ 4. Spin Button Premium Motion - Soft Shadow */
  box-shadow: 0 3px 8px rgba(255,255,255,0.12);
}

.btn-spin:hover {
  background: #e6e6e6;
  transform: scale(1.03);
  /* ⭐ 4. Stronger Shadow on Hover */
  box-shadow: 0 6px 16px rgba(255,255,255,0.22);
}

.btn-spin:active {
  transform: scale(0.97);
}

.btn-spin:disabled {
  background: #1f2228;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ⭐ 5. Loading State (Critical UX) */
.btn-spin.loading {
  background: #2a2f36;
  color: #777;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spin.spinning {
  background: #00ffae;
  color: #000;
  animation: pulseSpin 1.5s ease-in-out infinite;
}

@keyframes pulseSpin {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* ================== ODDS PAGE ================== */
/* Ensure odds page fills available space properly */
#page-odds {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#page-odds.active {
  display: flex;
}

/* Mobile: Allow odds page to scroll for analytics */
@media (max-width: 768px) {
  #page-odds {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
  }
}

.odds-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.odds-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.odd-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.odd-ball.low { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.odd-ball.medium { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.odd-ball.high { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.odd-ball.jackpot { 
  background: linear-gradient(135deg, #f59e0b, #d97706); 
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.odds-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row b {
  font-weight: 600;
}

.summary-row .highlight {
  color: var(--accent-warning);
}

.prediction-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prediction-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
}

.prediction-text {
  display: flex;
  flex-direction: column;
}

.prediction-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.prediction-value {
  font-weight: 600;
  color: var(--accent-success);
}

.prediction-value.caution {
  color: var(--accent-warning);
}

.prediction-value.danger {
  color: var(--accent-danger);
}

/* ================== SETTINGS ================== */
.settings-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.settings-section h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-item:last-of-type {
  border-bottom: none;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-name {
  font-weight: 500;
  font-size: 15px;
}

.setting-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toggle Switch */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--accent-primary);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.setting-inputs {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.input-row:last-child {
  margin-bottom: 0;
}

.input-row label {
  font-size: 14px;
  color: var(--text-secondary);
}

.input-row input {
  width: 100px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  text-align: right;
}

.setting-input-inline {
  width: 100px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  text-align: right;
}

.list-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item span {
  flex: 1;
  text-align: left;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:last-child {
  color: var(--text-secondary);
}

/* ================== FREEBET UI COMPONENTS ================== */

/* Stat card loading state */
.stat-card.checking {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Freebet filter banner */
.freebet-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-success);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.freebet-filter-banner span {
  color: var(--text-secondary);
}

.freebet-filter-banner span strong {
  color: var(--accent-success);
  font-weight: 600;
}

.freebet-filter-banner .btn-text {
  color: var(--accent-success);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.15s;
}

.freebet-filter-banner .btn-text:hover {
  background: rgba(34, 197, 94, 0.1);
}

/* Freebet action modal */
.freebet-action-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.freebet-modal-content {
  position: relative;
  width: 90%;
  max-width: 360px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.freebet-summary {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.freebet-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.freebet-actions button {
  justify-content: center;
  gap: 8px;
}

/* Freebet quick menu */
.freebet-quick-menu {
  position: fixed;
  z-index: var(--z-modal);
}

.freebet-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.freebet-menu-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-width: 280px;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.2s ease;
}

@keyframes popIn {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.freebet-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.freebet-menu-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-success);
}

.freebet-menu-body {
  padding: 16px;
}

.freebet-total {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.freebet-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.freebet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.freebet-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.freebet-count {
  font-size: 13px;
  color: var(--accent-success);
  font-weight: 500;
}

.freebet-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}

.freebet-menu-actions button {
  justify-content: center;
  gap: 8px;
}


/* ================== ALIVE UI SCROLLBAR ================== */

/* Custom scrollbar for premium feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
  transition: background 150ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ================== ALIVE UI LOADING SKELETON ================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ================== ALIVE UI PULSE DOTS ================== */

/* Different pulse speeds for different urgency */
.pulse-slow {
  animation: breathe 3s ease-in-out infinite;
}

.pulse-medium {
  animation: breathe 2s ease-in-out infinite;
}

.pulse-fast {
  animation: breathe 1s ease-in-out infinite;
}

/* ================== ALIVE UI HOVER LIFT ================== */

/* Enhanced lift effect */
.hover-lift {
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 200ms ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ================== ALIVE UI MICRO-INTERACTIONS ================== */

/* Subtle scale on hover for interactive elements */
.interactive-micro:hover {
  transform: scale(1.02);
}

.interactive-micro:active {
  transform: scale(0.98);
}

/* ================== ALIVE UI TEXT REVEAL ================== */

/* Text fade in for dynamic content */
.text-reveal {
  animation: text-fade-in 200ms ease-out;
}

@keyframes text-fade-in {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================== ALIVE UI BADGE ANIMATIONS ================== */

/* Badge pop in */
.badge-pop {
  animation: badge-pop-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes badge-pop-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ================== ALIVE UI NUMBER COUNTERS ================== */

/* Smooth number transitions */
.number-counter {
  transition: color 200ms ease;
}

.number-counter.changed {
  animation: number-flash 400ms ease;
}

@keyframes number-flash {
  0% { color: var(--accent-primary); transform: scale(1.1); }
  100% { color: inherit; transform: scale(1); }
}


/* ================== ACCOUNT DETAIL SETTINGS STYLING ================== */

.settings-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-row-simple:last-child {
  border-bottom: none;
}

.setting-row-simple span:first-child {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Status badges (ON/OFF) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: transform, opacity, background-color, background, border-color, box-shadow 200ms ease;
}

.status-badge:not(.active) {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.status-badge.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: status-badge-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes status-badge-in {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Config values (amounts) */
.config-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Auto-spin config row animation */
#detail-autospin-config {
  transition: transform, opacity, background-color, background, border-color, box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#detail-autospin-config.show {
  display: flex !important;
  animation: slide-down-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slide-down-in {
  0% { 
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
    max-height: 50px;
  }
}

/* Settings update animation */
.setting-row-simple.updated {
  animation: row-update-flash 600ms ease;
}

@keyframes row-update-flash {
  0% { background: rgba(99, 102, 241, 0.1); }
  100% { background: transparent; }
}

/* Live sync indicator */
.settings-summary.syncing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}

.settings-summary {
  position: relative;
}


/* ================== BULK FREEBET SPIN PAGE ================== */

/* Bulk Summary Card */
.bulk-summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.bulk-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .bulk-summary-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bulk-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.bulk-summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bulk-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Progress Bar */
.bulk-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.bulk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 4px;
  transition: width 300ms ease;
}

.bulk-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* Bulk Accounts Section */
.bulk-accounts-section {
  margin-bottom: 20px;
}

.bulk-accounts-section .section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-left: 4px;
}

.bulk-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bulk Account Row */
.bulk-account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: transform, opacity, background-color, background, border-color, box-shadow 200ms ease;
}

.bulk-account-row:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.bulk-account-row.spinning {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, var(--bg-secondary), rgba(99, 102, 241, 0.05));
}

.bulk-account-row.completed {
  border-color: var(--success);
  background: linear-gradient(180deg, var(--bg-secondary), rgba(34, 197, 94, 0.05));
}

.bulk-account-row.crashed {
  border-color: var(--danger);
  background: linear-gradient(180deg, var(--bg-secondary), rgba(239, 68, 68, 0.05));
}

.bulk-account-row.failed {
  border-color: var(--warning);
  background: linear-gradient(180deg, var(--bg-secondary), rgba(245, 158, 11, 0.05));
  opacity: 0.7;
}

.bulk-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bulk-account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bulk-account-info {
  flex: 1;
  min-width: 0;
}

.bulk-account-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-account-name .profile-name {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

.bulk-account-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bulk-account-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.bulk-account-status.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.bulk-account-status.offline {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.bulk-account-status.spinning {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.bulk-account-freebets {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 60px;
  justify-content: flex-end;
}

.bulk-account-result {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  min-width: 80px;
  justify-content: flex-end;
}

.bulk-account-result.won {
  color: var(--success);
}

.bulk-account-result.crashed {
  color: var(--danger);
}

.bulk-account-result.failed {
  color: var(--warning);
}

/* Bulk Cashout Button */
.bulk-account-cashout {
  display: flex;
  align-items: center;
  min-width: 100px;
  justify-content: flex-end;
}

.btn-bulk-cashout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: transform, opacity, background-color, background, border-color, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  animation: cashout-pulse 1.5s infinite;
}

.btn-bulk-cashout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-bulk-cashout:active {
  transform: translateY(0);
}

.btn-bulk-cashout:disabled,
.btn-bulk-cashout.processing {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  animation: none;
  cursor: not-allowed;
}

.btn-bulk-cashout.medium-multiplier {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-bulk-cashout.high-multiplier {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.cashout-multi {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cashout-amount {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.2;
}

@keyframes cashout-pulse {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5);
    transform: scale(1.02);
  }
}

/* Bulk Action Bar */
.bulk-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-default);
  padding: 16px 20px;
  padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
}

.sidebar-visible ~ #main-content .bulk-action-bar,
.sidebar-visible .bulk-action-bar {
  left: var(--sidebar-width);
}

@media (max-width: 768px) {
  .sidebar-visible ~ #main-content .bulk-action-bar {
    left: 0;
  }
}

.bulk-action-bar .btn {
  min-width: 120px;
}

.bulk-action-bar .btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

/* Status Indicator */
.bulk-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.bulk-status-indicator .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.bulk-status-indicator.active .status-dot {
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

.bulk-status-indicator.spinning .status-dot {
  background: var(--accent-primary);
  animation: pulse-dot 1s infinite;
}

/* Results Card */
.bulk-results-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-top: 20px;
  animation: slide-up 300ms ease;
}

@keyframes slide-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.bulk-results-card.hidden {
  display: none;
}

.bulk-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .bulk-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bulk-result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.bulk-result-item.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.bulk-result-item.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.bulk-result-item.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.bulk-result-item.info {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.bulk-result-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bulk-result-item.success .bulk-result-value {
  color: var(--success);
}

.bulk-result-item.danger .bulk-result-value {
  color: var(--danger);
}

.bulk-result-item.warning .bulk-result-value {
  color: var(--warning);
}

.bulk-result-item.info .bulk-result-value {
  color: var(--accent-primary);
}

.bulk-result-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* ================== BULK FREEBET AMOUNT MODAL ================== */

.bulk-freebet-amounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.bulk-freebet-amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform, opacity, background-color, background, border-color, box-shadow 200ms ease;
}

.bulk-freebet-amount-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.bulk-freebet-amount-btn:active {
  transform: scale(0.98);
}

.bulk-freebet-amount-btn .amount-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.bulk-freebet-amount-btn .account-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.bulk-freebet-summary {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ================== PAGE BULK FREEBET SPECIFIC ================== */

#page-bulk-freebet {
  overflow: hidden;
}

#page-bulk-freebet .page-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
}

/* Navigation Guard Warning */
.bulk-nav-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95; /* Below modal and toasts */
  opacity: 0;
  visibility: hidden;
  transition: transform, opacity, background-color, background, border-color, box-shadow 200ms ease;
}

.bulk-nav-warning.active {
  opacity: 1;
  visibility: visible;
}

.bulk-nav-warning-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.bulk-nav-warning-card h3 {
  margin-bottom: 12px;
  color: var(--warning);
}

.bulk-nav-warning-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.bulk-nav-warning-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}




/* ================== RESPONSIVE ACCOUNTS PAGE IMPROVEMENTS ================== */

/* Action Grid Responsive */
@media (max-width: 480px) {
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .action-card {
    padding: 16px 6px;
    border-radius: 14px;
    font-size: 11px;
  }
  
  .action-icon {
    width: 20px;
    height: 20px;
  }
  
  .action-card span {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .action-card {
    padding: 14px 4px;
    font-size: 10px;
  }
  
  .action-icon {
    width: 18px;
    height: 18px;
  }
}

/* Account Detail Card Responsive */
@media (max-width: 480px) {
  .account-detail-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
  }
  
  .balance-value {
    font-size: 20px;
  }
  
  .freebets-value {
    font-size: 18px;
  }
  
  .detail-section {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .detail-section h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }
}

/* Live Cashout Section Responsive */
@media (max-width: 480px) {
  .live-cashout-section {
    padding: 16px;
    margin: 12px 0;
  }
  
  .cashout-multiplier {
    font-size: 20px;
  }
  
  .cashout-amount {
    font-size: 28px;
  }
  
  .btn-cashout {
    padding: 14px;
    font-size: 16px;
  }
}

/* Floating Cashout Widget Responsive */
@media (max-width: 480px) {
  .floating-cashout {
    width: 160px;
    bottom: 16px;
    right: 16px;
  }
  
  .floating-cashout.minimized {
    min-width: 70px;
  }
  
  .cashout-widget-header {
    padding: 8px 10px;
  }
  
  .cashout-widget-body {
    padding: 10px 12px;
  }
  
  .cashout-widget-multiplier {
    font-size: 14px;
  }
  
  .cashout-widget-amount {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .floating-cashout {
    width: 140px;
    bottom: 12px;
    right: 12px;
  }
  
  .cashout-widget-account {
    font-size: 9px;
  }
  
  .cashout-widget-multiplier {
    font-size: 12px;
  }
  
  .cashout-widget-amount {
    font-size: 14px;
  }
}

/* Odds Page Responsive */
@media (max-width: 480px) {
  .odds-visual {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .odds-balls {
    gap: 6px;
  }
  
  .odd-ball {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }
  
  .odds-summary {
    padding: 14px;
    margin-bottom: 12px;
  }
  
  .summary-row {
    padding: 8px 0;
    font-size: 13px;
  }
  
  .prediction-card {
    padding: 14px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .odd-ball {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }
}

/* Bulk Summary Row Extra Small */
@media (max-width: 360px) {
  .bulk-summary-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .bulk-summary-item {
    padding: 10px;
  }
  
  .bulk-summary-value {
    font-size: 16px;
  }
  
  .bulk-summary-label {
    font-size: 10px;
  }
}

/* Bulk Results Grid Extra Small */
@media (max-width: 360px) {
  .bulk-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .bulk-result-item {
    padding: 12px;
  }
  
  .bulk-result-value {
    font-size: 20px;
  }
}

/* Bulk Action Bar Responsive */
@media (max-width: 480px) {
  .bulk-action-bar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .bulk-action-bar .btn {
    min-width: auto;
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .bulk-action-bar .btn-lg {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .bulk-status-indicator {
    font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 360px) {
  .bulk-action-bar {
    padding: 10px 12px;
  }
  
  .bulk-action-bar .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Bulk Account Row Responsive */
@media (max-width: 480px) {
  .bulk-account-row {
    padding: 12px 14px;
    gap: 10px;
  }
  
  .bulk-account-avatar,
  .bulk-account-avatar-placeholder {
    width: 36px;
    height: 36px;
  }
  
  .bulk-account-name {
    font-size: 14px;
  }
  
  .bulk-account-id {
    font-size: 11px;
  }
  
  .bulk-account-status {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* Account Profile Responsive */
@media (max-width: 480px) {
  .account-profile {
    padding: 3px 6px;
    gap: 6px;
  }
  
  .profile-avatar,
  .profile-avatar-placeholder {
    width: 24px;
    height: 24px;
  }
  
  .profile-name {
    font-size: 11px;
    max-width: 60px;
  }
}

@media (max-width: 360px) {
  .profile-name {
    max-width: 50px;
  }
}

/* Empty State Responsive */
@media (max-width: 480px) {
  .empty-state {
    padding: 40px 16px;
  }
  
  .empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  
  .empty-state p {
    font-size: 14px;
  }
  
  .empty-subtitle {
    font-size: 12px;
  }
}

/* ================== EDITABLE SETTINGS ================== */

/* Setting row with editable controls */
.setting-row-simple.editable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.setting-row-simple.editable-row:last-child {
  border-bottom: none;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: 0.2s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-success);
  border-color: var(--accent-success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: white;
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px var(--accent-primary);
}

/* Setting Input */
.setting-input {
  width: 100px;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.setting-input:hover {
  border-color: var(--border-light);
}

/* Currency input with prefix */
.input-with-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-prefix {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.setting-input.currency {
  width: 90px;
  padding-left: 6px;
}

/* Settings summary container */
.settings-summary.editable {
  padding: 0 4px;
}

/* Auto-spin config rows */
#detail-autospin-amount-row,
#detail-autospin-interval-row {
  padding-left: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin: 4px 0;
}

#detail-autospin-amount-row span,
#detail-autospin-interval-row span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .setting-row-simple.editable-row {
    padding: 8px 0;
  }
  
  .setting-input {
    width: 80px;
    padding: 5px 8px;
    font-size: 13px;
  }
  
  .toggle-switch {
    width: 40px;
    height: 22px;
  }
  
  .toggle-slider:before {
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
  }
  
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
  }
}
