﻿.home-member-privileges {
  padding: 40px 0;
}
@media (max-width: 768px) {
  .home-member-privileges {
    padding: 16px;
  }
}
.home-member-privileges .ns-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .home-member-privileges .ns-container {
    padding: 0 16px;
  }
}
.home-member-privileges .section-title {
  font-family: "DB Ozone X Bd", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #212529;
  text-align: center;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .home-member-privileges .section-title {
    font-size: 24px;
  }
}
@media (max-width: 576px) {
  .home-member-privileges .section-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
}

.tier-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
}
@media (max-width: 768px) {
  .tier-tabs {
    justify-content: center;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .tier-tabs .tier-tab .tier-inactive-box .tier-name {
    font-size: 14px;
    margin-top: 3.8px;
  }
}

.tier-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  gap: 12px;
}
@media (max-width: 768px) {
  .tier-tab {
    gap: 8px;
  }
}
.tier-tab:hover {
  transform: scale(1.03);
}
.tier-tab .tier-name {
  font-family: "DB Ozone X", sans-serif;
  font-size: 20px;
  color: #A3A3A3;
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s ease;
  line-height: 1;
  height: 50px;
  min-height: 50px;
}
@media (max-width: 768px) {
  .tier-tab .tier-name {
    font-size: 14px;
    height: 28px;
    min-height: 28px;
  }
}
.tier-tab .tier-name.active {
  font-family: "DB Ozone X Med", sans-serif;
}
.tier-tab .tier-inactive-box {
  display: flex;
  width: 112px;
  height: 212px;
  padding: 53px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.06), 0 2px 0 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  flex-flow: column;
}
.tier-tab .tier-inactive-box .tier-name {
  margin-top: 7px;
  font-family: "DB Ozone X", sans-serif;
  font-size: 25px;
  text-align: center;
  font-weight: 700;
  transition: color 0.2s ease;
}
@media (max-width: 768px) {
  .tier-tab .tier-inactive-box .tier-name {
    font-size: 14px;
    margin-top: 3.8px;
  }
}
@media (max-width: 768px) {
  .tier-tab .tier-inactive-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    width: 60.226px;
    height: 114px;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFF 0%, #F8F8F8 100%);
    box-shadow: 0 2.17px 4.557px 0 rgba(0, 0, 0, 0.09), 0 1.627px 0 0 rgba(255, 255, 255, 0.55) inset;
    backdrop-filter: blur(3.2547168732px);
  }
}
.tier-tab .tier-inactive-box .tier-tag-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .tier-tab .tier-inactive-box .tier-tag-icon {
    width: 32px;
    height: 32px;
  }
}
.tier-tab .tier-inactive-box.greenmile .tier-name {
  color: #6DB000;
}
.tier-tab .tier-inactive-box.greenmile-pro .tier-name {
  color: #6B7A7A;
}
.tier-tab .tier-inactive-box.greenmile-premium .tier-name {
  color: #8B5FBB;
}
.tier-tab .tier-inactive-box.greenmile-gold .tier-name {
  color: #D4A50D;
}
.tier-tab .tier-active-box {
  display: flex;
  width: 212px;
  height: 212px;
  padding: 24px;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(239, 239, 239, 0.38) -3.3%, rgba(255, 255, 255, 0.46) 12.42%, rgba(255, 255, 255, 0.5) 45.74%);
  box-shadow: 0 5px 20.3px 0 rgba(0, 0, 0, 0.08), 0 3px 0 0 rgba(255, 255, 255, 0.55) inset;
  backdrop-filter: blur(6px);
}
@media (max-width: 768px) {
  .tier-tab .tier-active-box {
    width: 72px;
    height: 72px;
    padding: 12px;
    border-radius: 16px;
  }
}
.tier-tab .tier-active-box.greenmile {
  border: 2px solid #9FDC06;
}
.tier-tab .tier-active-box.greenmile-pro {
  border: 2px solid #CBD6D6;
}
.tier-tab .tier-active-box.greenmile-premium {
  border: 2px solid #C29EE2;
}
.tier-tab .tier-active-box.greenmile-gold {
  border: 2px solid #F3C21C;
}
.tier-tab .tier-active-box .tier-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tier-tab.active .tier-name.active {
  color: #212529;
}
@media (max-width: 768px) {
  .tier-tab.active .tier-active-box {
    width: 114px;
    height: 114px;
  }
}
.tier-tab:nth-child(1).active .tier-name {
  color: #6DB000;
}
.tier-tab:nth-child(2).active .tier-name {
  color: #6B7A7A;
}
.tier-tab:nth-child(3).active .tier-name {
  color: #8B5FBB;
}
.tier-tab:nth-child(4).active .tier-name {
  color: #D4A50D;
}

.home-page {
  background-image: url("/Images/bangchak2026/bg.webp");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

.campaign-list-wrapper {
  width: 100%;
  padding: 40px 100px 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFF 8%);
}
@media (max-width: 1200px) {
  .campaign-list-wrapper {
    padding: 40px 60px 80px;
  }
}
@media (max-width: 992px) {
  .campaign-list-wrapper {
    padding: 32px 40px 60px;
  }
}
@media (max-width: 768px) {
  .campaign-list-wrapper {
    padding: 16px 16px 40px;
  }
}
.campaign-list-wrapper .inner-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  overflow: visible;
}

.campaign-list-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .campaign-list-header {
    margin-bottom: 8px;
  }
}
.campaign-list-header .list-title {
  font-family: "DB Ozone X Bd", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #444444;
  line-height: 40px;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .campaign-list-header .list-title {
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 0;
  }
}
.campaign-list-header .list-count {
  font-family: "DB Ozone X", sans-serif;
  font-size: 24px;
  color: #989898;
  line-height: 28px;
}
@media (max-width: 768px) {
  .campaign-list-header .list-count {
    font-size: 18px;
  }
}

.category-filter-wrapper {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}
.category-filter-wrapper::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -8px;
  width: 95px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 25%, rgb(255, 255, 255) 100%);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .category-filter-wrapper {
    margin-bottom: 24px;
  }
  .category-filter-wrapper::after {
    width: 40px;
  }
}

.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 60px 8px 0;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-filter::-webkit-scrollbar {
  display: none;
}
.category-filter:active {
  cursor: grabbing;
}
@media (max-width: 768px) {
  .category-filter {
    padding: 0px 40px 0px 0;
  }
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: #FFFFFF;
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  border: 1px solid #DCDCDC;
  flex-shrink: 0;
  height: 64px;
}
@media (max-width: 768px) {
  .category-chip {
    padding: var(--md, 4px) var(--xl, 12px) var(--md, 4px) var(--lg, 8px);
    align-items: center;
    gap: var(--Spacing-Spacing-8, 8px);
    border-radius: var(--xl, 12px);
    height: 40px;
  }
}
.category-chip:hover {
  border-color: #00A94F;
}
.category-chip.active {
  background: linear-gradient(90deg, #49A347 0%, #84BF41 100%);
  border-color: transparent;
}
.category-chip.active span {
  color: #F9F9F9;
}
.category-chip .cat-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .category-chip .cat-icon {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 576px) {
  .category-chip .cat-icon {
    width: 32px;
    height: 32px;
  }
}
.category-chip span {
  font-family: "DB Ozone X Med", sans-serif;
  font-size: 24px;
  color: #525252;
  line-height: 28px;
}
@media (max-width: 768px) {
  .category-chip span {
    font-size: 20px;
    line-height: 22px;
    font-weight: 500;
  }
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .sort-options {
    flex-wrap: nowrap;
    margin-bottom: 24px;
  }
}
.sort-options .sort-label {
  font-family: "DB Ozone X Med", sans-serif;
  font-size: 24px;
  color: #474747;
  line-height: 28px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sort-options .sort-label {
    font-size: 20px;
    line-height: 22px;
    font-weight: 500;
  }
}
.sort-options .sort-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .sort-options .sort-buttons {
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sort-options .sort-buttons::-webkit-scrollbar {
    display: none;
  }
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  background: #F2F2F2;
  border: 1px solid transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: all 150ms ease;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sort-btn {
    padding: 6px 12px 6px 8px;
    gap: 6px;
  }
}
.sort-btn:hover {
  background: rgb(229.25, 229.25, 229.25);
  outline: none;
}
.sort-btn.active {
  background: #D9EBB0;
  border-color: #D9EBB0;
  outline: none;
}
.sort-btn > img {
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  border-radius: 16px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .sort-btn > img {
    width: 24px;
    height: 24px;
    border-radius: 12px;
  }
}
.sort-btn span {
  font-family: "DB Ozone X Med", sans-serif;
  font-size: 24px;
  color: #474747;
  line-height: 28px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sort-btn span {
    font-size: 18px;
    line-height: 22px;
  }
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1200px) {
  .campaign-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .campaign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 24px;
  }
}

.campaign-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.campaign-card:hover {
  transform: translateY(-4px);
}
.campaign-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #EFEFEF;
  background: #FFFFFF;
}
.campaign-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campaign-card .card-image .card-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
}
.campaign-card .card-image .card-stamp.stamp-expired {
  margin-left: 2px;
  margin-top: 2px;
}
.campaign-card .card-image .card-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .campaign-card .card-image .card-stamp {
    width: 120px;
    height: 120px;
  }
}
.campaign-card .card-image .card-stamp-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(236, 237, 237, 0.7);
}
.campaign-card .card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fff;
}
.campaign-card .card-info .card-name {
  font-family: "DB Ozone X Bd", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #3D3D3D;
  line-height: 28px;
  letter-spacing: -0.5px;
  margin: 0;
  height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .campaign-card .card-info .card-name {
    font-size: 20px;
    line-height: 24px;
    height: 48px;
  }
}
.campaign-card .card-info .card-points {
  display: flex;
  align-items: center;
  gap: 8px;
}
.campaign-card .card-info .card-points .point-icon {
  width: 24px;
  height: 24px;
}
@media (max-width: 768px) {
  .campaign-card .card-info .card-points .point-icon {
    width: 20px;
    height: 20px;
  }
}
.campaign-card .card-info .card-points .use-text {
  font-family: "DB Ozone X", sans-serif;
  font-size: 20px;
  color: #989898;
}
@media (max-width: 768px) {
  .campaign-card .card-info .card-points .use-text {
    font-size: 16px;
  }
}
.campaign-card .card-info .card-points .points-value {
  font-family: "DB Ozone X Bd", sans-serif;
  font-size: 24px;
  color: #FC9804;
}
@media (max-width: 768px) {
  .campaign-card .card-info .card-points .points-value {
    font-size: 20px;
  }
}
.campaign-card .card-info .card-points .points-label {
  font-family: "DB Ozone X", sans-serif;
  font-size: 20px;
  color: #989898;
}
@media (max-width: 768px) {
  .campaign-card .card-info .card-points .points-label {
    font-size: 16px;
  }
}

.campaign-loading,
.campaign-no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
}
.campaign-loading .loading-spinner,
.campaign-no-data .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E9ECEF;
  border-top-color: #00A94F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.campaign-loading span, .campaign-loading p,
.campaign-no-data span,
.campaign-no-data p {
  font-family: "DB Ozone X", sans-serif;
  font-size: 22px;
  color: #ADB5BD;
}

.scroll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.scroll-loading .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E0E0E0;
  border-top-color: #00A94F;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
