* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana,
    sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* FIFA-inspired Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://shikoz500.github.io/Qboosting-Website/images/background.png') center center/cover no-repeat;
  z-index: -3;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 77, 58, 0.9) 0%,
    rgba(26, 95, 74, 0.85) 25%,
    rgba(45, 115, 89, 0.8) 50%,
    rgba(26, 95, 74, 0.85) 75%,
    rgba(10, 77, 58, 0.9) 100%
  );
  z-index: -2;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.1);
  z-index: -1;
}

/* Header */
.header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid #00ff88;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    #00ff88,
    #00cc6a
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0a0a0a;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 2.2rem;
  font-weight: bold;
  background: linear-gradient(
    45deg,
    #00ff88,
    #ffffff,
    #00ff88
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: -5px;
}

.logo-text .slogan {
  font-size: 0.9rem;
  color: #cccccc;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  transform: translateY(-2px);
}

.currency-selector {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.currency-btn {
  padding: 0.5rem 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid #00ff88;
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.currency-btn.active,
.currency-btn:hover {
  background: #00ff88;
  color: #0a0a0a;
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Home Page */
.hero {
  text-align: center;
  padding: 0.7rem 0;
  position: relative;
}

.hero h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.hero p {
font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  padding: 1rem 2rem;
  background: linear-gradient(
    45deg,
    #00ff88,
    #00cc6a
  );
  color: #0a0a0a;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}
/* Tablet view - 2 columns */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view - 1 column */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(26, 26, 58, 0.8);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid #00ff88;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-card i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #00ff88;
  margin-bottom: 1rem;
}

/* Reviews Section */
.reviews {
  margin: 4rem 0;
  text-align: center;
}

.reviews h2 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  );
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: rgba(15, 15, 35, 0.9);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  color: #cccccc;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  color: #00ff88;
  font-weight: bold;
}

/* Services Page */
.services-tabs {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 50; 
}

.tab {
  padding: 1rem 2rem;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid transparent;
  color: #ffffff;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.tab.active {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.tab:hover {
  background: rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(100, 100, 100, 0.1);
}

.service-content {
  display: none;
  background: rgba(26, 26, 58, 0.8);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #00ff88;
  backdrop-filter: blur(10px);
}

.service-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Ensure subscription, contact, and terms pages follow same layout constraints */
#subscription .service-content,
#contact .contact-info,
#contact .hero,
#terms .hero,
#terms .feature-card {
  max-width: 1200px;
  margin: 2rem auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  );
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: bold;
  color: #00ff88;
}

.form-group select {
  padding: 0.75rem;
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid #00ff88;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group select:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.price-display {
  text-align: center;
  background: linear-gradient(
    135deg,
    #00ff88,
    #00cc6a
  );
  color: #0a0a0a;
  padding: 0.3rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.price-display h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.order-summary {
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid #00ff88;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.order-summary h4 {
  color: #00ff88;
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.order-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(
    45deg,
    #00ff88,
    #00cc6a
  );
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Order button states */
.order-btn.processing {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.order-btn.success {
  background: linear-gradient(45deg, #28a745, #20c997);
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
  animation: successPulse 0.3s ease;
  /* Button stays in success state to prevent duplicate orders */
  cursor: not-allowed;
}

.order-btn.error {
  background: linear-gradient(45deg, #dc3545, #c82333);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
  animation: errorShake 0.3s ease;
}

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

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.note {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid #ffc107;
  color: #ffc107;
  padding: 1rem;
  border-radius: 5px;
  margin: 1rem 0;
}

.coming-soon {
  text-align: center;
  padding: 3rem;
  color: #cccccc;
}

.coming-soon h3 {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: rgba(15, 15, 35, 0.95);
  border-top: 2px solid #00ff88;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  );
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #00ff88;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
  margin-left: 5px;
}

.payment-methods {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.security-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 55px;
}

.security-badge {
  background: linear-gradient(
    135deg,
    #00ff88,
    #ffffff
  );
  color: #0a0a0a;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  transition: transform 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.security-badge i {
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #00ff88;
  color: #0a0a0a;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  color: #cccccc;
}

/* FAQ Section */
.faq-item {
  background: rgba(26, 26, 58, 0.8);
  border: 1px solid #00ff88;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  background: rgba(0, 255, 136, 0.1);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 255, 136, 0.2);
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1rem;
  max-height: 200px;
}

/* Contact Section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  );
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  background: rgba(26, 26, 58, 0.8);
  border: 1px solid #00ff88;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
}

.contact-card i {
  font-size: 1rem;
  color: #00ff88;
  margin-bottom: 0.1rem;
}

/* Trustpilot badge */
.tp-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  align-items: flex-start;
  transform: translateZ(0);
}
.tp-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tp-word {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
}
.tp-stars {
  display: flex;
  gap: 6px;
}
.tp-stars svg {
  width: 28px;
  height: 28px;
}
.tp-badge:hover {
  filter: brightness(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row; /* Change back to row */
    justify-content: space-between; /* Space elements apart */
    align-items: center;
    padding: 0.5rem 1rem; /* Reduce padding */
    min-height: 60px; /* Reduce height */
  }

  .logo-section div {
    display: none; /* This hides the "We Grind You Shine" text */
  }

  .logo-section img {
    width: 50px !important; /* Reduce from 90px to 50px */
    height: 50px !important;
  }

  .currency-btn {
    padding: 0.4rem 0.8rem; /* Reduce padding */
    font-size: 0.9rem; /* Smaller font */
  }
  
  .currency-selector {
    gap: 0.3rem; /* Reduce gap between buttons */
  }

  .mobile-menu-btn {
    display: none; /* Hide header burger menu on mobile since we have tab bar */
    position: static; /* Remove absolute positioning */
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid #00ff88;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .logo-text h1 {
    font-size: 1.8rem;
  }
  
  .services-tabs {
    position: relative;
    flex-direction: column;
    align-items: center;
    z-index: 50;
  }

  .services-tabs .tab {
    display: none; /* Hide all tabs by default on mobile */
    width: 90%;
    margin: 0.5rem 0;
  }

  .services-tabs .tab.active {
    display: flex !important; /* Force show active tab */
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .services-tabs .tab.active::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #00ff88;
    transition: transform 0.3s ease;
  }

  .services-tabs .tab.active.dropdown-open::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .services-dropdown {
  display: none;
  position: fixed;
  top: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: rgba(26, 26, 58, 0.95);
  border: 1px solid #00ff88;
  border-radius: 10px;
  z-index: 500;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-height: 300px;
  overflow-y: auto;
}

.services-dropdown.show {
  display: block;
  top: 200px;  /* Position it below the header */
}

  .services-dropdown.show {
    display: block;
  }

  .services-dropdown .tab {
    display: flex !important;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: 1rem;
    justify-content: center;
    align-items: center;
  }

  .services-dropdown .tab:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
  }

  .services-dropdown .tab:first-child {
    border-radius: 10px 10px 0 0;
  }

  .services-dropdown .tab:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: none;
  }


  .form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }

  .payment-methods {
    justify-content: center;
  }
}

/* Prevent dropdown from going off-screen */
@media (max-width: 480px) {
  .services-dropdown {
    width: 95%;
    top: 180px;
  }
}

body {
  background-image: url('https://shikoz500.github.io/Qboosting-Website/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Mobile Tab Bar - Hidden by default (desktop) */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(15px);
  border-top: 2px solid #00ff88;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 300; /* Higher than menu overlay */
  box-shadow: 0 -4px 20px rgba(0, 255, 136, 0.2);
  visibility: visible !important;
  display: flex !important;
}

.mobile-tab-bar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #ffffff;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 50px;
}

.mobile-tab-bar .tab-item:hover,
.mobile-tab-bar .tab-item.active {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 8px;
  transform: translateY(-2px);
}

.mobile-tab-bar .tab-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.mobile-tab-bar .tab-item span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 70px; /* Leave space for tab bar */
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  backdrop-filter: blur(10px);
  overflow-y: auto; /* Allow overlay to scroll */
  overscroll-behavior: contain; /* Prevent scroll chaining to body */
  touch-action: pan-y; /* Only allow vertical touch scrolling within overlay */
}

.mobile-menu-overlay.show {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-menu-content {
  background: rgba(15, 15, 35, 0.98);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-height: 70vh;
  border: 2px solid #00ff88;
  border-bottom: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.mobile-menu-header h3 {
  color: #00ff88;
  margin: 0;
  font-size: 1.2rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.mobile-menu-close:hover {
  color: #00ff88;
}

.mobile-menu-items {
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
}

.mobile-menu-item i {
  font-size: 18px;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.mobile-menu-item span {
  font-size: 16px;
  font-weight: 500;
}

/* Show mobile tab bar only on mobile devices */
@media (max-width: 768px) {
  .mobile-tab-bar {
    display: flex;
  }
  
  /* Add bottom padding to body to account for fixed tab bar */
  body {
    padding-bottom: 70px;
  }
}

/* Hide mobile tab bar on desktop */
@media (min-width: 769px) {
  .mobile-tab-bar {
    display: none !important;
  }
}
  
  /* Adjust container padding on mobile */
  .container {
    padding-bottom: 1rem;
  }
  
  /* Hide the original mobile menu button when tab bar is visible */
  .mobile-menu-btn {
    display: none !important;
  }
  
}
