/* Theme-E Activity & Promotions Styling (Matching theme-e.anotechsolutions.shop) */

/* Keyframe animations */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-card {
  opacity: 0;
  animation: slideInFromLeft 0.4s ease-out forwards;
}

/* Main Promotions Page Container */
#theme-e-activity-container,
#theme-e-reward-container,
#theme-e-invitation-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background: radial-gradient(circle at top, rgba(0, 102, 255, 0.18), transparent 35%),
              linear-gradient(180deg, #000B33 0%, #00071F 100%);
  color: #ffffff;
  padding-bottom: 75px;
  overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 50;
}

/* Header */
.theme-e-act-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, #002B9A 0%, #001A66 45%, #000B33 100%);
  border-bottom: 1px solid #F7C948;
  box-shadow: 0 0 14px rgba(255, 196, 0, 0.2), 0 0 22px rgba(0, 102, 255, 0.2);
  flex-shrink: 0;
}

.theme-e-act-back {
  font-size: 20px;
  font-weight: 700;
  color: #FFD54A;
  cursor: pointer;
  padding: 6px 12px 6px 0;
  user-select: none;
  display: flex;
  align-items: center;
}

.theme-e-act-title {
  flex-grow: 1;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #FFF2A6 0%, #FFD54A 45%, #FFB300 75%, #C77700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 200, 0, 0.35);
}

.theme-e-act-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f7d067;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.theme-e-act-header-right svg {
  width: 17px;
  height: 17px;
  fill: #f7d067;
}

/* Promotions List */
.theme-e-promo-list {
  padding: 14px 14px 20px;
}

.theme-e-promo-card {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #002B9A 0%, #001A66 45%, #000B33 100%);
  border: 1.5px solid #F7C948;
  box-shadow: 0 0 14px rgba(255, 196, 0, 0.18), 0 0 25px rgba(0, 102, 255, 0.18), inset 0 0 8px rgba(255,255,255,0.04);
  transition: all 0.25s ease;
  user-select: none;
}

.theme-e-promo-card:active {
  transform: scale(0.985);
  box-shadow: 0 0 22px rgba(255, 213, 74, 0.35);
}

.theme-e-promo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.1) brightness(1.02);
}

.theme-e-no-more {
  text-align: center;
  color: #8da4d0;
  font-size: 13px;
  padding: 14px 0 24px;
  font-weight: 500;
}

/* ========================================================
   ACTIVITY REWARD (PHOTO 2)
   ======================================================== */
.theme-e-reward-hero {
  position: relative;
  background: #05184d;
  overflow: hidden;
  border-bottom: 1px solid #ffd66e;
}

.theme-e-reward-hero-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.theme-e-reward-hero-text {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}

.theme-e-reward-hero-text h3 {
  margin: 0 0 4px;
  color: #f7d067;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.theme-e-reward-hero-text p {
  margin: 0;
  font-size: 10.5px;
  color: #e3ecff;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.theme-e-reward-hero-subbar {
  padding: 10px 14px;
  background: #0c2c7a;
  border-top: 1px solid #ffd66e;
  color: #f7d067;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  text-shadow: 0 1px 0 rgba(64,35,0,0.8);
}

/* Tabs */
.theme-e-task-tabs {
  display: flex;
  background: #05184d;
  border: 1px solid #ffd66e;
  border-radius: 12px;
  margin: 12px 14px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(255,210,96,0.3);
}

.theme-e-task-tab {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 600;
  color: #d6e5ff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.theme-e-task-tab.active {
  color: #f7d067;
  background: linear-gradient(180deg, #2a7dff 0%, #1456d1 46%, #0a2f8e 100%);
  border-bottom: 2px solid #f1cc69;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

/* Task Cards */
.theme-e-task-list {
  padding: 0 14px;
}

.theme-e-task-card {
  position: relative;
  background: radial-gradient(circle at 50% 6%, rgba(110,176,255,0.62) 0%, rgba(22,66,155,0.96) 40%, rgba(7,20,61,1) 100%);
  border-radius: 12px;
  border: 1px solid #ffd66e;
  box-shadow: 0 0 14px rgba(242, 191, 67, 0.24), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
  min-height: 130px;
  box-sizing: border-box;
}

.theme-e-task-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 28px;
  background: linear-gradient(180deg, #2a7dff 0%, #1456d1 46%, #0a2f8e 100%);
  border: 1px solid #ffe08a;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7d067;
  font-weight: 700;
  font-size: 12.5px;
  text-shadow: 0 1px 0 rgba(64,35,0,0.8);
  z-index: 2;
}

.theme-e-task-status {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #f7d067;
  font-size: 12px;
  font-weight: 600;
}

.theme-e-task-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.theme-e-task-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #edf3ff;
}

.theme-e-task-title img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.theme-e-task-progress-num {
  font-size: 13px;
  font-weight: 700;
  color: #ff4d4f;
}

.theme-e-progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #0f347f;
  border: 1px solid #d3a42d;
  overflow: hidden;
  margin-bottom: 10px;
}

.theme-e-progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffe38e 0%, #d3a42d 100%);
  transition: width 0.3s ease;
}

.theme-e-task-award-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #edf3ff;
}

.theme-e-task-award-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f7d067;
  font-size: 16px;
  font-weight: 700;
}

.theme-e-task-award-amount img {
  width: 18px;
  height: 18px;
}

.theme-e-task-btn {
  display: block;
  width: 100%;
  border: 1px solid #d3a42d;
  color: #f7d067;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, #2a7dff 0%, #1456d1 44%, #0a2f8e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 18px rgba(255,217,123,0.4);
  transition: all 0.2s ease;
}

.theme-e-task-btn:active {
  transform: scale(0.985);
}

.theme-e-task-btn.claimable {
  background: linear-gradient(180deg, #ffe066 0%, #f5a623 50%, #d48206 100%) !important;
  color: #1a0e00 !important;
  border: 1px solid #fff2a8 !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6) !important;
  cursor: pointer !important;
  animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
}

.theme-e-task-btn.claimed {
  background: #1c2742 !important;
  border: 1px solid #33446b !important;
  color: #6d80a6 !important;
  box-shadow: none !important;
  cursor: default !important;
}

/* ========================================================
   INVITATION BONUS (PHOTO 3)
   ======================================================== */
.theme-e-inv-hero {
  position: relative;
  height: 155px;
  padding: 16px;
  background: url('/assets/activity/invitation.png'), linear-gradient(120deg, #0f47ba 0%, #0a2d82 55%, #05184d 100%);
  background-size: cover;
  background-position: right center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-e-inv-hero h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.theme-e-inv-hero p {
  margin: 0;
  font-size: 11px;
  color: #d6e5ff;
  line-height: 1.45;
  max-width: 60%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.theme-e-inv-hero .date {
  font-size: 10px;
  color: #a4bfe8;
  margin-top: 6px;
}

/* Quick action cards */
.theme-e-inv-actions {
  display: flex;
  gap: 12px;
  margin: 14px;
}

.theme-e-inv-action-card {
  flex: 1;
  background: #05184d;
  border: 1px solid #ffd66e;
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 14px rgba(255,210,96,0.16);
  user-select: none;
}

.theme-e-inv-action-card:active {
  transform: scale(0.98);
}

.theme-e-inv-action-card img {
  width: 36px;
  height: 36px;
}

.theme-e-inv-action-card span {
  font-size: 12px;
  font-weight: 600;
  color: #f7d067;
}

/* Bonus Tiers */
.theme-e-bonus-card {
  background: #05184d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 14px rgba(255,210,96,0.16);
  border-radius: 12px;
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 110, 0.4);
}

.theme-e-bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #1242a6 0%, #0b2667 52%, #071b50 100%);
  border-bottom: 1px solid rgba(255,208,96,0.4);
}

.theme-e-bonus-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #2a7dff 0%, #1456d1 46%, #0a2f8e 100%);
  border: 1px solid #ffe08a;
  padding: 6px 12px;
  border-radius: 0 0 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.theme-e-bonus-pill-num {
  width: 18px;
  height: 18px;
  background: #f7d067;
  color: #0a245f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.theme-e-bonus-amount {
  font-size: 16px;
  font-weight: 800;
  color: #f7d067;
  padding-right: 14px;
}

.theme-e-bonus-details {
  padding: 12px 14px 0;
}

.theme-e-bonus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b2a70;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #d6e5ff;
}

.theme-e-bonus-row .val {
  font-weight: 700;
}

.theme-e-bonus-row .val.red {
  color: #FB5B5B;
}

/* Dashed ticket divider */
.theme-e-dashed-divider {
  position: relative;
  height: 12px;
  margin: 6px 0;
}

.theme-e-dashed-divider hr {
  margin: 0;
  border: none;
  border-top: 1px dashed rgba(255, 208, 96, 0.4);
  position: absolute;
  top: 5px;
  left: 12px;
  right: 12px;
}

.theme-e-dashed-divider::before,
.theme-e-dashed-divider::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00071F;
  position: absolute;
  top: 0;
}

.theme-e-dashed-divider::before { left: -6px; }
.theme-e-dashed-divider::after { right: -6px; }

/* Progress Columns */
.theme-e-bonus-progress-row {
  display: flex;
  align-items: center;
  padding: 8px 14px 12px;
}

.theme-e-bonus-col {
  flex: 1;
  text-align: center;
}

.theme-e-bonus-col .stat {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.theme-e-bonus-col .stat.orange { color: #FEAA57; }
.theme-e-bonus-col .stat.red { color: #FB5B5B; }

.theme-e-bonus-col .lbl {
  font-size: 11px;
  color: #8da4d0;
}

.theme-e-bonus-vsep {
  width: 1px;
  height: 36px;
  background: rgba(255,208,96,0.35);
  margin: 0 10px;
}

.theme-e-bonus-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 0 auto 14px;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.theme-e-bonus-btn.unfinished {
  background: transparent;
  border: 1px solid #6f7ca0;
  color: #9ca7c5;
  cursor: default;
}

.theme-e-bonus-btn.claimable {
  background: linear-gradient(180deg, #2a7dff 0%, #1456d1 44%, #0a2f8e 100%);
  border: 1px solid #ffe08a;
  color: #f7d067;
  box-shadow: 0 0 18px rgba(255,217,123,0.4);
  cursor: pointer;
}

.theme-e-bonus-btn.claimable:active {
  transform: scale(0.97);
}

.theme-e-bonus-btn.claimed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #7b8ca5;
  cursor: default;
}

.theme-e-bonus-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

/* Modal Record List */
.theme-e-inv-rec-summary {
  display: flex;
  justify-content: space-between;
  background: rgba(255,214,110,0.1);
  border: 1px solid rgba(255,214,110,0.3);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #ffe08a;
}

.theme-e-inv-rec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b2a70;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.theme-e-inv-rec-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.theme-e-inv-rec-user {
  font-weight: 700;
  color: #ffffff;
}

.theme-e-inv-rec-date {
  font-size: 10.5px;
  color: #8da4d0;
}

.theme-e-inv-rec-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.theme-e-inv-rec-dep {
  font-weight: 700;
  color: #ffd66e;
}

.theme-e-inv-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.theme-e-inv-pill.pass {
  background: rgba(76, 217, 100, 0.18);
  color: #4cd964;
  border: 1px solid rgba(76, 217, 100, 0.4);
}

.theme-e-inv-pill.partial {
  background: rgba(254, 170, 87, 0.18);
  color: #feaa57;
  border: 1px solid rgba(254, 170, 87, 0.4);
}

.theme-e-inv-pill.none {
  background: rgba(141, 164, 208, 0.12);
  color: #8da4d0;
  border: 1px solid rgba(141, 164, 208, 0.25);
}
