/* CSS for section section:CheckIn */
/* Section Container */
/*#section-check-in {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(1px);
  min-height: 100vh;
}*/

#section-check-in {
  /* 核心修改：改为固定定位，覆盖全屏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* 确保在最上层 */

  /* 居中布局 */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* 背景样式 */
  background-color: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(4px); /* 稍微加大模糊感，更有质感 */
  
  /* 移除内边距防止偏移 */
  padding: 0;
  
  /* 默认隐藏状态 */
  display: none;
  
}


/* 只要 #section-check-in 不是 none (即只要它显示)，就强制它为 flex */
#section-check-in[style*="display: block"] {
  display: flex !important;
}

.check-in-container {
  width: 100%;
  /* max-width: 390px; Based on root node width */
  display: flex;
  justify-content: center;
}

/* Main Card */
.check-in-card {
  width: 90%;
  /*max-width: 347px;*/
  background-color: #1d1d27;
  border: 0.5px solid #69668b;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  
}

/* Header */
.check-in-card-header {
  height: 52px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #69668b;
  background: radial-gradient(circle at center, rgba(61,62,72,1) 0%, rgba(40,40,53,1) 100%);
}

.check-in-header-title {
  font-size: 16px;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
}

/* Body */
.check-in-card-body {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

/* Info Text */
.check-in-info-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.check-in-subtitle {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
}

.check-in-main-title {
  color: #f2cf83;
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}

/* Grid System */
.check-in-days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

/* Day Card Component */
.check-in-day-card {
  background-color: #282835;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 120px;
  position: relative;
}

.check-in-day-card.check-in-end::after {
  content: '';
  display: block;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(/v2_new_home/images/sign/tick.svg) no-repeat center #56dc30b0;
  background-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: auto;
}

.check-in-day-card.check-in-active {
  border: 1px solid #f2cf83;
  box-shadow: 0px 0px 10px 0px #f2cf83;
}

.check-in-day-card.check-in-full-width {
  grid-column: 1 / -1;
  height: 120px;
}

.check-in-day-header {
  width: 100%;
  height: 32px;
  background-color: #69668b;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.check-in-day-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 5px;
}

.check-in-coin-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.check-in-coin-text {
  color: #ffffff;
  font-size: 10px;
}

.check-in-vip-text {
  color: #f2cf83;
  font-size: 12px;
}

/* Button */
.check-in-btn {
  width: 100%;
  height: 50px;
  background-color: #f2cf83;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}


.check-in-btn:hover {
  opacity: 0.9;
}

.check-in-btn-text {
  color: #282835;
  font-size: 16px;
  font-weight: 700;
}


.check-in-btn-close {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}

.check-in-btn-close:hover {
  opacity: 0.9;
}


/* Responsive Adjustments */
@media (max-width: 360px) {
  .check-in-check-in-card {
    max-width: 100%;
  }
  
  .check-in-days-grid {
    gap: 5px;
  }
  
  .check-in-day-header {
    font-size: 10px;
  }
  
  .check-in-vip-text, .check-in-coin-text {
    font-size: 9px;
  }
}    