/* Earnings Today Widget - Advanced Glossy UI (green/success theme) */
.card.earnings-today-widget {
  position: relative;
  overflow: hidden;
  border: 0 none;
  border-radius: 22px;
  box-shadow:
    0 4px 6px rgba(45, 206, 137, 0.08),
    0 12px 28px rgba(45, 206, 137, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  background: linear-gradient(152deg, #ffffff 0%, #f8fdf9 35%, #f0fbf4 70%, #e8f9f0 100%) !important;
  transition: box-shadow 0.35s ease;
}
.card.earnings-today-widget:hover {
  box-shadow:
    0 10px 24px rgba(45, 206, 137, 0.14),
    0 24px 52px rgba(45, 206, 137, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

/* Header */
.card.earnings-today-widget .card-header.earnings-widget-header {
  position: relative;
  border-radius: 22px 22px 0 0 !important;
  padding: 22px 24px 24px;
  border: 0 none;
  background: linear-gradient(138deg, #1aab6b 0%, #2dce89 25%, #24c97a 50%, #20c77a 75%, #1ab86d 100%) !important;
  box-shadow:
    0 6px 20px rgba(45, 206, 137, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 2px 0 rgba(255, 255, 255, 0.28) inset;
  overflow: hidden;
}
.earnings-widget-header__shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 35%, transparent 70%);
  border-radius: 22px 22px 0 0;
}
.card.earnings-today-widget .card-header .position-relative { position: relative; z-index: 1; }
.earnings-widget-header__left { gap: 14px; }
.earnings-widget-header__left .earnings-widget-header__icon-wrap { margin-right: 14px; }

.earnings-widget-header__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.4) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.35rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.earnings-widget-header__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.earnings-widget-header__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.earnings-widget-total { text-align: right; }
.earnings-widget-total__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.earnings-widget-total__label {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}

/* Body */
.card.earnings-today-widget .card-body.earnings-widget-body {
  border-radius: 0 0 22px 22px;
  padding: 22px;
  background: transparent;
}

.earnings-widget-section {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(45, 206, 137, 0.15);
}
.earnings-widget-section--points .earnings-widget-row__value--primary {
  color: #5e72e4;
  font-weight: 800;
}

.earnings-widget-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.earnings-today-widget .earnings-widget-row:last-of-type {
  border-bottom: 0;
}
.earnings-widget-row__label {
  font-size: 0.9rem;
  color: #6c757d;
}
.earnings-widget-row__value {
  font-size: 1rem;
}

.earnings-widget-summary {
  border-top: 1px solid rgba(45, 206, 137, 0.18);
  padding-top: 15px;
}
.earnings-widget-summary__title {
  font-size: 1rem;
  color: #32325d;
}
.earnings-widget-summary__amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2dce89;
  line-height: 1.2;
}
.earnings-widget-summary__points {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Refresh button */
.card.earnings-today-widget .earnings-widget-refresh-btn {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 700;
  border: 2px solid rgba(45, 206, 137, 0.6);
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(240,253,246,0.9) 100%) !important;
  color: #2dce89 !important;
  box-shadow: 0 2px 10px rgba(45, 206, 137, 0.15), 0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card.earnings-today-widget .earnings-widget-refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 206, 137, 0.25), 0 0 0 1px rgba(255,255,255,0.9) inset;
  border-color: #2dce89;
  background: linear-gradient(145deg, #2dce89 0%, #24c97a 100%) !important;
  color: #fff !important;
}
.earnings-widget-refresh-btn__shine {
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.7s ease;
}
.card.earnings-today-widget .earnings-widget-refresh-btn:hover .earnings-widget-refresh-btn__shine {
  left: 120%;
}

/* Night mode */
body.night-mode .card.earnings-today-widget {
  background: linear-gradient(152deg, #1a1d2a 0%, #1e2622 40%, #232d28 100%) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
body.night-mode .card.earnings-today-widget .earnings-widget-summary__title { color: #e8ecf4; }
body.night-mode .card.earnings-today-widget .earnings-widget-row__label { color: #8f9ba5; }
