/* TRXEarn Master Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light only !important;
  supported-color-schemes: light !important;
  --primary-navy: #003865;
  --primary-dark: #002b4d;
  --brand-red: #eb0029;
  --brand-green: #10b981;
}

html, body {
  color-scheme: light only !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f4f7fb !important;
  color: #1e293b !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#view-login > div, #view-signup > div, #view-forgot-password > div, #view-reset-password > div {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

#view-login input, #view-signup input, #view-forgot-password input, #view-reset-password input {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Page Transition & Loading Bar */
#app-top-loader {
  transition: width 0.25s ease-in-out, opacity 0.25s ease;
}

#app-page-loading-overlay {
  transition: opacity 0.2s ease-in-out;
}

.hidden {
  display: none !important;
}

#sidebar-backdrop.hidden,
#app-page-loading-overlay.hidden,
#level-up-modal.hidden,
#adm-manage-funds-modal.hidden,
#modal-bet-info.hidden,
#modal-provably-fair.hidden {
  display: none !important;
  pointer-events: none !important;
}

.view-fade-in {
  animation: viewFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-item.active-nav {
  background-color: #003865 !important;
  color: #ffffff !important;
}

.nav-item.active-nav i,
.nav-item.active-nav svg {
  color: #ffffff !important;
}

/* TRONPICK EXACT LEVEL SYSTEM TABLE */
.tronpick-level-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.tronpick-level-header {
  background-color: #003865 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-bottom: 1.5px solid #002b4d !important;
}

.tronpick-level-subhead {
  background-color: #cbd5e1 !important;
  padding: 12px 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #1e293b !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-bottom: 1.5px solid #94a3b8 !important;
}

.tronpick-level-rows {
  font-size: 15px;
}

.tronpick-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 13px 28px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: all 0.15s ease !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.tronpick-row:nth-child(even) {
  background-color: #f8fafc !important;
}

.tronpick-row:hover {
  background-color: #f1f5f9 !important;
}

.tier-name-col {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.tier-payout-col {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #003865 !important;
}

.tronpick-row.active-tier {
  background-color: #ecfdf5 !important;
  border-left: 5px solid #10b981 !important;
}

.tronpick-row.active-tier .tier-name-col {
  color: #065f46 !important;
  font-weight: 900 !important;
}

.tronpick-row.active-tier .tier-payout-col {
  color: #047857 !important;
  font-weight: 900 !important;
}

.active-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #059669;
  font-size: 14px;
}

/* Wager Level Progress Markers */
.wager-dot-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.wager-dot-marker.active-dot {
  background-color: #10b981;
}

/* Digital Flip Clock */
.flip-clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 10px auto;
  max-width: 440px;
}

.flip-clock-labels {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 260px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flip-clock-digits-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.flip-group {
  display: flex;
  gap: 4px;
}

.flip-digit {
  width: 50px;
  height: 64px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid #334155;
  position: relative;
}

.flip-digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.flip-clock-colon {
  font-size: 2.2rem;
  font-weight: 900;
  color: #64748b;
  margin-top: -6px;
}

/* User Menu Dropdown Transition */
#user-menu-dropdown {
  transform-origin: top right;
  transition: all 0.15s ease-out;
}


/* Header: Pure Black */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f4f7fb;
  color: #1e293b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header, #top-header {
  background-color: #000000 !important;
  border-bottom: 1px solid #000000 !important;
}

/* Manage Funds Tables */
.funds-wallet-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
}
.funds-table-head {
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}
.funds-table-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}
.funds-table-row:hover {
  background-color: #f8fafc;
}
.funds-move-link {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.funds-move-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Provably Fair Games Styling */
.game-tab-btn {
  user-select: none;
}
.mines-cell {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'JetBrains Mono', monospace;
}
.mines-cell:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.mines-cell:disabled {
  cursor: default;
}
.slot-reel {
  user-select: none;
  perspective: 1000px;
  transition: transform 0.1s ease-in-out;
}
.poker-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}
.poker-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.poker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
}
