/*
 ZEXARA TASKS — PREMIUM OBSIDIAN GOLD V1
 CSS only. No data, payout, or navigation logic.
*/

/* Primary challenge card */
html body .magnet4-card {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(214,171,85,.49) !important;
  border-radius: 23px !important;
  padding: 17px 14px 15px !important;
  background:
    radial-gradient(
      ellipse at 95% 0%,
      rgba(197,143,48,.13),
      transparent 54%
    ),
    linear-gradient(
      150deg,
      #22252a 0%,
      #13161b 65%,
      #191b1e 100%
    ) !important;
  box-shadow:
    0 16px 40px rgba(0,0,0,.23),
    inset 0 1px rgba(255,229,170,.06) !important;
  color: #f6f3ed !important;
}

/* Challenge heading */
html body .magnet4-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

html body .magnet4-head h3 {
  margin: 3px 0 0 !important;
  color: #fffaf0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -.3px !important;
}

html body .magnet4-head small {
  color: #d5ad61 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  opacity: 1 !important;
}

html body .magnet4-head > span {
  flex-shrink: 0 !important;
  border-radius: 30px !important;
  border: 1px solid rgba(235,189,95,.35) !important;
  background: rgba(191,139,52,.13) !important;
  color: #f4d28f !important;
  padding: 7px 11px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

/* Description */
html body .magnet4-desc {
  margin: 0 0 14px !important;
  color: #d6d2cc !important;
  font-size: 11px !important;
  line-height: 1.75 !important;
  letter-spacing: 0 !important;
}

/* Reward panel */
html body .magnet4-pot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border: 1px solid rgba(215,171,83,.38) !important;
  border-radius: 16px !important;
  background: linear-gradient(
    130deg,
    #26282a,
    #1c2027
  ) !important;
  padding: 14px 12px !important;
  margin-bottom: 14px !important;
}

html body .magnet4-pot div {
  min-width: 0 !important;
  flex: 0 0 auto !important;
}

html body .magnet4-pot div > span {
  display: block !important;
  color: #c5aa77 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .55px !important;
}

html body .magnet4-pot strong {
  display: block !important;
  margin-top: 5px !important;
  color: #f7cb76 !important;
  font-size: 23px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

html body .magnet4-pot > p {
  margin: 0 !important;
  max-width: 54% !important;
  color: #c5c0b8 !important;
  font-size: 9px !important;
  line-height: 1.5 !important;
  text-align: right !important;
}

/* Seven real day cards */
html body .magnet4-days {
  display: grid !important;
  grid-template-columns: repeat(7,minmax(0,1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .magnet4-day {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 97px !important;
  padding: 9px 2px !important;
  margin: 0 !important;
  gap: 6px !important;
  border: 1px solid rgba(207,166,91,.25) !important;
  border-radius: 11px !important;
  background: linear-gradient(
    160deg,#202226,#121419
  ) !important;
  box-shadow: none !important;
  text-align: center !important;
}

html body .magnet4-day small {
  color: #a9a7a7 !important;
  font-size: 8px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body .magnet4-day strong {
  color: #fff8e9 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

html body .magnet4-day span {
  color: #c9c6c1 !important;
  font-size: 8px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

html body .magnet4-day b {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  padding: 0 !important;
  border: 1px solid #95918a !important;
  border-radius: 50% !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
}

html body .magnet4-day.ready,
html body .magnet4-day.completed {
  border-color: #e4b85f !important;
  background: linear-gradient(
    155deg,#47361f,#27231d
  ) !important;
  box-shadow: 0 0 13px rgba(220,168,68,.12) !important;
}

html body .magnet4-day.ready b,
html body .magnet4-day.completed b {
  border-color: #f5cd74 !important;
  background: #e9b950 !important;
  box-shadow: 0 0 8px rgba(255,200,85,.45) !important;
}

/* Real check-in button */
html body .magnet4-checkin {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 47px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(227,178,82,.65) !important;
  background: linear-gradient(
    110deg,#292318,#372a19,#292318
  ) !important;
  color: #f6d28c !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  box-shadow: inset 0 1px rgba(255,223,142,.1) !important;
}

html body .magnet4-checkin.ready:not(:disabled) {
  background: linear-gradient(
    110deg,#c3933d,#f4cc79,#c3933d
  ) !important;
  color: #171411 !important;
  cursor: pointer !important;
}

html body .magnet4-checkin:disabled {
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Referral requirement */
html body .magnet4-requirement {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 12px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #bfc0c2 !important;
}

html body .magnet4-requirement span {
  font-size: 9px !important;
  line-height: 1.5 !important;
  color: #babcc0 !important;
}

html body .magnet4-requirement strong,
html body .magnet4-requirement b {
  color: #f2c873 !important;
}

html body .magnet4-requirement button {
  flex-shrink: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(218,169,76,.5) !important;
  border-radius: 20px !important;
  background: rgba(209,157,55,.1) !important;
  color: #f5ca79 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Recent activity */
html body .magnet4-history {
  border: 1px solid rgba(208,165,83,.4) !important;
  border-radius: 22px !important;
  padding: 16px 12px !important;
  background: linear-gradient(
    150deg,#202329,#14171c
  ) !important;
  color: #f6f0e7 !important;
  box-shadow: 0 12px 25px rgba(0,0,0,.15) !important;
}

html body .magnet4-history-head small {
  color: #c4a66e !important;
}

html body .magnet4-history-head h3 {
  color: #fff9f0 !important;
}

html body .magnet4-history-empty,
html body .magnet4-history-item {
  background: #22262d !important;
  border: 1px solid rgba(210,169,91,.2) !important;
  border-radius: 14px !important;
  color: #e3e0dc !important;
}

/* Responsive narrow Telegram screen */
@media (max-width:390px) {
  html body .magnet4-card {
    padding: 15px 11px !important;
  }
  html body .magnet4-days {
    gap: 3px !important;
  }
  html body .magnet4-day {
    min-height: 91px !important;
    padding: 8px 1px !important;
    gap: 5px !important;
  }
  html body .magnet4-day strong {
    font-size: 11px !important;
  }
  html body .magnet4-day small,
  html body .magnet4-day span {
    font-size: 7px !important;
  }
}

/*
 ZEXARA TASKS GOLD V2
 Restore the seven-day grid if its React elements exist.
 Scoped to the actual Magnet component.
*/

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days {
  display:grid !important;
  grid-template-columns:repeat(7,minmax(0,1fr)) !important;
  gap:4px !important;
  visibility:visible !important;
  opacity:1 !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  margin:0 0 15px !important;
  padding:0 !important;
  overflow:visible !important;
  background:transparent !important;
  background-image:none !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days > .magnet4-day {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  min-width:0 !important;
  width:auto !important;
  min-height:95px !important;
  height:auto !important;
  padding:8px 1px !important;
  gap:5px !important;
  border:1px solid rgba(214,175,86,.38) !important;
  border-radius:11px !important;
  background:linear-gradient(
    160deg,#26272a,#131519
  ) !important;
  background-image:linear-gradient(
    160deg,#26272a,#131519
  ) !important;
  transform:none !important;
  text-align:center !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days
> .magnet4-day :is(small,strong,span) {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  max-width:100% !important;
  white-space:nowrap !important;
  text-overflow:clip !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days
> .magnet4-day strong {
  color:#F7D084 !important;
  -webkit-text-fill-color:#F7D084 !important;
  font-size:12px !important;
  font-weight:900 !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days
> .magnet4-day.ready,
html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-days
> .magnet4-day.completed {
  border-color:#E2B45C !important;
  background:linear-gradient(
    160deg,#47351D,#24201B
  ) !important;
  box-shadow:0 0 12px rgba(222,168,70,.15) !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-card {
  border-color:rgba(220,176,90,.55) !important;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(211,159,69,.13),
      transparent 52%
    ),
    linear-gradient(
      150deg,#242427,#13161B
    ) !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-checkin {
  border:1px solid rgba(224,177,81,.7) !important;
  background:linear-gradient(
    110deg,#292318,#382A19
  ) !important;
  color:#F2D18B !important;
  -webkit-text-fill-color:#F2D18B !important;
}

html body:not(.admin-route) #root
.wheel4 .magnet4 .magnet4-checkin.ready:not(:disabled) {
  background:linear-gradient(
    110deg,#C59645,#F0C878
  ) !important;
  color:#171411 !important;
  -webkit-text-fill-color:#171411 !important;
}

@media(max-width:390px) {
  html body:not(.admin-route) #root
  .wheel4 .magnet4 .magnet4-days {
    gap:3px !important;
  }

  html body:not(.admin-route) #root
  .wheel4 .magnet4 .magnet4-days
  > .magnet4-day {
    min-height:88px !important;
    padding:7px 1px !important;
  }

  html body:not(.admin-route) #root
  .wheel4 .magnet4 .magnet4-days
  > .magnet4-day strong {
    font-size:10px !important;
  }
}
