/* VIP Section Styles - Matching App Design System */

/* Force clean slate for VIP section */
body #vip.section {
  min-height: auto !important;
  padding: 2rem 0 4rem 0 !important;
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    #ffffff 25%,
    #f1f3f4 75%,
    #e8eaed 100%
  ) !important;
  position: relative !important;
  z-index: 1000 !important; /* Very high z-index */
  overflow: visible !important;
  width: 100% !important;
  isolation: isolate; /* Create new stacking context */
}

/* Ensure VIP section displays correctly when active */
body #vip.section.active {
  display: block !important;
  position: relative !important;
  z-index: 1000 !important;
}

/* Force hide games section completely */
body #games.section:not(.active) {
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  z-index: -1 !important;
}

/* Override any games CSS that might interfere */
body #games.section:not(.active) * {
  display: none !important;
  visibility: hidden !important;
}

/* Clear any floating elements that might interfere */
body #vip.section::before,
body #vip.section::after {
  content: '';
  display: table;
  clear: both;
}

/* Make sure VIP container doesn't inherit problematic styles */
body #vip .vip-container {
  position: relative !important;
  z-index: 1001 !important;
  background: transparent !important;
  isolation: isolate;
}

.vip-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.vip-header {
  margin-bottom: 40px;
}

.vip-title {
  font-size: 2.5em;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  margin-bottom: 10px;
}

.vip-subtitle {
  font-size: 1.2em;
  color: #6c757d;
  margin-bottom: 20px;
}

.crown-icon {
  font-size: 3.5em;
  color: #ffd700;
  margin-bottom: 20px;
  animation: crown-glow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

@keyframes crown-glow {
  0% {
    transform: translateY(0px);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
  }
  100% {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
  }
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid #f8f9fa;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
}

/* Pricing Section with Discount */
.price-section {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
  animation: pulse-discount 2s infinite;
}

.discount-badge i {
  margin-right: 5px;
}

@keyframes pulse-discount {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.price-original {
  margin-bottom: 10px;
}

.original-price {
  font-size: 1.2em;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.price {
  font-size: 3em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.price-note {
  font-size: 0.9em;
  color: #ff4757;
  font-weight: 600;
  font-style: italic;
}

.price-currency {
  font-size: 0.5em;
  color: #6c757d;
  font-weight: normal;
}

.pricing-card h3 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.pricing-card > p {
  color: #6c757d;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.benefits {
  text-align: left;
  margin: 30px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.benefit-item:hover {
  background-color: #f8f9fa;
}

.benefit-icon {
  color: #28a745;
  margin-right: 15px;
  font-size: 1.2em;
  min-width: 20px;
}

.benefit-item span {
  color: #2c3e50;
  font-size: 1em;
  line-height: 1.5;
}

.user-status {
  margin: 20px 0;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
}

.user-status.vip-active {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.user-status.vip-inactive {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.upgrade-btn {
  background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
  color: white;
  border: 2px solid transparent;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upgrade-btn:hover {
  background: linear-gradient(135deg, #2c3e50 0%, #495057 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.upgrade-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upgrade-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upgrade-btn i {
  margin-right: 10px;
  color: #ffd700;
}

/* VIP Navigation Link */
.nav-link.vip-link {
  position: relative;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #ffd700;
    color: #ffd700 !important;
  }
  to {
    text-shadow:
      0 0 10px #ffd700,
      0 0 15px #ffd700;
    color: #ffed4a !important;
  }
}

/* Premium feel enhancements */
.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.user-status i {
  margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vip-title {
    font-size: 2em;
  }

  .price {
    font-size: 2.5em;
  }

  .pricing-card {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .upgrade-btn {
    padding: 12px 30px;
    font-size: 1.1em;
  }

  .benefit-item span {
    font-size: 0.95em;
  }
}

/* Free Announcement Styles */
.free-announcement {
  text-align: center;
  margin-bottom: 30px;
}

.free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
  animation: pulse-free 2s infinite;
}

@keyframes pulse-free {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.free-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #2d3436;
  margin-bottom: 0;
}

.current-benefits,
.upcoming-features,
.support-section {
  margin-bottom: 25px;
}

.current-benefits h4,
.upcoming-features h4,
.support-section h4 {
  color: #2d3436;
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 600;
}

.upcoming-features h4 {
  color: #e17055;
}

.support-section h4 {
  color: #fd79a8;
}

.benefit-item.upcoming {
  background: rgba(225, 112, 85, 0.1);
  border-left: 4px solid #e17055;
}

.benefit-item.upcoming .benefit-icon {
  color: #e17055;
}

.support-description {
  font-size: 1em;
  line-height: 1.5;
  color: #636e72;
  margin-bottom: 0;
}

.support-btn {
  background: linear-gradient(135deg, #fd79a8, #fdcb6e);
  border: none;
  transition: all 0.3s ease;
}

.support-btn:hover {
  background: linear-gradient(135deg, #e84393, #f39c12);
  transform: translateY(-2px);
}

.price-info {
  text-align: center;
  margin-top: 15px;
}

.price-info small {
  color: #74b9ff;
  font-size: 0.9em;
  font-weight: 500;
}

@media (max-width: 480px) {
  .vip-container {
    padding: 10px;
  }

  .vip-title {
    font-size: 1.8em;
  }

  .crown-icon {
    font-size: 2.5em;
  }

  .pricing-card {
    padding: 25px 15px;
  }

  .benefits {
    margin: 20px 0;
  }

  .benefit-item {
    padding: 8px;
    margin-bottom: 12px;
  }

  .free-description {
    font-size: 1em;
  }
}
