/* =====================================================
       INVENTORY BAR
    ===================================================== */
/* =====================================================
       TOP NAV
    ===================================================== */

    /* =====================================================
       CALENDAR PAGE
    ===================================================== */
    .calendar-page {
      padding: 26px 24px 28px;
      color: #f4f7ff;
      background: var(--demo-bg);
    }
    .calendar-page .contents {
      width: min(100%, 1280px);
      margin: 0 auto;
    }
    .calendar-page .breadcrumb {
      display: flex;
      align-items: center;
      gap: 11px;
      margin: 0 0 50px;
      color: #536177;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: uppercase;
      padding: 0;
    }
    .calendar-page .breadcrumb-home {
      width: 16px;
      height: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 0;
      border-radius: 0;
      color: #d5a11f;
    }
    .calendar-page .breadcrumb-home svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }
    .calendar-page .breadcrumb-separator,
    .calendar-page .breadcrumb-current {
      color: #536177;
    }

    .calendar-title-wrap {
      text-align: center;
      padding: 0;
      margin-bottom: 24px;
    }
    .calendar-month {
      font-size: 18px; font-weight: 700;
      line-height: 1.2; text-transform: uppercase; letter-spacing: 0; color: #fff;
    }
    .calendar-day {
      font-size: 10px; color: #d5a11f; font-weight: 700;
      margin-top: 2px; letter-spacing: 0;
    }

    /* =====================================================
       CALENDAR GRID
    ===================================================== */
    .calendar-section {
      padding: 0; display: flex; justify-content: center;
    }
    .calendar-wrapper { width: 100%; max-width: 1200px; }
    .calendar-grid {
      display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: stretch;
    }

    /* Locked day card */
    .cal-day {
      position: relative; min-width: 0;
      background: #121824;
      border: 1px solid rgba(83, 96, 120, 0.08); border-radius: 6px;
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; padding: 16px 10px 12px;
      min-height: 150px; cursor: default;
    }
    .cal-day.locked { cursor: default; }
    .cal-day.current { border-color: rgba(255,215,0,0.3); }

    .cal-day-badge {
      position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
      font-size: 11px; color: #687894; font-weight: 600;
    }

    /* Lock icon */
    .lock-icon {
      width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .lock-icon svg { width: 72px; height: 72px; }
    .lock-icon img { width: 72px; height: 72px; object-fit: contain; position: relative; z-index: 1; }
    .lock-glow {
      position: absolute; inset: -10px;
      background: radial-gradient(circle, rgba(255,193,7,0.20) 0%, rgba(255,193,7,0.08) 36%, transparent 68%);
      border-radius: 50%; pointer-events: none;
    }

    .cal-day-num {
      margin-top: 10px; font-size: 10px; color: #536078; font-weight: 600;
    }

    /* Reward cards */
    .cal-reward {
      position: relative; min-width: 0;
      background: #121824;
      border: 1px solid rgba(83, 96, 120, 0.08); border-radius: 6px;
      display: flex; flex-direction: column; align-items: center;
      padding: 10px 10px 12px; min-height: 150px;
    }
    .cal-reward-num {
      font-size: 10px; color: #536078; font-weight: 600; margin-bottom: 4px; align-self: flex-start; padding-left: 2px;
    }
    .cal-reward-img-wrap {
      width: 100%; flex: 1;
      display: flex; align-items: center; justify-content: center;
      position: relative; border-radius: 5px; overflow: hidden; margin-bottom: 8px;
      min-height: 76px;
    }

    /* Promo card (День 5) */
    .cal-reward.promo .cal-reward-img-wrap {
      background: radial-gradient(circle at center, rgba(213,161,31,0.14) 0%, transparent 68%);
    }
    .cal-reward.promo .reward-brand-mark {
      width: 52px;
      height: 52px;
      overflow: hidden;
      flex: 0 0 auto;
    }
    .cal-reward.promo .reward-logo {
      width: 215px; height: 52px; max-width: none; display: block;
    }
    .cal-reward.promo .reward-sub {
      font-size: 10px; color: #687797; margin-bottom: 1px; text-align: center;
    }
    .cal-reward.promo .reward-code {
      font-size: 11px; color: #f4b51f; font-weight: 800; letter-spacing: 0; text-align: center;
    }
    .cal-reward.promo .reward-underline {
      width: 100%; height: 2px; background: linear-gradient(90deg, #ffd560, #d59104); border-radius: 1px; margin-top: 8px;
    }

    /* Case card (День 6) */
    .cal-reward.case .cal-reward-img-wrap {
      background: radial-gradient(circle at center, rgba(75,105,255,0.10) 0%, transparent 70%);
    }
    .cal-reward.case .reward-case-img {
      width: 96px; height: 72px; object-fit: contain;
    }
    .cal-reward.case .reward-sub { font-size: 10px; color: #687797; margin-bottom: 4px; text-align: center; }
    .cal-reward.case .reward-btn {
      width: 100%; min-height: 32px; background: linear-gradient(180deg, #ffd560 0%, #d59104 100%); border: none;
      padding: 0 12px; border-radius: 5px; color: #ffffff; font-weight: 700; font-size: 11px;
      cursor: pointer; transition: all 0.2s; text-align: center;
    }
    .cal-reward.case .reward-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(213,145,4,0.24); }
    .cal-reward.case .reward-underline {
      width: 100%; height: 2px; background: linear-gradient(90deg, #FFD700, #FFA500); border-radius: 1px; margin-top: 8px; display: none;
    }

    /* Gun card (День 7) */
    .cal-reward.gun .cal-reward-img-wrap {
      background: radial-gradient(circle at center, rgba(255,193,7,0.10) 0%, transparent 70%);
    }
    .cal-reward.gun .reward-price-badge {
      position: absolute; top: 4px; right: 4px;
      background: rgba(18,24,36,0.9); border: 1px solid rgba(83,96,120,0.18);
      border-radius: 5px; padding: 2px 6px; font-size: 9px; color: #67c77d; font-weight: 700;
      display: flex; align-items: center; gap: 3px;
    }
    .cal-reward.gun .reward-price-badge svg { width: 7px; height: 7px; fill: #67c77d; }
    .cal-reward.gun .reward-gun-img {
      width: 108px; height: 70px; object-fit: contain;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    }
    .cal-reward.gun .reward-name { font-size: 9px; color: #687797; margin-bottom: 1px; text-align: center; }
    .cal-reward.gun .reward-subname { font-size: 11px; color: #fff; font-weight: 700; text-align: center; margin-bottom: 6px; }
    .cal-reward.gun .reward-btn {
      width: 100%; min-height: 32px; background: linear-gradient(180deg, #ffd560 0%, #d59104 100%); border: none;
      padding: 0 12px; border-radius: 5px; color: #FFFFFF; font-weight: 700; font-size: 11px;
      cursor: pointer; transition: all 0.2s;
    }
    .cal-reward.gun .reward-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(213,145,4,0.24); }

    /* =====================================================
       STATS SECTION
    ===================================================== */
/* =====================================================
       CLAIM ANIMATION
    ===================================================== */
    .cal-reward { overflow: visible; }

    @keyframes claimPulse {
      0%   { transform: scale(1); }
      40%  { transform: scale(0.92); }
      70%  { transform: scale(1.06); }
      100% { transform: scale(1); }
    }
    @keyframes claimSpark {
      0%   { opacity: 1; transform: translate(0,0) scale(1); }
      100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.3); }
    }
    @keyframes claimOverlay {
      0%   { opacity: 0; transform: scale(0.7); }
      50%  { opacity: 1; transform: scale(1.08); }
      100% { opacity: 1; transform: scale(1); }
    }
    @keyframes claimGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
      50%       { box-shadow: 0 0 30px 8px rgba(255,215,0,0.35); }
    }
    @keyframes checkDraw {
      0%   { stroke-dashoffset: 40; }
      100% { stroke-dashoffset: 0; }
    }
    @keyframes claimBtnSuccess {
      0%   { background: linear-gradient(135deg,#FFD700,#FFA500); }
      100% { background: linear-gradient(135deg,#4BB543,#36a330); }
    }

    .cal-reward.claimed { pointer-events: none; }
    .cal-reward.claimed .reward-btn {
      animation: claimBtnSuccess 0.35s forwards;
      cursor: default;
    }

    .claim-overlay {
      position: absolute; inset: 0; z-index: 10;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; border-radius: 6px;
      background: rgba(15,15,30,0.78);
      animation: claimOverlay 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
    }
    .claim-overlay svg { width: 44px; height: 44px; }
    .claim-overlay .check-circle {
      fill: none; stroke: #4BB543; stroke-width: 3;
    }
    .claim-overlay .check-mark {
      fill: none; stroke: #4BB543; stroke-width: 3;
      stroke-linecap: round; stroke-linejoin: round;
      stroke-dasharray: 40; stroke-dashoffset: 40;
      animation: checkDraw 0.45s 0.2s ease forwards;
    }
    .claim-overlay-text {
      color: #4BB543; font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
    }

    .claim-spark {
      position: fixed; width: 7px; height: 7px; border-radius: 50%;
      pointer-events: none; z-index: 9999;
      animation: claimSpark 0.7s ease-out forwards;
    }

    /* =====================================================
       FOOTER
    ===================================================== */
/* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1024px) and (min-width: 768px) {
    }
    @media (max-width: 900px) {
      .calendar-page {
        padding-inline: 12px;
      }

      .calendar-section {
        justify-content: flex-start;
        margin: 0 -12px;
        padding: 0 12px 8px;
        overflow-x: auto;
        scrollbar-width: thin;
      }

      .calendar-wrapper {
        width: max-content;
        min-width: 808px;
        max-width: none;
      }

      .calendar-grid {
        grid-template-columns: repeat(7, 108px);
      }
    }
    @media (max-width: 767px) {
      .calendar-page .breadcrumb {
        margin-bottom: 38px;
      }

      .calendar-title-wrap {
        margin-bottom: 18px;
      }
    }

/* Figma calendar layout */
.calendar-page {
  padding: 20px 24px 26px;
  font-family: inherit;
}

.calendar-page .breadcrumb {
  margin-bottom: 34px;
  font-size: 9px;
  font-weight: 600;
}

.calendar-title-wrap {
  margin-bottom: 14px;
}

.calendar-month {
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
}

.calendar-day {
  margin-top: 1px;
  color: #d9a52a;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
}

.calendar-wrapper {
  position: relative;
  width: min(100%, 1000px);
  max-width: 1000px;
}

.calendar-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.calendar-scroll::-webkit-scrollbar {
  display: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(31, 132px);
  gap: 10px;
  width: max-content;
  align-items: stretch;
}

.calendar-card,
.cal-day,
.cal-reward {
  box-sizing: border-box;
  position: relative;
  width: 132px;
  height: 132px;
  min-height: 132px;
  padding: 8px 8px 6px;
  overflow: hidden;
  background: #121824;
  border: 0;
  border-radius: 5px;
  scroll-snap-align: start;
  font-family: inherit;
}

.calendar-card-day,
.cal-day-num,
.cal-reward-num {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 4;
  margin: 0;
  padding: 0;
  color: #56657f;
  font-size: 8px;
  line-height: 10px;
  font-weight: 600;
}

.calendar-card-accent {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 1px;
  background: #d5a11f;
}

.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day.current {
  background: #141b28;
  border: 0;
}

.lock-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon .lock-king {
  position: absolute;
  z-index: 0;
  width: 70px;
  height: 70px;
  opacity: 0.38;
  filter: blur(2px) saturate(1.25);
}

.lock-icon .lock-symbol {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(213, 161, 31, 0.28));
}

.cal-reward {
  display: grid;
  grid-template-rows: 10px 70px 12px 13px;
  align-items: center;
  justify-items: center;
}

.cal-reward-img-wrap {
  grid-row: 2;
  width: 116px;
  min-height: 70px;
  height: 70px;
  margin: 0;
  overflow: visible;
  background: radial-gradient(circle, rgba(213, 161, 31, 0.09), transparent 68%);
}

.cal-reward.promo .cal-reward-img-wrap,
.cal-reward.case .cal-reward-img-wrap,
.cal-reward.gun .cal-reward-img-wrap {
  background: radial-gradient(circle, rgba(213, 161, 31, 0.09), transparent 68%);
}

.cal-reward .reward-king-img,
.cal-reward.case .reward-case-img,
.cal-reward.gun .reward-gun-img {
  width: 68px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.4));
}

.cal-reward.case .reward-case-img {
  width: 88px;
  height: 68px;
}

.cal-reward.gun .reward-gun-img {
  width: 106px;
  height: 66px;
}

.cal-reward .reward-name,
.cal-reward.case .reward-name,
.cal-reward.gun .reward-name {
  grid-row: 3;
  margin: 0;
  color: #687894;
  font-size: 8px;
  line-height: 12px;
  font-weight: 500;
  text-align: center;
}

.cal-reward .reward-code,
.cal-reward .reward-subname,
.cal-reward.gun .reward-subname {
  grid-row: 4;
  margin: 0;
  color: #ffffff;
  font-size: 9px;
  line-height: 12px;
  font-weight: 600;
  text-align: center;
}

.cal-reward .reward-code {
  color: #d9a52a;
}

.reward-price {
  position: absolute;
  top: 5px;
  right: 7px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #6bd47a;
  font-size: 8px;
  line-height: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.reward-price img {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.reward-btn,
.cal-reward.case .reward-btn,
.cal-reward.gun .reward-btn {
  position: absolute;
  right: 8px;
  bottom: 5px;
  left: 8px;
  z-index: 7;
  width: auto;
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffd560 0%, #d59104 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 9px;
  line-height: 25px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cal-reward.claimable:hover .reward-btn,
.cal-reward.claimable:focus-within .reward-btn {
  opacity: 1;
  transform: translateY(0);
}

.calendar-hint {
  max-width: 680px;
  margin: -4px auto 14px;
  color: #687894;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.calendar-message {
  min-height: 16px;
  margin: 0 auto 8px;
  color: #d9a52a;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.calendar-claim-form {
  display: none;
}

.balance-reward .reward-king-img {
  opacity: 0.9;
}

.balance-reward.locked .cal-reward-img-wrap,
.balance-reward.locked .reward-name,
.balance-reward.locked .reward-subname,
.balance-reward.locked .reward-price {
  opacity: 0.34;
}

.balance-reward.queued .reward-king-img {
  opacity: 0.58;
}

.reward-lock {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 36, 0.28);
}

.reward-lock img {
  width: 32px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(213, 161, 31, 0.28));
}

.reward-state {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  z-index: 6;
  color: #687894;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
}

.claim-overlay-static {
  animation: none;
}

.claim-overlay-static .check-mark {
  stroke-dashoffset: 0;
  animation: none;
}

.reward-btn:disabled {
  cursor: wait;
  filter: saturate(0.65);
}

@media (hover: none) {
  .cal-reward.claimable .reward-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 22px;
  height: 22px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #253047;
  border-radius: 4px;
  background: #121824;
  color: #687894;
  font-size: 16px;
  line-height: 18px;
  cursor: pointer;
}

.calendar-nav-prev {
  left: -30px;
}

.calendar-nav-next {
  right: -30px;
}

@media (max-width: 1100px) {
  .calendar-nav-prev {
    left: 4px;
  }

  .calendar-nav-next {
    right: 4px;
  }
}

@media (max-width: 900px) {
  .calendar-section {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .calendar-wrapper {
    width: 100%;
    min-width: 0;
  }

  .calendar-grid {
    grid-template-columns: repeat(31, 112px);
  }

  .calendar-card,
  .cal-day,
  .cal-reward {
    width: 112px;
  }
}
