/* ================== VARS ================== */
:root {
  /* PopVai original brand colors */
  --purple-popvai: #8B5CF6;
  --purple-dark: #6D28D9;
  --orange-popvai: #F59E0B;
  --gold-popvai: #FCD34D;
  --blue-light: #E8EEFF;
  --white: #fff;
  --whatsapp-green: #25D366;
  --telegram-blue: #0088cc;
  
  /* Legacy vars for compatibility */
  --purple-top: #8B5CF6;
  --purple-bottom: #6D28D9;
  --purple-gradient: linear-gradient(135deg, var(--purple-popvai), var(--purple-dark));
  
  --font-header: 'Poppins', 'Arial', sans-serif;
  --font-body: 'Poppins', 'Arial', sans-serif;
  --header-height-desktop: 60px;
  --header-height-mobile: 50px;
  --max-width: 700px;
  --shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
  
  /* Dynamic color variables - PopVai style */
  --dynamic-primary: #8B5CF6;
  --dynamic-secondary: #6D28D9;
  --dynamic-gradient: linear-gradient(135deg, var(--purple-popvai), var(--purple-dark));
  --bg-gradient: linear-gradient(180deg, #F5F7FF, #E8EEFF);
}

/* ================== BASE ================== */
* { box-sizing: border-box; }
html { height: 100%; }
body {
  background: var(--bg-gradient);
  font-family: var(--font-body);
  margin: 0;
  color: #2D1B4E;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }

main {
  flex: 1 0 auto;
}

.footer-wrapper {
  flex-shrink: 0;
}

/* ================== LOADING ANIMATION ================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--dynamic-gradient);
  background-color: var(--purple-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

body.loading {
  overflow: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Shopping Cart Animation */
.loading-cart {
  width: 60px;
  height: 60px;
  position: relative;
  animation: cartMove 2s ease-in-out infinite;
}

.loading-cart svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes cartMove {
  0%, 100% {
    transform: translateX(-20px);
  }
  50% {
    transform: translateX(20px);
  }
}

/* Bouncing Dots */
.loading-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.loading-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.8) translateY(0);
    opacity: 0.7;
  }
  40% {
    transform: scale(1.2) translateY(-20px);
    opacity: 1;
  }
}

.loading-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ================== DYNAMIC HEADER ================== */
.main-header {
  background: var(--dynamic-gradient);
  box-shadow: 0 5px 20px rgba(123, 94, 255, 0.3);
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 15px 0;
  position: relative;
  overflow: hidden;
  animation: headerSlideDown 0.8s ease-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content { 
  width: 100%; 
  text-align: center; 
  position: relative;
  z-index: 2;
}

/* Logo Text Styling */
.logo-text {
  text-align: center;
  padding: 8px 0;
}

.logo-text-main {
  font-family: var(--font-header);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 2px;
  display: block;
  line-height: 1.1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: logoGlow 2s ease-in-out infinite alternate;
}

/* POP - White (putih) */
.logo-pop {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* VAI - Orange/Gold gradient (kuning ke kuning tua) */
.logo-vai {
  background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

@keyframes logoGlow {
  from { 
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  to { 
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.7)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
}

.logo-text-subtitle {
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.95);
  display: block;
  font-weight: 500;
  margin-top: 3px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text-slogan {
  font-family: var(--font-header);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  display: block;
  margin-top: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Header decorative elements */
.header-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent);
  pointer-events: none;
}

.decoration-1 {
  top: -20px;
  left: -20px;
  animation: float 3s ease-in-out infinite;
}

.decoration-2 {
  bottom: -30px;
  right: -30px;
  animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

/* ================== CONTAINER ================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 12px;
  animation: containerFadeIn 1s ease-out 0.3s both;
}

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

/* ================== TIERS ================== */
.reward-tier {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
  padding: 0 12px 16px 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: tierSlideUp 0.6s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.reward-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

@keyframes tierSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tier-header {
  background: linear-gradient(135deg, var(--orange-popvai), var(--gold-popvai));
  color: #fff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 12px 0;
  margin: 0 -12px 16px -12px;
  border-radius: 16px 16px 0 0;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
}

.tier-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ================== TIER BANNER IMAGE ================== */
.tier-banner {
  width: calc(100% + 24px);  /* Extend beyond padding (12px left + 12px right) */
  max-width: none;
  height:  auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  margin:  0 -12px;  /* Negative margin to cancel parent padding */
  margin-bottom: 0;
  display: block;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  animation: bannerFadeIn 0.8s ease-out;
}

@keyframes bannerFadeIn {
  from {
    opacity:  0;
    transform: scale(1. 02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* When banner exists, adjust the tier header to match full width */
.tier-banner + .tier-header {
  border-radius: 0;
  margin-top: 0;
  margin-left: -12px;
  margin-right: -12px;
  width: calc(100% + 24px);
}

/* Responsive adjustments for banner */
@media (max-width: 600px) {
  .tier-banner {
    border-radius: 12px 12px 0 0;
    width: calc(100% + 16px);
    margin: 0 -8px;
  }
  
  .tier-banner + .tier-header {
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px);
  }
}

@media (max-width: 400px) {
  .tier-banner {
    border-radius: 10px 10px 0 0;
    width: calc(100% + 12px);
    margin: 0 -6px;
  }
  
  .tier-banner + .tier-header {
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
  }
}

/* Remove top padding when tier has banner */
.reward-tier:has(.tier-banner) {
  padding-top: 0;
}

/* ================== GRID ================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .product-grid { gap: 8px; }
}
@media (max-width: 400px) {
  .product-grid { gap: 6px; }
}

/* ================== CARD DENGAN ANIMASI ================== */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid rgba(139, 92, 246, 0.3);
  min-height: 120px;
  position: relative;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  animation: cardFadeIn 0.5s ease-out forwards;
  overflow: hidden;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover,
.product-card:active {
  border-color: var(--orange-popvai);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:active {
  transform: translateY(-2px) scale(0.98);
}

/* Featured product styling */
.product-card.featured {
  border-color: var(--orange-popvai);
  background: linear-gradient(135deg, #fff, rgba(245, 158, 11, 0.1));
  animation: cardFadeIn 0.5s ease-out forwards, featuredPulse 2s ease-in-out infinite;
}

@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5); }
}

.featured-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(45deg, var(--orange-popvai), var(--gold-popvai));
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 0 10px 0 8px;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: badgeShine 1.5s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Gambar dengan lazy loading */
.product-img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 8px;
  background: rgba(232, 238, 255, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
}

.product-img.loaded {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.product-img.loading {
  background: linear-gradient(90deg, rgba(232, 238, 255, 0.5) 25%, rgba(139, 92, 246, 0.2) 50%, rgba(232, 238, 255, 0.5) 75%);
  background-size: 200% 100%;
  animation: imageLoading 1.5s infinite;
}

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

@media (max-width: 600px) {
  .product-img { max-width: 100px; }
}

.product-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #2D1B4E;
  font-weight: 500;
  margin: 0 auto;
  max-width: 100%;
  line-height: 1.2;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.5em;
  transition: color 0.3s ease;
}

.product-card:hover .product-name {
  color: var(--orange-popvai);
  font-weight: 600;
}

/* ================== VEJA MAIS BUTTON ================== */
.veja-mais-btn {
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 8px auto 0;
  padding: 8px 28px;
  background: #fff;
  color: var(--purple-popvai);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--purple-popvai);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  overflow: hidden;
}

.veja-mais-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-popvai), var(--purple-dark));
  transition: left 0.3s ease;
  z-index: -1;
}

.veja-mais-btn:hover::before,
.veja-mais-btn:focus-visible::before {
  left: 0;
}

.veja-mais-btn:hover,
.veja-mais-btn:focus-visible {
  color: #fff;
  border-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.veja-mais-btn .btn-text { 
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.veja-mais-btn .arrow-icon {
  margin-left: 8px; 
  font-size: 1.2em;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.veja-mais-btn:hover .arrow-icon,
.veja-mais-btn:focus-visible .arrow-icon { 
  transform: translateY(2px) rotate(180deg);
}

.veja-mais-btn.expanded .arrow-icon {
  transform: rotate(180deg);
}

.veja-mais-btn.expanded:hover .arrow-icon {
  transform: translateY(2px) rotate(0deg);
}

/* ================== MODAL ================== */
#orderModal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center; justify-content: center;
  z-index: 999;
}
#orderModal.active { display: flex; }

.order-modal-content {
  max-height: 90vh; overflow-y: auto;
  padding: 32px 22px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 32px rgba(139, 92, 246, 0.3);
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: min(560px, 92vw);
  border: 2px solid var(--purple-popvai);
}

.form-divider {
  margin: 20px 0;
  border-top: 2px solid var(--purple-popvai);
}

.order-product-info-centered {
  display: flex; flex-direction: column; align-items: center;
  margin: 4px 0 18px 0;
}

.modal-product-img {
  width: 250px; aspect-ratio: 1/1;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
  margin-bottom: 10px;
  object-fit: contain;
  border: 2.5px solid var(--purple-popvai);
  background: rgba(232, 238, 255, 0.5);
}

.modal-product-title {
  font-size: 1.12rem; font-weight: 700; color: #2D1B4E; text-align: center; margin-bottom: 8px;
}

.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  background: var(--purple-gradient);
  color: #fff; font-size: 1.6rem;
  border-radius: 8px; border: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.modal-close-btn:hover { 
  background: linear-gradient(135deg, var(--orange-popvai), var(--gold-popvai));
}

/* ========================================
   SORTEIO WARNING BOX - SUPER MENCOLOK!
======================================== */
.sorteio-warning-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 50%, #fca5a5 100%);
  border: 4px solid #DC2626;
  border-radius: 16px;
  margin: 20px 0;
  padding: 0;
  box-shadow: 
    0 8px 32px rgba(220, 38, 38, 0.4),
    0 0 0 4px rgba(220, 38, 38, 0.1),
    inset 0 2px 8px rgba(255, 255, 255, 0.3);
  animation: warningPulse 2s ease-in-out infinite;
  position: relative;
}

@keyframes warningPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 8px 32px rgba(220, 38, 38, 0.4),
      0 0 0 4px rgba(220, 38, 38, 0.1),
      inset 0 2px 8px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 
      0 12px 40px rgba(220, 38, 38, 0.6),
      0 0 0 6px rgba(220, 38, 38, 0.2),
      inset 0 2px 8px rgba(255, 255, 255, 0.3);
  }
}

.warning-header {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 3px solid #991B1B;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  text-align: center;
  min-height: 60px;
}

/* Shine effect on header only */
.warning-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: warningShine 3s infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes warningShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.warning-icon {
  font-size: 1.8rem;
  animation: warningIconBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  line-height: 1;
}

@keyframes warningIconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-8deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.15) rotate(8deg); }
}

.warning-title {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  line-height: 1.3;
  max-width: 280px;
}

.warning-content {
  padding: 14px 16px;
}

.warning-content p {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #7F1D1D;
  font-weight: 600;
  text-align: center;
}

.warning-content p:last-child {
  margin-bottom: 0;
}

.warning-content strong {
  color: #991B1B;
  font-weight: 800;
  text-transform: uppercase;
}

#sorteioParticipants {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(220, 38, 38, 0.15);
  padding: 10px 14px;
  border: 2px solid #DC2626;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.45;
}

.warning-highlight {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 10px;
  padding: 12px 14px !important;
  margin: 10px 0 0 0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #78350F !important;
  text-align: center !important;
  box-shadow: 
    0 3px 12px rgba(245, 158, 11, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

@keyframes highlightPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 4px 16px rgba(245, 158, 11, 0.3),
      inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 
      0 6px 24px rgba(245, 158, 11, 0.5),
      inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
}

/* ================== FORM ================== */
#orderForm label {
  margin-top: 10px; margin-bottom: 3px;
  font-size: 0.98rem; color: #2D1B4E; font-weight: 600;
}

#orderForm input, #orderForm select {
  width: 100%;
  padding: 10px 14px; margin-bottom: 8px;
  border-radius: 7px; border: 1.2px solid var(--purple-popvai);
  font-size: 1rem; background: rgba(232, 238, 255, 0.3);
  color: #2D1B4E;
  outline: none; transition: border .2s, background .2s, box-shadow .2s;
}

#orderForm input:focus, #orderForm select:focus {
  border: 1.2px solid var(--orange-popvai);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

#orderFormMessage { margin-top: 10px; font-weight: 700; min-height: 1.2em; color: #2D1B4E; }

#orderSubmitBtn {
  margin-top: 18px; padding: 10px 0; width: 100%;
  border-radius: 8px; background: var(--purple-gradient);
  color: #fff; font-size: 1.05rem; font-weight: 700; border: none;
  transition: background .18s, filter .18s;
}

#orderSubmitBtn:hover { 
  background: linear-gradient(135deg, var(--orange-popvai), var(--gold-popvai));
  filter: brightness(1.1); 
}

#orderSubmitBtn:disabled { background: #999 !important; color: #ddd !important; cursor: not-allowed; }

/* ================== MENTOR CONTACT ================== */
.mentor-contact-section {
  width: 100%;
  max-width: var(--max-width);
  margin: 25px auto 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: contactSlideUp 0.8s ease-out;
}

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

.mentor-contact-title {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange-popvai);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.mentor-contact-btn-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.mentor-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--purple-popvai);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
  padding: 12px 24px;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-popvai);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn {
  border: 2px solid var(--whatsapp-green);
  color: var(--whatsapp-green);
}

.telegram-btn {
  border: 2px solid var(--telegram-blue);
  color: var(--telegram-blue);
}

.mentor-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--purple-popvai);
  transition: left 0.3s ease;
  z-index: 0;
}

.whatsapp-btn::before {
  background: var(--whatsapp-green);
}

.telegram-btn::before {
  background: var(--telegram-blue);
}

.mentor-contact-btn:hover::before,
.mentor-contact-btn:focus-visible::before {
  left: 0;
}

.mentor-contact-btn:hover,
.mentor-contact-btn:focus-visible {
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  border-color: var(--whatsapp-green);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.telegram-btn:hover,
.telegram-btn:focus-visible {
  border-color: var(--telegram-blue);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.mentor-contact-btn span,
.mentor-contact-btn img {
  position: relative;
  z-index: 1;
}

.mentor-contact-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.mentor-contact-btn:hover .mentor-contact-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ================== RESPONSIVE - ALL DEVICES ================== */
@media (max-width: 1280px) {
  .logo-text-main { font-size: 1.95rem; }
  .main-header { padding: 14px 0; }
}

@media (max-width: 1024px) {
  .logo-text-main { font-size: 1.9rem; }
}

@media (max-width: 912px) {
  .logo-text-main { font-size: 1.85rem; }
  .mentor-contact-btn-row { gap: 35px; }
}

@media (max-width: 820px) {
  .logo-text-main { font-size: 1.82rem; }
  .logo-text-subtitle { font-size: 0.85rem; }
  .logo-text-slogan { font-size: 0.75rem; }
}

@media (max-width: 768px) {
  .logo-text-main { font-size: 1.8rem; }
  .mentor-contact-btn-row { gap: 32px; }
  .mentor-contact-btn { padding: 11px 22px; font-size: 0.98rem; }
}

@media (max-width: 720px) {
  .logo-text-main { font-size: 1.78rem; }
  .mentor-contact-section { margin: 22px auto 18px auto; }
}

@media (max-width: 640px) {
  .logo-text-main { font-size: 1.75rem; }
  .mentor-contact-btn-row { gap: 30px; }
}

@media (max-width: 600px) {
  .logo-text-main { font-size: 1.7rem; }
  .logo-text-subtitle { font-size: 0.8rem; }
  .logo-text-slogan { font-size: 0.72rem; }
  .mentor-contact-section { margin: 20px auto 15px auto; }
  .mentor-contact-title { font-size: 0.8rem; margin-bottom: 15px; }
  .mentor-contact-btn-row { gap: 28px; }
  .mentor-contact-btn { padding: 10px 20px; font-size: 0.95rem; gap: 8px; }
  .mentor-contact-icon { width: 20px; height: 20px; }
  
  /* WARNING BOX MOBILE */
  .warning-header {
    padding: 12px 14px;
    gap: 8px;
    min-height: 50px;
  }
  
  .warning-title {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    max-width: 180px;
  }
  
  .warning-icon {
    font-size: 1.4rem;
  }
  
  .warning-content {
    padding: 12px 14px;
  }
  
  .warning-content p {
    font-size: 0.88rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
  }
  
  #sorteioParticipants {
    font-size: 0.88rem;
    padding: 8px 12px;
    margin: 8px 0;
  }
  
  .warning-highlight {
    font-size: 0.88rem !important;
    padding: 10px 12px !important;
    margin: 8px 0 0 0 !important;
  }
}

@media (max-width: 540px) {
  .logo-text-main { font-size: 1.65rem; }
  .mentor-contact-btn { padding: 9px 18px; font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .logo-text-main { font-size: 1.6rem; }
  .logo-text-subtitle { font-size: 0.77rem; }
  .logo-text-slogan { font-size: 0.7rem; }
  .mentor-contact-btn-row { gap: 25px; }
  .mentor-contact-btn { padding: 9px 16px; font-size: 0.9rem; gap: 7px; }
  .mentor-contact-icon { width: 19px; height: 19px; }
}

@media (max-width: 430px) {
  .logo-text-main { font-size: 1.55rem; }
  .mentor-contact-section { margin: 18px auto 14px auto; }
  .mentor-contact-title { font-size: 0.78rem; }
}

@media (max-width: 414px) {
  .logo-text-main { font-size: 1.52rem; }
  .mentor-contact-btn { padding: 8px 16px; font-size: 0.88rem; }
  .mentor-contact-icon { width: 18px; height: 18px; }
}

@media (max-width: 400px) {
  /* WARNING BOX 400px */
  .warning-header {
    padding: 10px 10px;
    gap: 6px;
    min-height: 46px;
  }
  
  .warning-title {
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    max-width: 145px;
  }
  
  .warning-icon {
    font-size: 1.2rem;
  }
  
  .warning-content {
    padding: 10px 12px;
  }
  
  .warning-content p {
    font-size: 0.82rem;
    margin: 0 0 6px 0;
    line-height: 1.35;
  }
  
  #sorteioParticipants {
    font-size: 0.82rem;
    padding: 7px 10px;
    margin: 6px 0;
  }
  
  .warning-highlight {
    font-size: 0.82rem !important;
    padding: 8px 10px !important;
    margin: 6px 0 0 0 !important;
  }
}

@media (max-width: 390px) {
  .logo-text-main { font-size: 1.48rem; }
  .logo-text-subtitle { font-size: 0.75rem; }
  .logo-text-slogan { font-size: 0.68rem; }
  .mentor-contact-btn-row { gap: 22px; }
  .mentor-contact-btn { padding: 8px 14px; font-size: 0.86rem; gap: 6px; }
}

@media (max-width: 375px) {
  .logo-text-main { font-size: 1.45rem; }
  .main-header { padding: 12px 0; }
  .mentor-contact-section { margin: 16px auto 12px auto; }
  .mentor-contact-title { font-size: 0.76rem; margin-bottom: 12px; }
  .mentor-contact-btn { padding: 7px 13px; font-size: 0.84rem; }
  .mentor-contact-icon { width: 17px; height: 17px; }
}

@media (max-width: 360px) {
  .logo-text-main { font-size: 1.4rem; }
  .logo-text-subtitle { font-size: 0.72rem; }
  .logo-text-slogan { font-size: 0.66rem; }
  .mentor-contact-btn-row { gap: 20px; }
  .mentor-contact-btn { padding: 7px 12px; font-size: 0.82rem; gap: 5px; }
  
  /* Warning 360px */
  .warning-header {
    padding: 8px 8px;
    gap: 5px;
    min-height: 42px;
  }
  
  .warning-title {
    font-size: 0.78rem;
    max-width: 130px;
  }
  
  .warning-icon {
    font-size: 1.1rem;
  }
  
  .warning-content {
    padding: 8px 10px;
  }
  
  .warning-content p {
    font-size: 0.78rem;
    margin: 0 0 5px 0;
  }
  
  #sorteioParticipants {
    font-size: 0.78rem;
    padding: 6px 8px;
    margin: 5px 0;
  }
  
  .warning-highlight {
    font-size: 0.78rem !important;
    padding: 7px 8px !important;
    margin: 5px 0 0 0 !important;
  }
}

@media (max-width: 320px) {
  .logo-text-main { font-size: 1.3rem; }
  .logo-text-subtitle { font-size: 0.7rem; }
  .logo-text-slogan { font-size: 0.64rem; }
  .main-header { padding: 10px 0; }
  .mentor-contact-section { margin: 14px auto 10px auto; }
  .mentor-contact-title { font-size: 0.74rem; margin-bottom: 10px; }
  .mentor-contact-btn-row { gap: 18px; }
  .mentor-contact-btn { padding: 6px 11px; font-size: 0.8rem; gap: 5px; }
  .mentor-contact-icon { width: 16px; height: 16px; }
  
  /* Warning 320px */
  .warning-header {
    padding: 7px 6px;
    gap: 4px;
    min-height: 38px;
  }
  
  .warning-title {
    font-size: 0.72rem;
    max-width: 110px;
    letter-spacing: 0;
  }
  
  .warning-icon {
    font-size: 1rem;
  }
  
  .warning-content {
    padding: 6px 8px;
  }
  
  .warning-content p {
    font-size: 0.72rem;
    margin: 0 0 4px 0;
  }
  
  #sorteioParticipants {
    font-size: 0.72rem;
    padding: 5px 6px;
    margin: 4px 0;
  }
  
  .warning-highlight {
    font-size: 0.72rem !important;
    padding: 6px 6px !important;
    margin: 4px 0 0 0 !important;
  }
}

@media (max-width: 280px) {
  .logo-text-main { font-size: 1.2rem; }
  .logo-text-subtitle { font-size: 0.68rem; }
  .logo-text-slogan { font-size: 0.62rem; }
  .main-header { padding: 8px 0; }
  .mentor-contact-section { margin: 12px auto 8px auto; }
  .mentor-contact-title { font-size: 0.72rem; margin-bottom: 8px; }
  .mentor-contact-btn-row { gap: 15px; }
  .mentor-contact-btn { padding: 6px 10px; font-size: 0.78rem; gap: 4px; }
  .mentor-contact-icon { width: 15px; height: 15px; }
}

/* ================== UTILITY CLASSES ================== */
.extra-product[hidden] { 
  display: none !important; 
}

.extra-product:not([hidden]) {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

/* ================== T&C ================== */
#orderFormTC {
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 14px 12px;
  color: #555;
}

#orderFormTC strong {
  font-size: 1.0rem;
  margin-bottom: 7px;
}

#orderFormTC ol {
  margin: 10px 0 0 16px;
  padding-left: 8px;
}

#orderFormTC li {
  margin-bottom: 9px;
}

#orderFormTC .tc-section-title {
  color: var(--orange-popvai);
  font-weight: bold;
  font-size: 0.97rem;
}

/* ================== PERFORMANCE OPTIMIZATIONS ================== */
.product-card {
  will-change: transform;
}

.product-img {
  will-change: opacity;
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: translateY(-2px) scale(1.01);
  }
  
  .product-card:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
  }
}
