/* Daily Login Reward Widget - Advanced Glossy UI */
.card.daily-login-reward-widget {
  position: relative;
  overflow: hidden;
  border: 0 none;
  border-radius: 22px;
  box-shadow:
    0 4px 6px rgba(94, 114, 228, 0.08),
    0 12px 28px rgba(94, 114, 228, 0.14),
    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%, #fafbff 35%, #f2f4ff 70%, #eef1ff 100%) !important;
  transition: box-shadow 0.35s ease, transform 0.25s ease;
}
.card.daily-login-reward-widget:hover {
  box-shadow:
    0 10px 24px rgba(94, 114, 228, 0.16),
    0 24px 52px rgba(94, 114, 228, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

/* ----- Header ----- */
.card.daily-login-reward-widget .card-header.daily-reward-header {
  position: relative;
  border-radius: 22px 22px 0 0 !important;
  padding: 22px 24px 24px;
  border: 0 none;
  background: linear-gradient(138deg, #5e72e4 0%, #6578f0 20%, #7b5ee6 45%, #825ee4 70%, #6b5ce8 100%) !important;
  background-size: 200% 200%;
  box-shadow:
    0 6px 20px rgba(94, 114, 228, 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;
}

.daily-reward-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.daily-login-reward-widget .card-header .position-relative {
  position: relative;
  z-index: 1;
}

.daily-reward-header__left {
  gap: 14px;
}
.daily-reward-header__icon-wrap {
  margin-right: 14px;
}

.daily-reward-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));
}

.daily-reward-header__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.01em;
}

/* Badges */
.daily-reward-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 0 none;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.daily-reward-badge--claim {
  background: linear-gradient(135deg, #2dce89 0%, #20c77a 50%, #1ab86d 100%) !important;
  color: #fff !important;
  animation: daily-reward-badge-pulse 2.5s ease-in-out infinite;
}
.daily-reward-badge--claimed {
  background: rgba(255, 255, 255, 0.32) !important;
  color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
}
@keyframes daily-reward-badge-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.35) inset; opacity: 1; }
  50% { box-shadow: 0 2px 16px rgba(45, 206, 137, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4) inset; opacity: 0.95; }
}

/* Streak display */
.daily-reward-streak {
  text-align: right;
}
.daily-reward-streak__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
}
.daily-reward-streak__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.daily-login-reward-widget .card-body.daily-reward-body {
  border-radius: 0 0 22px 22px;
  padding: 22px;
  background: transparent;
}

/* Stats row - glass pills */
.daily-reward-stats {
  margin: 0 -6px;
}
.daily-reward-stats .col-4 {
  padding: 6px;
}
.daily-reward-stat {
  padding: 14px 8px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.85) 100%);
  box-shadow:
    0 2px 8px rgba(94, 114, 228, 0.06),
    0 0 0 1px rgba(94, 114, 228, 0.08) inset;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.daily-reward-stat:hover {
  box-shadow:
    0 4px 14px rgba(94, 114, 228, 0.1),
    0 0 0 1px rgba(94, 114, 228, 0.1) inset;
}
.daily-reward-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.daily-reward-stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #32325d;
  line-height: 1.2;
}
.daily-reward-stat--highlight .daily-reward-stat__value {
  background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #5e72e4;
}
@supports not (background-clip: text) {
  .daily-reward-stat--highlight .daily-reward-stat__value {
    -webkit-text-fill-color: unset;
    background: none;
    color: #5e72e4;
  }
}

/* Milestone & progress */
.daily-reward-milestone {
  border-top: 1px solid rgba(94, 114, 228, 0.12);
}
.daily-reward-milestone__label {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 500;
}
.daily-reward-milestone__points {
  color: #5e72e4;
  font-size: 0.8rem;
  font-weight: 700;
}
.daily-reward-progress-wrap {
  margin: 10px 0 8px;
}
.card.daily-login-reward-widget .daily-reward-progress {
  height: 12px;
  border-radius: 12px;
  background: rgba(94, 114, 228, 0.12);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(94, 114, 228, 0.12) inset;
}
.card.daily-login-reward-widget .daily-reward-progress-bar {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, #5e72e4 0%, #6b7cf5 40%, #825ee4 100%) !important;
  box-shadow:
    0 0 14px rgba(94, 114, 228, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transition: width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
}
.card.daily-login-reward-widget .daily-reward-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  pointer-events: none;
}
.daily-reward-milestone__remaining {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Claim button - advanced glossy with shine sweep */
.card.daily-login-reward-widget .daily-reward-claim-btn {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  border: 0 none;
  background: linear-gradient(138deg, #5e72e4 0%, #6b7cf5 35%, #825ee4 70%, #7c5ee8 100%) !important;
  box-shadow:
    0 6px 20px rgba(94, 114, 228, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card.daily-login-reward-widget .daily-reward-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(94, 114, 228, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.32) inset,
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
}
.card.daily-login-reward-widget .daily-reward-claim-btn:active {
  transform: translateY(0);
  box-shadow:
    0 3px 12px rgba(94, 114, 228, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.daily-reward-claim-btn__shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.7s ease;
}
.card.daily-login-reward-widget .daily-reward-claim-btn:hover .daily-reward-claim-btn__shine {
  left: 120%;
}

/* Success alert */
.card.daily-login-reward-widget .daily-reward-success {
  border-radius: 14px;
  border: 1px solid rgba(45, 206, 137, 0.4);
  background: linear-gradient(135deg, rgba(45, 206, 137, 0.18) 0%, rgba(36, 201, 122, 0.12) 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

/* Night mode */
body.night-mode .card.daily-login-reward-widget {
  background: linear-gradient(152deg, #1a1d2a 0%, #232736 40%, #2a2d3c 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.daily-login-reward-widget .daily-reward-stat {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
body.night-mode .card.daily-login-reward-widget .daily-reward-stat__value {
  color: #e8ecf4;
}
body.night-mode .card.daily-login-reward-widget .daily-reward-stat--highlight .daily-reward-stat__value {
  color: #8b9cf5;
  background: linear-gradient(135deg, #8b9cf5, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.night-mode .card.daily-login-reward-widget .daily-reward-stat__label,
body.night-mode .card.daily-login-reward-widget .daily-reward-milestone__label,
body.night-mode .card.daily-login-reward-widget .daily-reward-milestone__remaining {
  color: #8f9ba5;
}
body.night-mode .card.daily-login-reward-widget .daily-reward-milestone {
  border-top-color: rgba(255, 255, 255, 0.06);
}
