/* ========================================= */
/* SHANAYA — LOYALTY PAGE                    */
/* ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #EAE6DF;
  color: #2E2A27;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================= */
/* AMBIENT BACKGROUND                        */
/* ========================================= */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: saturate(0.5) blur(3px);
}

.ambient-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F1EC 0%, rgba(244, 241, 236, 0.88) 100%);
}

/* ========================================= */
/* PAGE LAYOUT                               */
/* ========================================= */

.loyalty-layout {
  position: relative;
  z-index: 1;
  width: min(1100px, 95%);
  margin: 0 auto;
  padding: 120px 0 80px;
}

/* ========================================= */
/* MAIN CONTAINER WITH SIDEBAR               */
/* ========================================= */

.loyalty-main {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
}

/* ========================================= */
/* SIDEBAR NAVIGATION                        */
/* ========================================= */

.loyalty-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.loyalty-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.loyalty-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(46, 42, 39, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.loyalty-nav-item:hover {
  background: rgba(196, 171, 116, 0.08);
  border-color: rgba(196, 171, 116, 0.2);
}

.loyalty-nav-item.active {
  background: rgba(196, 171, 116, 0.15);
  border-color: rgba(196, 171, 116, 0.3);
  color: #C4AB74;
}

.loyalty-nav-item.logout {
  color: rgba(200, 100, 100, 0.75);
  margin-top: 8px;
  border-top: 1px solid rgba(196, 171, 116, 0.1);
  padding-top: 12px;
}

.loyalty-nav-item.logout:hover {
  background: rgba(200, 100, 100, 0.08);
  border-color: rgba(200, 100, 100, 0.2);
  color: rgba(200, 100, 100, 1);
}

.nav-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
}

/* ========================================= */
/* LOYALTY CONTENT                           */
/* ========================================= */

.loyalty-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========================================= */
/* PAGE HEADER                               */
/* ========================================= */

.loyalty-header {
  margin-bottom: 30px;
  text-align: center;
}

.loyalty-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loyalty-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #C4AB74;
}

.loyalty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: #1a1410;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.loyalty-subtitle {
  font-size: 15px;
  color: rgba(46, 42, 39, 0.72);
  line-height: 1.6;
  /* max-width: 600px; */
  margin: 0 auto;
}

/* ========================================= */
/* LOYALTY STATUS CARD                       */
/* ========================================= */

.loyalty-status {
  margin-bottom: 20px;
}

.status-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ========================================= */
/* TIER SECTION                              */
/* ========================================= */

.status-tier-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(196, 171, 116, 0.1);
}

.status-tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4AB74;
}

.status-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(196, 171, 116, 0.15);
  color: #C4AB74;
}

.status-tier-badge.gold-tier-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(180, 140, 40, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 16px rgba(196, 171, 116, 0.15);
}

.badge-icon {
  font-size: 16px;
}

/* ========================================= */
/* PROGRESS SECTION                          */
/* ========================================= */

.status-progress-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a1410;
}

.progress-percent {
  font-size: 16px;
  font-weight: 700;
  color: #C4AB74;
}

.progress-bar-container {
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(196, 171, 116, 0.1);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C4AB74 0%, #D4AF37 50%, #C4AB74 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: progressFlow 2.5s ease-in-out forwards, progressShimmer 2s ease-in-out 0.3s forwards;
  position: relative;
}

.progress-shine {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  animation: shine 2.5s ease-in-out 0.3s;
  border-radius: 999px;
}

@keyframes progressFlow {
  0% {
    width: 0%;
  }
  100% {
    width: 49%;
  }
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(600%);
  }
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(46, 42, 39, 0.54);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ========================================= */
/* STATS GRID                                */
/* ========================================= */

.status-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(196, 171, 116, 0.06);
  border: 1px solid rgba(196, 171, 116, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(196, 171, 116, 0.12);
  border-color: rgba(196, 171, 116, 0.2);
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 28px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.54);
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #C4AB74;
}

/* ========================================= */
/* LOYALTY SECTIONS                          */
/* ========================================= */

.loyalty-section {
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: #1a1410;
  margin-bottom: 12px;
}

.section-description {
  font-size: 14px;
  color: rgba(46, 42, 39, 0.72);
  margin-bottom: 40px;
}

/* ========================================= */
/* MEMBERSHIP TIERS GRID                     */
/* ========================================= */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.tier-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: all 0.4s ease;
}

.tier-card:hover {
  border-color: rgba(196, 171, 116, 0.3);
  box-shadow: 0 12px 40px rgba(196, 171, 116, 0.15);
}

.tier-card.featured {
  border-color: rgba(196, 171, 116, 0.3);
  box-shadow: 0 12px 40px rgba(196, 171, 116, 0.15);
  transform: scale(1.04);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #C4AB74 0%, #D4AF37 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(196, 171, 116, 0.3);
}

.tier-header {
  margin-bottom: 20px;
}

.tier-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #C4AB74;
}

.tier-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1a1410;
  margin-top: 4px;
}

.tier-description {
  font-size: 13px;
  color: rgba(46, 42, 39, 0.72);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tier-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: rgba(46, 42, 39, 0.8);
  line-height: 1.5;
}

.benefit-icon {
  color: #C4AB74;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-btn {
  width: 100%;
  padding: 12px 24px;
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #C4AB74;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.tier-btn:hover {
  background: rgba(196, 171, 116, 0.1);
  border-color: rgba(196, 171, 116, 0.3);
}

.tier-card.featured .tier-btn {
  background: linear-gradient(135deg, #C4AB74 0%, #A08B5C 100%);
  color: white;
  border-color: transparent;
}

.tier-card.featured .tier-btn:hover {
  box-shadow: 0 4px 12px rgba(196, 171, 116, 0.3);
}

/* ========================================= */
/* HOW IT WORKS SECTION                      */
/* ========================================= */

.how-it-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: #C4AB74;
  opacity: 0.6;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1410;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 13px;
  color: rgba(46, 42, 39, 0.72);
  line-height: 1.6;
}

/* ========================================= */
/* REWARDS CATALOG                           */
/* ========================================= */

/* ========================================= */
/* REWARDS CATALOG HEADER & BUTTON           */
/* ========================================= */

.rewards-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.redeem-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #c4ab74;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.redeem-all-btn:hover {
  background: #b39c65;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 171, 116, 0.25);
}

.redeem-all-btn:active {
  transform: translateY(0);
}

.redeem-all-btn svg {
  transition: transform 0.3s ease;
}

.redeem-all-btn:hover svg {
  transform: translateX(2px);
}

.rewards-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.reward-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reward-item:hover {
  border-color: rgba(196, 171, 116, 0.3);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(196, 171, 116, 0.12);
}

.reward-points {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 70px;
  background: rgba(196, 171, 116, 0.15);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #C4AB74;
  flex-shrink: 0;
}

.reward-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1410;
  margin-bottom: 6px;
}

.reward-info p {
  font-size: 12px;
  color: rgba(46, 42, 39, 0.66);
  line-height: 1.5;
}

/* ========================================= */
/* TOAST NOTIFICATION                        */
/* ========================================= */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 10001;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 900px) {
  .loyalty-layout {
    width: 96%;
  }

  .loyalty-main {
    grid-template-columns: 250px 1fr;
    gap: 24px;
  }

  .loyalty-title {
    font-size: 36px;
  }

  .status-card {
    padding: 28px;
  }

  .status-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .tier-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .loyalty-layout {
    padding: 100px 0 80px;
  }

  .loyalty-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .loyalty-sidebar {
    position: relative;
    top: 0;
  }

  .loyalty-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .loyalty-nav-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    gap: 8px;
  }

  .nav-label {
    font-size: 11px;
  }

  .loyalty-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .rewards-catalog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .redeem-all-btn {
    width: 100%;
    justify-content: center;
  }

  .status-card {
    padding: 24px;
    gap: 24px;
  }

  .status-tier-section {
    padding-bottom: 16px;
  }

  .status-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
  }

  .stat-icon {
    font-size: 24px;
    flex-shrink: 0;
  }

  .progress-bar {
    height: 6px;
  }

  .tier-card {
    padding: 24px;
  }

  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .rewards-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .loyalty-layout {
    width: 96%;
  }

  .loyalty-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .loyalty-nav-item {
    padding: 10px 6px;
    font-size: 10px;
    gap: 4px;
  }

  .nav-icon {
    font-size: 14px;
  }

  .loyalty-header {
    margin-bottom: 40px;
  }

  .loyalty-title {
    font-size: 26px;
  }

  .loyalty-eyebrow {
    font-size: 9px;
  }

  .status-card {
    padding: 16px;
    gap: 16px;
  }

  .status-tier-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .status-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    justify-content: space-between;
    padding: 14px;
  }

  .stat-value {
    font-size: 20px;
  }

  .progress-label {
    font-size: 11px;
  }

  .section-title {
    font-size: 24px;
  }

  .tier-card {
    padding: 18px;
  }

  .tier-name {
    font-size: 22px;
  }

  .tier-description,
  .benefit {
    font-size: 12px;
  }

  .step-number {
    font-size: 36px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .reward-item {
    flex-direction: column;
  }

  .reward-points {
    align-self: flex-start;
  }
}
