/* ===== SOCIO PAGE - VIBRANT REDESIGN ===== */

/* Particles Background */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Glassmorphism Auth Card */
.socio-auth {
  max-width: 440px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: glassSlideUp 0.6s ease-out;
}

@keyframes glassSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.socio-auth h1 {
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.socio-auth .sub {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 28px;
}

/* Glass Input */
.socio-auth input,
.socio-auth select {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.socio-auth input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.socio-auth input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.socio-auth label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Vibrant Button */
.btn-vibrant {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
}

.btn-vibrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.5);
}

.btn-vibrant:active {
  transform: translateY(0) scale(0.98);
}

.btn-vibrant::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-vibrant:active::after {
  width: 300px;
  height: 300px;
}

/* Wallet Section */
.socio-wallet {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
  padding: 20px 16px 80px;
}

/* Socio Header */
.socio-header {
  text-align: center;
  padding: 20px 0 30px;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.socio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 6px 32px rgba(245, 158, 11, 0.6); }
}

.socio-header h1 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.socio-header p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.socio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* Glass Card - Loyalty Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.glass-card-header h3 {
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-card-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progress Ring */
.progress-ring-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 24px 0;
}

.progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-ring svg {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.progress-ring .bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring .progress {
  stroke: url(#progressGradient);
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1s ease-out;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-ring-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.progress-ring-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Loyalty Stamps */
.loyalty-stamps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.stamp {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2.5px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stamp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stamp:hover::before {
  left: 100%;
}

.stamp.filled {
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
  animation: stampPop 0.5s ease;
}

@keyframes stampPop {
  0% { transform: scale(0.5) rotate(-10deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

.stamp.filled::after {
  content: '⭐';
  font-size: 1.6rem;
}

/* Coupon Card - Vibrant */
.coupon-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
  animation: couponGlow 2s ease-in-out infinite;
}

@keyframes couponGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(16, 185, 129, 0.6); }
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: couponShine 3s ease-in-out infinite;
}

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

.coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.coupon-header h3 {
  color: #fff;
  font-size: 1.2rem;
}

.coupon-icon {
  font-size: 2.5rem;
  animation: couponBounce 1s ease-in-out infinite;
}

@keyframes couponBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.coupon-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.coupon-countdown {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-countdown-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.coupon-countdown-value {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.coupon-countdown.urgent {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.coupon-countdown.warning {
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.coupon-message {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  margin-top: 12px;
}

/* State Banner - Vibrant */
.state-banner-vibrant {
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 16px 0;
  animation: bannerSlide 0.5s ease-out;
}

@keyframes bannerSlide {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.state-banner-vibrant.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.state-banner-vibrant.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.state-banner-vibrant.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Swipeable Container */
.swipe-container {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.swipe-track {
  display: flex;
  transition: transform 0.4s ease;
}

.swipe-slide {
  min-width: 100%;
  padding: 0 4px;
}

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.swipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.swipe-dot.active {
  background: #fbbf24;
  width: 28px;
  border-radius: 5px;
}

/* Form Panel - Glass */
.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

.glass-panel h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-panel p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.glass-panel input,
.glass-panel select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.glass-panel input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.glass-panel label {
  color: #e2e8f0;
}

/* Celebration Overlay - Enhanced */
.celebration-overlay-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.celebration-card-v2 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  border-radius: 28px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(245, 158, 11, 0.4);
  animation: celebrationBounceV2 0.7s ease;
  max-width: 380px;
  position: relative;
  overflow: hidden;
}

.celebration-card-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  animation: celebrationShine 2s ease-in-out infinite;
}

@keyframes celebrationShine {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

@keyframes celebrationBounceV2 {
  0% { transform: scale(0.3) translateY(60px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-15px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.celebration-card-v2 .trophy {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: trophyBounce 1s ease-in-out infinite;
}

@keyframes trophyBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-5deg); }
  75% { transform: translateY(-10px) rotate(5deg); }
}

.celebration-card-v2 h2 {
  color: #78350f;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.celebration-card-v2 p {
  color: #92400e;
  font-size: 1rem;
  margin-bottom: 24px;
}

.celebration-card-v2 .btn {
  background: #78350f;
  color: #fbbf24;
  border: none;
}

.celebration-card-v2 .btn:hover {
  background: #451a03;
}

/* Confetti - Enhanced */
.confetti-v2 {
  position: fixed;
  top: -20px;
  z-index: 201;
  animation: confettiFallV2 3s ease-out forwards;
}

@keyframes confettiFallV2 {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(1080deg) scale(0.5); opacity: 0; }
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 12px;
}

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

/* Toast - Enhanced */
.toast-vibrant {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Responsive */
@media (max-width: 480px) {
  .socio-auth {
    margin: 30px 16px;
    padding: 32px 24px;
  }
  
  .socio-auth h1 {
    font-size: 1.5rem;
  }
  
  .progress-ring-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .progress-ring {
    width: 120px;
    height: 120px;
  }
  
  .progress-ring svg {
    width: 120px;
    height: 120px;
  }
  
  .progress-ring-value {
    font-size: 1.8rem;
  }
  
  .glass-card {
    padding: 20px;
  }
  
  .coupon-card {
    padding: 20px;
  }
}
