/* Make sure body matches the main site styling */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  color: #fff;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: no-repeat linear-gradient(to bottom, #000000, #280303);
  background-color: #000;
  overscroll-behavior: none;
  touch-action: pan-y pinch-zoom;
}

/* Subscription Page Styles */
.subscription-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  padding-top: 80px; /* Account for fixed navigation */
  padding-bottom: 2rem;
  z-index: 2;
}

.subscription-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 90%;
}

.subscription-header {
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
  padding: 10px;
}

.subscription-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #ff2c3c;
  padding: 10px;
}

.subscription-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: #fff;
}

.subscription-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.plan-card {
  background: #030303;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(255, 44, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  color: #fff;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 44, 60, 0.2);
  border: 1px solid #ff2c3c;
}

.premium-plan {
  border: 3px solid #ff2c3c;
}

/* .premium-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #c3000a, #e52e00);
} */

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.plan-header h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #ff2c3c;
}

.price span {
  font-size: 1rem;
  color: #ccc;
  font-weight: normal;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff2c3c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(15deg);
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #1f1f1f;
  font-size: 1rem;
  display: flex;
  align-items: center;
  color: #fff;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-footer {
  margin-top: 2rem;
  text-align: center;
}

.current-plan {
  background: #ff2c3c;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
}

/* Usage Dashboard */
.usage-dashboard {
  background: #080808;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(255, 44, 60, 0.1);
  margin-bottom: 2rem;
  border: 1px solid #1f1f1f;
}

.usage-dashboard h2 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.usage-stats {
  display: grid;
  gap: 1.5rem;
}

.usage-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #ff2c3c;
}

.usage-card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.2rem;
}

.usage-meter {
  margin-bottom: 0.5rem;
}

.usage-bar {
  background: #333;
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(to right, #c3000a, #e52e00);
  border-radius: 10px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.usage-text {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
}

/* Sign in prompt */
.signin-prompt {
  background: #080808;
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 44, 60, 0.1);
  border: 1px solid #1f1f1f;
}

.signin-prompt h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.signin-prompt p {
  color: #ccc;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-spinner {
  border: 4px solid #333;
  border-top: 4px solid #ff2c3c;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loading-overlay p {
  color: white;
  font-size: 1.1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .subscription-main {
    padding: 60px 0 1rem 0;
  }

  .subscription-header h1 {
    font-size: 2rem;
  }

  .subscription-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .premium-plan {
    transform: none;
  }

  .plan-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .usage-dashboard {
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
  }

  .signin-prompt {
    padding: 2rem;
    margin: 0 1rem;
  }
}

/* Button styles specific to subscription page */
.subscription-main .btn {
  padding: 0.75rem 2rem;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.subscription-main .btn-primary {
  background: linear-gradient(to right, #c3000a, #e52e00);
  color: white;
}

.subscription-main .btn-primary:hover {
  background: #ff6f2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 44, 60, 0.3);
}

.subscription-main .btn-secondary {
  background: #1a1a1a;
  color: white;
  border: 1px solid #333;
}

.subscription-main .btn-secondary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 44, 60, 0.2);
}
