/* === NEW THEME VARIABLES (from previous update) === */
:root {
  --color-dark-bg: #0C0F2C; /* Deep Space Blue */
  --color-mid-bg: #14183A;
  --color-light-bg: #1F244A;
  --color-primary-accent: #FFB300; /* Vibrant Gold/Orange */
  --color-secondary-accent: #FF6600; /* Deep Orange for highlights */
  --color-text-light: #E0E4F3;
  --color-text-muted: #9AA4BF;
  --color-border-subtle: rgba(255, 179, 0, 0.15); 
  --color-success: #00ffcc; /* For checkmarks/delivery */
}

/* BASE & UTILITY STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Performance optimizations */
img {
  will-change: transform;
}

.card {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--color-dark-bg);
  color: var(--color-text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--color-mid-bg) 0%, var(--color-dark-bg) 100%);
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 179, 0, 0.08), transparent 70%);
  pointer-events: none;
}

header h1 {
  font-size: 2.75rem;
  font-weight: 900; 
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--color-primary-accent) 0%, var(--color-secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

header h1 .header-icon {
    font-size: 1.1em; 
    margin-right: 10px;
    color: var(--color-primary-accent); 
}

header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

header p .promise-highlight {
    color: var(--color-success); 
    font-weight: 700;
}

/* === NEW ACCOUNT BUTTON STYLE === */
.account-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary-accent);
  color: var(--color-dark-bg);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.2);
}
.account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 179, 0, 0.4);
}
/* === END NEW STYLE === */

.trust-bar {
  background: var(--color-light-bg);
  padding: 0.75rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--color-border-subtle);
}

.trust-bar p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.payment-logos img {
    height: 25px; 
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%); 
    transition: filter 0.3s, opacity 0.3s;
}
.payment-logos img:hover {
    filter: none; 
    opacity: 1;
}

.security-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    margin: 0 0.25rem;
}

.loyalty-banner {
    background: linear-gradient(90deg, #33ccff 0%, #00aaff 100%); 
    color: var(--color-dark-bg);
    padding: 0.75rem 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
    margin-bottom: 0px;
    z-index: 101; 
}

/* Order Form Styles */
.order-form-sticky-wrapper {
    background: var(--color-mid-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border-subtle);
    position: sticky;
    top: 0;
    z-index: 102;
}

.order-form-sticky-wrapper p {
    color: var(--color-primary-accent);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: center;
}

.id-input-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 0 auto;
}

.id-input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-dark-bg);
    border: 1px solid #334155;
    color: var(--color-text-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.id-input-group input:focus {
    border-color: var(--color-primary-accent);
    outline: none;
}

.id-input-group input::placeholder {
    color: var(--color-text-muted);
}

.guide-btn {
    background: var(--color-light-bg);
    color: var(--color-primary-accent);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0; 
    align-self: center;
    height: 58px; 
    border: 1px solid transparent;
}
.guide-btn:hover {
    background: #2D335E;
    border-color: var(--color-primary-accent);
}

/* --- NEW SEARCH BAR STYLES --- */
.search-input-group {
    max-width: 600px;
    margin: 1rem auto 0.5rem auto; /* Space above and below */
    position: relative;
}

.search-input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 40px; /* Make space for the icon */
    background: var(--color-dark-bg);
    border: 1px solid #334155;
    color: var(--color-text-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    border-color: var(--color-success); /* Use a different color to distinguish from ID input */
    outline: none;
}

/* Add a magnifying glass icon using a pseudo-element for style */
.search-input-group::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    pointer-events: none; /* Allows clicks to pass through to the input */
    z-index: 1;
}
/* --- END NEW SEARCH BAR STYLES --- */

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--color-light-bg);
  backdrop-filter: blur(5px);
  position: sticky;
  /* FIX: Adjusted top position to sit below the ID + Search sticky inputs */
  top: 170px; 
  z-index: 100;
  border-bottom: 1px solid var(--color-border-subtle);
}

.tab-btn {
  background: var(--color-primary-accent);
  color: var(--color-dark-bg);
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.2);
  white-space: nowrap; 
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 179, 0, 0.4);
}
.tab-btn:active {
    transform: scale(0.98); 
    opacity: 0.9;
}

.tab-btn.inactive {
  background: var(--color-mid-bg);
  color: var(--color-text-muted);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tab-btn.inactive:hover {
  border-color: var(--color-primary-accent);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

.tab-btn:not(.inactive) {
    border-bottom: 3px solid var(--color-secondary-accent); 
    transform: none; 
}

/* Sections and Packages */
.section {
  display: none;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.section h2 {
  text-align: center;
  color: var(--color-primary-accent);
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--color-mid-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary-accent);
  box-shadow: 0 12px 40px rgba(255, 179, 0, 0.15);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-light);
  position: relative;
}

.card .price {
  color: var(--color-primary-accent);
  font-size: 2.25rem;
  font-weight: 900;
  margin: 1.25rem 0;
  letter-spacing: -1px;
  line-height: 1; 
  position: relative;
}

.card .buy-btn {
  background: #25D366; 
  color: var(--color-dark-bg);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700; 
  text-decoration: none;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1rem; 
  position: relative;
}

.card .buy-btn:active {
    background: #1baa55; 
    transform: scale(0.98); 
}

.card .buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* === NEW BUTTON GROUP STYLES === */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Space between buttons */
}

.buy-btn.wallet-btn {
  background: var(--color-primary-accent); /* Gold color */
  color: var(--color-dark-bg);
}

.buy-btn.wallet-btn:hover {
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.3);
}
/* === END NEW STYLES === */


.best-value-badge, .promo-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.promo-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

.best-value-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
  color: var(--color-dark-bg); 
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.high-demand-bar {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 0.5rem 0 1rem;
}
.high-demand-bar p {
    position: absolute;
    top: -18px; 
    left: 0;
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
    color: var(--color-primary-accent); 
    font-weight: 600;
}
.bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FF6600);
    border-radius: 5px;
    transition: width 0.5s;
}

.old-price {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 1rem; 
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.promo-card {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 111, 0.05) 100%);
  border: 2px solid rgba(255, 107, 107, 0.3);
}

.how {
  background: var(--color-mid-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.how ol {
  padding-left: 2rem;
  line-height: 2.2;
  color: var(--color-text-light);
}

.testimonials {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.testimonials h3 {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--color-mid-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-subtle);
    text-align: left;
}

.testimonial-card p:first-child {
    color: var(--color-primary-accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-mid-bg);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border-subtle);
}

.faq-section h2 {
    text-align: center;
    color: var(--color-primary-accent);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    background: var(--color-light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-text-light);
    transition: background 0.3s;
}

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

.faq-toggle {
    font-size: 1.5rem;
    color: var(--color-primary-accent);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--color-dark-bg);
    color: var(--color-text-muted);
    line-height: 1.6;
}

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

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.final-trust-summary {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--color-mid-bg);
    border-top: 1px solid var(--color-border-subtle);
    color: var(--color-primary-accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 15px; 
}

.final-trust-summary span:nth-child(even) {
    color: var(--color-text-muted); 
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--color-text-muted);
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9375rem;
}

/* MODAL STYLES (for ID Guide) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-light-bg);
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 500px;
    position: relative;
    border: 2px solid var(--color-primary-accent);
}
.modal-content h3 {
    color: var(--color-primary-accent);
    margin-top: 0;
}
.modal-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--color-border-subtle);
}
.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Floating WhatsApp Button */
.wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366; 
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
    transform: scale(1); /* Initial state */
    animation: wa-pulse 1.5s infinite; /* Add a gentle pulse */
}
.wa-btn:hover {
    transform: scale(1.05);
    animation: none; /* Stop pulse on hover */
}
.wa-btn::before {
    content: '💬'; 
    margin-right: 8px;
    font-size: 1.2em;
}
/* Add this new keyframe animation to your <style> block */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === MOBILE SPECIFIC ADJUSTMENTS (max-width: 768px) === */
@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .order-form-sticky-wrapper {
      padding: 0.5rem 1rem 1rem 1rem;
      top: 0; 
  }

  .tabs {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    /* FIX: Adjusted top for mobile as well */
    top: 170px; 
  }
  
  .id-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .guide-btn {
    width: 100%;
    height: auto;
  }

  .packages {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  /* Mobile Adjustment for search bar */
  .search-input-group {
      margin-top: 0.75rem; 
  }

  /* Mobile-specific optimizations */
  .payment-logos {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .security-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .final-trust-summary {
    flex-direction: column;
    gap: 10px;
  }

  .faq-section {
    padding: 2rem 1rem;
  }

  /* Improve touch targets */
  .tab-btn {
    min-height: 44px;
    padding: 1rem 1.25rem;
  }

  .buy-btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
}

/* === NEW STYLES FOR BUTTON GROUP ON LARGER SCREENS === */
@media (min-width: 480px) {
  .button-group {
    flex-direction: row;
  }
  .buy-btn {
    font-size: 0.85rem; /* Slightly smaller text to fit */
    padding: 0.875rem 0.5rem; /* Adjust padding */
    width: 100%;
  }
}
