/* Check-in Activity Section */
.checkin-activity {
  padding: 80px 0;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.checkin-activity-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkin-activity-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, #FDECD4 0%, #9A5314 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.checkin-activity-subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: #999;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #FDECD4 0%, #9A5314 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Content Layout */
.checkin-content {
  display: flex;
}

/* Left Side - Check-in and Share Panels */
.checkin-panels {
  display: flex;
  position: relative;
  margin: 0 auto;
}

.checkin-panels .checkin-header {
  background-image: url(../images/cibg1.png);
}

.checkin-panels .share-header {
  color: #3C2315;
  background-image: url(../images/cibg2.png);
}

.checkin-panels .right {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

/* Panel Base Styles */
.checkin-panel-wrap {
  position: relative;
  width: 829px;
}

.checkin-panel {
  position: relative;
  overflow: visible;
  padding: 0;
  background: transparent;
  display: flex;
  height: 200px;
}

/* Daily Check-in Panel (Gold) */
.checkin-panel.daily-checkin {
  background: linear-gradient(180deg, #B8935A 0%, #8B6F3F 100%);
}

/* Daily Share Panel (Blue) */
.checkin-panel.daily-share {
  /* background: linear-gradient(300deg, #3D7AB8 0%, #2A5580 100%); */
  background: linear-gradient(155.28deg, rgba(233, 213, 167, 1),rgba(255, 255, 255, 1) 51%,rgba(250, 220, 157, 1) 100%);
}

/* Date Divider */
.date-divider {
  display: flex;
  align-items: center;
  left: 0;
  right: 0;
  /* overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch; */
  position: absolute;
  top: 50%;
  margin-top: -17px;
  z-index: 10;
}

.date-divider::-webkit-scrollbar {
  display: none;
}

.date-item-wrap {
  width: 91px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.date-item {
  width: 72px;
  height: 34px;
  line-height: 34px;
  background: url(../images/hex3.png) no-repeat;
  background-size: cover;
  font-size: 16px;
  font-family: Work Sans;
  font-weight: 500;
  color: #FDECD4;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.date-item.active {
  background-image: url(../images/hex2.png);
}

.date-item.completed {
  background-image: url(../images/hex1.png);
  color: #666;
}

/* Panel Header */
.panel-header {
  width: 150px;
  height: 200px;
  background-repeat: no-repeat;
  background-size: 100%;
  font-family: Work Sans;
  font-weight: 500;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

/* Reward Grid Wrapper */
.reward-grid-wrapper {
  position: relative;
  width: 829px;
}

/* Reward Grid */
.reward-grid {
  margin-top: 50px;
  display: flex;
  align-items: center;
  /* overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch; */
  /* Force hardware acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
/* 
.reward-grid::-webkit-scrollbar {
  height: 6px;
}

.reward-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.reward-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.reward-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
} */

.reward-day {
  width: 91px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.reward-item {
  width: 72px;
  height: 72px;
  background: #111;
  border: 1px solid #ad844d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reward-item::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.reward-item.large {
  width: 86px;
  height: 86px;
  border: 3px solid;
  border-image-slice: 1;
  border-width: 3px;
  border-image-source: linear-gradient(45deg, #FFAD5C, #FFEFC0);
}

.checkin-panel.daily-share .reward-item {
  border: 1px solid #5599ff;
}

.checkin-panel.daily-share .reward-item.large {
  border: 3px solid;
  border-image-slice: 1;
  border-width: 3px;
  border-image-source: linear-gradient(45deg, #25EAFF, #4BCEFF);
}

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

/* Completed State */
.reward-item.completed {
  background: rgba(255, 255, 255, 0.2);
}

.reward-item.completed::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.reward-item.completed::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 20px;
  background: url(../images/ck.png) no-repeat;
  background-size: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Locked State */
.reward-item.locked {
  /* cursor: not-allowed; */
}

.reward-item.locked::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #000;
}

.reward-item.locked::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  background: url(../images/lk.png) no-repeat;
  background-size: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Current/Active State */
.reward-item.current {
  box-shadow: 0px 0px 9px 2px rgba(253, 236, 212, 1);
}

.reward-item.current:not(.completed)::before {
  display: none;
}

.reward-item[data-share-status=audit_pass]::before {
  display: none;
}

.checkin-panel.daily-share .reward-item.current {
  box-shadow: 0px 0px 9px 2px rgba(85, 153, 255, 1);
}

.reward-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
  background-size: 100%;
  background-repeat: no-repeat;
}

.reward-icon.free_ticket {
  background-image: url(../images/icon_hearts_2x.png);
}

.reward-icon.diamond {
  background-image: url(../images/icon_diamonds.png);
}

.reward-image {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
}

.reward-amount {
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button under current day item */
.reward-day-action {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  white-space: nowrap;
}

/* Action Buttons */
.checkin-btn,
.share-btn {
  width: 70px;
  height: 30px;
  border: none;
  border-radius: 70px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* text-transform: uppercase; */
  white-space: nowrap;

  color: #111;
  font-family: Work Sans;
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}

.checkin-btn {
  background: linear-gradient(180.00deg, rgba(255, 218, 85, 1),rgba(245, 179, 44, 1) 100%);
}

.checkin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.share-btn {
  /* background: linear-gradient(180.00deg, rgba(37, 234, 255, 1),rgba(75, 206, 255, 1) 100%); */
  background: linear-gradient(180.00deg, rgba(227, 185, 127, 1),rgba(173, 116, 40, 1) 100%);
}

.share-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  /* box-shadow: 0 4px 12px rgba(0, 191, 255, 0.4); */
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Auditing State - Under Review */
.share-btn.auditing {
  background: linear-gradient(180.00deg, rgba(153, 153, 153, 1), rgba(102, 102, 102, 1) 100%);
  color: #ccc;
  cursor: pointer;
}

.share-btn.auditing:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(153, 153, 153, 0.3);
}

/* Claim State - Can Claim Reward */
.share-btn.claim {
  background: linear-gradient(180.00deg, rgba(37, 234, 255, 1), rgba(75, 206, 255, 1) 100%);
  color: #111;
  animation: pulse 2s ease-in-out infinite;
}

.share-btn.claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 234, 255, 0.6);
  animation: none;
}

/* Claimed State - Already Claimed */
.share-btn.claimed {
  background: linear-gradient(180.00deg, rgba(76, 175, 80, 1), rgba(56, 142, 60, 1) 100%);
  color: #fff;
  opacity: 0.7;
  cursor: default;
}

.share-btn.claimed:hover {
  transform: none;
  box-shadow: none;
}

/* Failed State - Audit Failed */
.share-btn.failed {
  background: linear-gradient(180.00deg, rgba(153, 153, 153, 1), rgba(102, 102, 102, 1) 100%);
  color: #ccc;
  cursor: pointer;
}

.share-btn.failed:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(153, 153, 153, 0.3);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 234, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(37, 234, 255, 0);
  }
}

.checkin-btn:disabled,
.share-btn:disabled {
  opacity: 0.6;
  /* cursor: not-allowed; */
}

.checkin-btn:disabled:hover,
.share-btn:disabled:hover {
  transform: none;
}

/* Right Side - Reward Card */
.reward-card {
  width: 300px;
  height: 400px;
  flex-shrink: 0;
  background: url(../images/skin_card2.jpg) no-repeat;
  background-size: 100%;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.reward-card-header {
  height: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  padding: 0 20px;
}

.reward-card-title {
  font-family: Josefin Sans;
  font-size: 28px;
  font-weight: 400;
  line-height: 30px;
  text-transform: uppercase;
}

.reward-card-subtitle {
  font-family: Work Sans;
  font-size: 14px;
  font-weight: 400;
}

.reward-card-body {
  text-align: center;
}

.reward-progress {
  margin-top: 200px;
  margin-bottom: 10px;

  color: #fff;
  font-family: Work Sans;
  font-size: 12px;
  font-weight: 400;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .8);
}

.reward-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A961 0%, #FFD700 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.reward-claim-btn {
  display: block;
  width: 180px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  background: url(../images/cbtn.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 0;

  color: #111;
  font-family: Work Sans;
  font-size: 20px;
  font-weight: 400;
}

.reward-claim-btn:hover {
  transform: translateY(-2px);
}

.reward-claim-btn:disabled {
  color: #666;
  cursor: default;
  transform: none;
  background-image: url(../images/cbtn1.png);
}

.reward-claim-btn.claimed {
  cursor: default;
  background-image: url(../images/cbtn2.png);
}

.reward-claim-btn.claimed:hover {
  transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .checkin-activity-container {
    display: block;
  }

  .checkin-content {
    flex-direction: column;
  }
  
  .reward-card {
    margin: 20px auto 0;
  }
}

@media (max-width: 1024px) {
  .checkin-panels {
    margin: initial;
  }
}

@media (max-width: 768px) {
  .checkin-activity-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .panel-header {
    width: 105px;
    height: 140px;
    font-size: 14px;
  }

  .checkin-panel {
    height: 140px;
  }

  .reward-grid {
    margin-top: 10px;
  }

  .daily-share .reward-grid {
    margin-top: 22px;
  }

  .reward-day {
    width: 79px;
  }

  .reward-grid-wrapper {
    width: 718px;
  }

  .checkin-panel-wrap {
    width: 718px;
  }

  .reward-item {
    width: 64px;
    height: 64px;
  }

  .reward-item.large {
    width: 72px;
    height: 72px;
  }

  .reward-icon {
    width: 32px;
    height: 32px;
  }

  .reward-image {
    width: 32px;
    height: 32px;
  }

  .reward-amount {
    font-size: 10px;
  }

  .reward-day-action {
    bottom: -30px;
  }

  .checkin-btn,
  .share-btn {
    width: 51px;
    height: 21px;
    font-size: 10px;
    line-height: 21px;
  }

  .date-item-wrap {
    width: 79px;
  }

  .date-item {
    width: 55px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
  }
}

/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
