/* ---- WRAPPER ---- */
.pricing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

/* ---- TABS ---- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #f5f5f5;
  border: none;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.tab-btn.active {
  background: linear-gradient(90deg, #ff7eb3, #ff758c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,118,156,0.35);
  transform: translateY(-2px);
}
.tab-btn:hover:not(.active) {
  background: #eee;
}

/* ---- TAB CONTENT ---- */
.tab-content { display: none; }
.tab-content.active { 
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- GRID CONTAINER ---- */
.pricing-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 1.8rem;
  margin-top: 1.2rem;
  width: 100%;
  justify-items: center;
}

/* ---- CARD ---- */
.pricing-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* ---- HEADER ---- */
.card-header {
  border-radius: 12px 12px 0 0;
  text-align: center;
}
.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
.card-subtitle {
  font-size: 1rem;
  color: #555;
  margin: 0.9rem 0 1.2rem;
  text-align: center;
  line-height: 1.5;
}

/* ---- BUTTON ---- */
.custom-btn {
  display: inline-block;
  width: auto;
  margin: 0.8rem auto 1.2rem;
  background: linear-gradient(90deg, #ff7eb3, #ff758c);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.custom-btn:hover:not([disabled]) {
  box-shadow: 0 6px 14px rgba(255, 118, 156, 0.35);
  transform: scale(1.05);
}
.custom-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* ---- DIVIDER ---- */
.divider {
  margin: 0.8rem auto 1.2rem;
  width: 85%;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* ---- HEADINGS ---- */
.pricing-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
  color: #333;
  border-bottom: 2px solid #f2f2f2;
  padding-bottom: 0.3rem;
}

/* ---- LIST ---- */
.card-list {
  list-style: none;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}
.card-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}
.card-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #ff758c;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .pricing-container {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
}


/*Tier Box*/
.sabaiskin-tier-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 25px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  position: relative;
}
.sabaiskin-tier-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
/* Main tier header row */
.tier-header {
  display: flex;
  align-items: center; /* badge + title wrapper aligned horizontally */
  gap: 14px;
  margin-bottom: 15px;
  border-left: 5px solid #b366ff;
  padding-left: 15px;
}

/* Wrap h3 + cashback vertically */
.tier-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px; /* space between h3 and cashback */
}

/* Tier title styling */
.tier-title-wrapper .tier-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Cashback text styling */
.tier-title-wrapper .tier-cashback {
    font-size: 14px;
    font-weight: 600;
    color: #6b21a8;
    margin-top: 2px;
}

.tier-title-wrapper .tier-cashback strong,
.tier-title-wrapper .tier-cashback .cashback-decimal {
    color: #f59e0b;
    font-family: monospace; /* aligned digits */
}
/* Tier Title */
.tier-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tier-subtitle {
  font-size: 1.1em;
  color: #8a4fff;
  font-weight: 500;
}
.tier-spent {
  font-weight: 600;
  color: #3d1255;
  margin-bottom: 20px;
}
/* Base Tier Badge */
.tier-badge {
  padding: 10px 18px;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  min-width: 120px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Discount text */
.tier-badge small {
  font-size: 12px;
  opacity: 0.95;
  margin-top: 2px;
  font-weight: 600;
}

/* Hover effect for badge */
.tier-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Vibrant gradient per tier */
.tier-badge.glow {
  background: linear-gradient(135deg,#ff9a9e,#ff758c);
}
.tier-badge.radiance {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}
.tier-badge.luminance {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.tier-badge.dealer {
  background: linear-gradient(135deg, #232526, #414345);
}

.tier-badge.pro {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* Optional: small pulse animation to grab attention */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.tier-badge.glow {
  animation: pulse 2s infinite;
}

.tier-spent {
  margin: 15px 0;
  font-size: 16px;
  color: #333;
}

.tier-progress {
  background: rgba(245, 230, 255, 0.8);
  border-left: 4px solid #b366ff;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#6a11cb,#2575fc);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.progress-text {
  margin: 0;
  font-size: 0.95em;
  color: #4a0066;
}
/* Headings */
.tier-info h4 {
  font-size: 1.1em;
  margin-top: 20px;
  color: #550099;
  border-left: 4px solid #b366ff;
  padding-left: 10px;
}
/* Feature & Perk lists */
.tier-features, .tier-perks {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.tier-features li{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #361344;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(150, 100, 255, 0.08);
  transition: all 0.2s ease;
}
.tier-features li:hover, .tier-perks li:hover {
  background: rgba(180, 120, 255, 0.1);
  transform: translateX(4px);
}

/* Icons */
.tier-features i, .tier-perks i {
  color: #8b3dff;
  font-size: 1.1em;
}

/* Right image section */
.tier-image {
  position: relative;
  text-align: right;
  flex: 1;
}
.tier-image-wrapper img {
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(80, 20, 140, 0.3);
  transition: transform 0.3s ease;
}
.tier-image-wrapper img:hover {
  transform: scale(1.03);
}
/* === Tier Perks Styling === */
.tier-perks {
  font-size: 15px;
  color: #c084fc; /* luminous violet */
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-perks li {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between icon and text */
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tier-perks li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.tier-perks i {
  color: #ffb700; /* 🌟 gold accent for icons */
  font-size: 1.1rem;
  min-width: 22px; /* keeps icons aligned */
}
/* Floating congrats text */
.tier-congrats-text {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(150, 80, 220, 0.2);
  font-size: 0.95em;
  text-align: center;
  color: #4a0072;
}
.tier-congrats-text a.journey-link {
  color: #7c2ae8;
  text-decoration: none;
  font-weight: 600;
}
.tier-congrats-text a.journey-link:hover {
  text-decoration: underline;
}
/*--------Check Eligibility-------*/
.dealer-popup-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.dealer-popup-box {
  background:#fff; padding:2rem; border-radius:10px;
  max-width:400px; width:90%; text-align:center;
  box-shadow:0 5px 20px rgba(0,0,0,0.2);
  animation: pop 0.3s ease;
  position: relative;
}
.dealer-popup-close {
  position:absolute; top:15px; right:20px;
  font-size:20px; cursor:pointer;
}
@keyframes pop {
  from {transform:scale(0.8);opacity:0;}
  to {transform:scale(1);opacity:1;}
}
.proceed-upgrade {
    background: linear-gradient(90deg,#ff7eb3,#ff758c);
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,126,179,0.4);
    transition: all 0.3s ease;
    margin-top: 10px;
}
.proceed-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,126,179,0.6);
    background: linear-gradient(90deg,#ff758c,#ff7eb3);
}
/* Spinner inside button */
.button-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fff; /* spinner color */
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px; /* space from text */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional: disable pointer during loading */
.custom-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}
/* Dashboard Preloader */
.sabaiskin-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7eb3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Wrapper */
.tier-validity-wrapper {
    display: flex;
    flex-wrap: nowrap;       /* keep all in one row */
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
}
.tier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    background: linear-gradient(135deg,#36d1dc,#5b86e5);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    margin-top: 10px;         /* spacing from content above */
}
.tier-btn.disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none;
}
/* Hover effect */
.tier-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    background: linear-gradient(135deg,#5b86e5,#36d1dc);
}

/* Optional: make sure very long text wraps nicely */
.tier-btn span {
    white-space: normal;
    line-height: 1.2;
}
/* Cards */
.tier-validity {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ✅ needed for ::before to be inside card */
    flex: 1 1 20%;
    max-width: 20%;
    min-width: 180px;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 14px;
    background: #f9f9ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Circle icons */
.tier-icon {
    font-size: 28px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Hover Effects */
.tier-validity:hover .tier-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    animation: bounce 0.6s ease;
}
/* 🎨 Pastel backgrounds for icons */
.pastel-blue .tier-icon {
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
}

.pastel-pink .tier-icon {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.pastel-green .tier-icon {
    background: linear-gradient(135deg, #a8ff78, #78ffd6);
}

.pastel-yellow .tier-icon {
    background: linear-gradient(135deg, #fddb92, #d1fdff);
    color: #444; /* darker icon for better contrast */
}
.pastel-purple .tier-icon {
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
}
/* Glow on hover for each pastel */
.pastel-blue:hover .tier-icon {
    box-shadow: 0 0 15px rgba(102,166,255,0.7);
}

.pastel-pink:hover .tier-icon {
    box-shadow: 0 0 15px rgba(246,109,204,0.6);
}

.pastel-green:hover .tier-icon {
    box-shadow: 0 0 15px rgba(120,255,214,0.6);
}

.pastel-yellow:hover .tier-icon {
    box-shadow: 0 0 15px rgba(255,223,109,0.7);
}

.pastel-purple:hover .tier-icon {
    box-shadow: 0 0 15px rgba(183,148,244,0.7);
}
/* Pastel backgrounds */
.pastel-blue   { background: #e6f0ff; }
.pastel-pink   { background: #ffe6f0; }
.pastel-green  { background: #e6ffe9; }
.pastel-yellow { background: #fff9e6; }
.pastel-purple { background: #f3e6ff; }

/* Bounce animation */
@keyframes bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.2); }
    50%  { transform: scale(0.95); }
    70%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* Hover Effects */
.tier-validity:hover .tier-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    animation: bounce 0.6s ease;
}

/* Progress bar */
.validity-bar {
    background: #eaeaea;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    overflow: hidden;
    margin: 10px 0;
}

.validity-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#36d1dc,#5b86e5);
    transition: width 0.5s ease;
}
/* Default blue gradient */
/* Pink */
.pastel-pink .validity-bar span {
 	display: block;
    height: 100%;
	transition: width 0.5s ease;
    background: linear-gradient(90deg,#ff758c,#ff7eb3);
}

/* Green */
.pastel-green .validity-bar span {
    background: linear-gradient(90deg,#56ab2f,#a8e063);
	display: block;
    height: 100%;
	transition: width 0.5s ease;
}

/* Yellow */
.pastel-yellow .validity-bar span {
    background: linear-gradient(90deg,#f7971e,#ffd200);
	display: block;
    height: 100%;
	transition: width 0.5s ease;
}

/* Purple */
.pastel-purple .validity-bar span {
    background: linear-gradient(90deg,#a18cd1,#fbc2eb);
	display: block;
    height: 100%;
	transition: width 0.5s ease;
}

/* Progress bar container */
.validity-bar {
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
  margin: 0.75rem 0;
}

/* Progress bar fill */
.validity-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#ff9a9e,#fad0c4);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Text */
.validity-text {
    font-size: 0.9rem;
    margin-top: 8px;
    color: #444;
}
/* Success state (reward unlocked) */
.validity-text.success {
    color: #2e7d32; /* green */
    font-weight: 600;
}

/* Pending state (not yet unlocked) */
.validity-text.pending {
    color: #d32f2f; /* red */
    font-weight: 500;
}
/* Pastel card container */
.pastel-card {
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pastel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
/* Unlocked badge */
.tier-validity.unlocked::before {
    content: "Unlocked 🎉";
    display: inline-block;
    background: linear-gradient(135deg,#36d1dc,#5b86e5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 14px;
    position: absolute;
    top: -12px;
    right: -12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    animation: badge-bounce 1s ease infinite alternate;
}

/* Small bounce animation to catch attention */
@keyframes badge-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Radiance perks wrapper */
.radiance-perks-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* Individual perk card */
.radiance-perk-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.radiance-perk-card:hover {
  transform: translateY(-4px);
}

/* Icon */
.radiance-perk-card .perk-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

/* Title */
.radiance-perk-card .perk-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2d3436;
  margin-bottom: 6px;
}
/* Wrapper */
.tier-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 25px;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(90, 50, 150, 0.1);
}
/* Description */
.radiance-perk-card .perk-desc {
  font-size: 0.9rem;
  color: #444;
}
.tier-bg-text {
    position: relative;
    display: inline-block;
    color: #fff; /* Make text readable */
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
    overflow: hidden;
}

/* 🔥 Use the data attribute as background source */
.tier-bg-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: attr(data-bg url);
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -1;
    animation: shimmer 3s linear infinite;
    border-radius: 6px;
}
/* Toast notification */
.sabaiskin-toast {
    position: fixed;
    bottom: -60px;
    right: 20px;
    background: linear-gradient(135deg, #6b4ef7, #c28bff);
    color: #fff;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99999;
    font-family: 'Poppins', sans-serif;
}

.sabaiskin-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.sabaiskin-toast.error {
    background: linear-gradient(135deg, #ff7b7b, #ff3b3b);
}

.sabaiskin-toast.success {
    background: linear-gradient(135deg, #8bffb3, #00c853);
}
.sabaiskin-toast.show {
    bottom: 30px;
    opacity: 1;
    transform: translateY(0);
}

.sabaiskin-toast i {
    font-size: 16px;
    background: rgba(255,255,255,0.25);
    padding: 6px;
    border-radius: 50%;
}
/* Smooth glowing loop */
@keyframes shimmer {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}
/* ✅ Responsive (stack on mobile) */

/* Responsive fallback */
@media (max-width: 1200px) {
    .tier-validity-wrapper {
        flex-wrap: wrap;       /* allow wrapping on smaller screens */
    }
    .tier-validity {
        flex: 1 1 calc(50% - 20px); /* 2 per row on tablet */
        max-width: calc(50% - 20px);
    }
}
@media (max-width: 768px) {
    .tier-validity {
        flex: 1 1 100%;        /* 1 per row on mobile */
        max-width: 100%;
    }
}
.tier-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 300px; /* adjust max width */
  border-radius: 16px;
  overflow: hidden;
  object-fit: cover;
  padding: 4px; /* space for gradient border */
  background: linear-gradient(270deg, #c084fc, #e879f9, #a855f7, #c084fc);
  background-size: 400% 400%;
  animation: tierBorderShimmer 6s ease infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
/* Smooth shimmer movement */
@keyframes tierBorderShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover glow for luxury feel */
.tier-image-wrapper:hover {
  box-shadow: 0 6px 25px rgba(200, 120, 255, 0.4);
  transform: translateY(-2px);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .tier-image-wrapper {
    max-width: 90%;
    margin: 0 auto 15px;
  }
}
.tier-content {
  /*display: none;*/
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap; /* allows responsiveness */
}
.tier-content.active {
  display: flex;
}
/* Left: Tier Info */
.tier-info {
  flex: 1 1 60%;
  min-width: auto;
  color: #2d0a4a;
  transition: all 0.3s ease;
}
.tier-info:hover {
  transform: translateY(-4px);
}
/* Right: Tier Image + Congrats Text */
.tier-image {
  text-align: center;
  position: relative;
  max-width: 450px;
  margin: 0 auto; /* Center it horizontally */
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .sabaiskin-tier-box .tier-content {
        flex-direction: column; /* stack tier info and image */
        gap: 15px;
    }

    .sabaiskin-tier-box .tier-info,
    .sabaiskin-tier-box .tier-image {
        flex: 1 1 100%; /* full width on mobile */
    }

    .sabaiskin-tier-box .tier-image img {
        max-width: 100%;
        height: auto;
    }
}
.sabaiskin-tier-box .tier-hover-overlay {
    position: absolute;
    bottom: -100%; /* start hidden */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.sabaiskin-tier-box .tier-image-wrapper:hover .tier-hover-overlay {
    bottom: 0;   /* slide up */
    opacity: 1;  /* fade in */
}

.sabaiskin-tier-box .tier-hover-overlay .overlay-text p {
    margin: 5px 0;
}

.sabaiskin-tier-box .tier-hover-overlay .overlay-link {
    color: #ffd700; /* gold link */
    text-decoration: underline;
    font-weight: bold;
}

.sabaiskin-tier-box .tier-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
	object-fit: cover;
    transition: transform 0.4s ease;
}

.sabaiskin-tier-box .tier-image-wrapper:hover img {
    transform: scale(1.05);
}
/* Your gradient shimmer box (fixed layout) */
.tier-congrats-text {
  margin-top: 15px;
  background: linear-gradient(270deg, #a18cd1, #fbc2eb, #a18cd1);
  background-size: 400% 400%;
  animation: shimmer 6s ease infinite;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative; /* ✅ Change from absolute to relative */
  bottom: auto;
  left: auto;
  transform: none;
}

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

.tier-congrats-text strong {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.tier-congrats-text .journey-link {
  margin-top: 10px;
  display: inline-block;
  background: #fff;
  color: #7b2ff7;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tier-congrats-text .journey-link:hover {
  background: #7b2ff7;
  color: #fff;
  transform: translateY(-2px);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .tier-congrats-text {
    font-size: 0.95rem;
    padding: 16px;
  }
}
/* Responsive: stack columns on mobile */
@media (max-width: 900px) {
    .tier-content {
        flex-direction: column;
        align-items: center;
    }
    .tier-info, .tier-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .tier-image-wrapper {
        max-width: 100%;
    }
}
/* 🌸 Overlay */
.dealer-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

/* 🌈 Popup Box */
.dealer-popup {
  background: linear-gradient(145deg, #f8e7ff, #e4f0ff, #fff);
  border-radius: 20px;
  padding: 30px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: popupFade 0.25s ease-out;
  border: 3px solid;
  border-image: linear-gradient(90deg, #a26bff, #5b86e5, #ff9fcf) 1;
}

.popup-header h2 {
  background: linear-gradient(90deg, #a26bff, #ff8acb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.popup-header p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
}

.popup-list {
  text-align: left;
  margin: 0 auto 20px;
  padding-left: 0;
  list-style: none;
  max-width: 300px;
}

.popup-list li {
  background: #fff;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: #333;
}

.custom-btn.start-application {
  display: inline-block;
  background: linear-gradient(90deg, #5b86e5, #36d1dc);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.custom-btn.start-application:hover {
  background: linear-gradient(90deg, #36d1dc, #5b86e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(91, 134, 229, 0.4);
}

.close-popup:hover {
  color: #5b86e5;
}

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 📱 Responsive */
@media (max-width: 480px) {
  .dealer-popup {
    padding: 25px 25px;
  }
  .popup-list li {
    font-size: 0.9rem;
  }
}
.preloadercheck {
  transition: all 0.3s ease;
  font-weight: bold;
  margin-right: 6px;
}
.preloadercheck.checked {
  color: #22c55e; /* green */
}
.preloadercheck.failed {
  color: #ef4444; /* red */
}
#dealer-extra-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
#dealer-extra-fields input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.custombutton1 {
  background: linear-gradient(90deg, #d946ef, #9333ea);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 15px;
  transition: background 0.4s ease, transform 0.2s ease, color 0.3s ease;
}

.custombutton1:hover {
  background: linear-gradient(90deg, #9333ea, #7e22ce);
  transform: translateY(-1px);
}

.custombutton1:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.custombutton1.ready {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.custombutton1.ready:hover {
  background: linear-gradient(90deg, #16a34a, #15803d);
}
.dealer-form-fields {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 8px;
  animation: slideUp 0.5s ease-out;
}

.dealer-form-fields input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s, box-shadow 0.3s;
}

.dealer-form-fields input:focus {
  border-color: #5b86e5;
  box-shadow: 0 0 5px rgba(91,134,229,0.5);
  outline: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button transition */
.custom-btn.ready-to-submit {
  background: linear-gradient(90deg, #36d1dc, #5b86e5);
  color: #fff;
  transition: all 0.3s ease;
}
.custom-btn.ready-to-submit:hover {
  background: linear-gradient(90deg, #5b86e5, #36d1dc);
  transform: scale(1.05);
}
.dealer-success {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-btn.login-required {
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(135deg, #8a6cff, #cfa3ff);
    transition: all 0.25s ease;
}

.custom-btn.login-required:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 80, 255, 0.4);
}
.active-surprise {
    background: linear-gradient(135deg, #ff6a00, #ffcc00);
    animation: pulseSurprise 1.2s infinite alternate;
    color: #fff;
    box-shadow: 0 0 15px #ffcc00;
}
@keyframes pulseSurprise {
    from { transform: scale(1); box-shadow: 0 0 10px #ff9900; }
    to { transform: scale(1.03); box-shadow: 0 0 25px #ffcc00; }
}
.surprise-status {
    display: inline-block;
    font-weight: bold;
    margin-top: 5px;
}
/* Modal Styles */
.glowbox-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.6);
}
.glowbox-modal-content {
	background-color: #fff9f0;
	margin: 10% auto;
	padding: 20px;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	position: relative;
	text-align: center;
}
.glowbox-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
}
.convert-popup {
    display: none;           /* hidden by default */
    position: fixed;         /* stay in viewport */
    z-index: 9999;           /* above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);

    /* Flex centering */
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
}

.convert-popup-content {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.convert-popup p {
    font-size: 14px;
    margin-bottom: 15px;
}

.convert-popup .tier-btn {
    font-size: 13px;
    padding: 6px 12px;
    margin: 5px;
    border-radius: 8px;
}

.convert-popup .confirm-convert-btn {
    background-color: #7b5cf5;
    color: #fff;
    border: none;
}

.convert-popup .cancel-convert-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
}
/* Cashback text under tier title */
.tier-cashback {
    font-size: 14px;
    font-weight: 600;
    color: #6b21a8; /* modern purple vibe */
    margin-top: 5px;
    display: block;
}

/* Make the amount stand out */
.tier-cashback strong {
    color: #f59e0b; /* gold/orange highlight */
    font-size: 16px;
}

/* Optional: small icon before text */
.tier-cashback::before {
    content: "💰";
    margin-right: 5px;
}
/* Spinner Style Glow Cards Spinner */
.rebate-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
}

.rebate-loader::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #e99ac8; /* pastel pink accent */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tier-validity.loading {
  opacity: 0.6;
  position: relative;
}