/* Reset and global */
/* Valid and invalid input styling for checkout forms */
.checkout-box input.valid {
  border-color: #3adb76;
}
.checkout-box input.invalid {
  border-color: #d9534f;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1733;
  color: #e0e8ff;
  line-height: 1.6;
}

a {
  color: #4ea8ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header and navigation */
.site-header {
  background: #061126;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Small icon next to headings (used on some pages) */
.hero-icon {
  width: 38px;
  height: 38px;
  margin: 0 10px;
  vertical-align: middle;
  opacity: 0.9;
}

.logo a {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f2b705;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  margin-left: 0.8rem;
}

.nav-item a {
  color: #e0e8ff;
  padding: 0.5rem;
  display: block;
  border-radius: 4px;
}

.nav-item:hover > a {
  background: rgba(78, 168, 255, 0.1);
}

.nav-active > a {
  border-bottom: 2px solid #f2b705;
}

/* Cart count badge */
#cart-count {
  color: #f2b705;
  margin-left: 0.2rem;
  font-weight: bold;
}

/* Dropdown menus in the navigation */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #061126;
  padding: 0.5rem;
  border: 1px solid #0e2551;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: none;
  min-width: 180px;
  z-index: 200;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 0;
}

.dropdown-item a {
  display: block;
  padding: 0.4rem 0.6rem;
  color: #e0e8ff;
}

.dropdown-item a:hover {
  background: rgba(78, 168, 255, 0.1);
}

/* Language selector */
.lang-selector {
  margin-left: 1rem;
}

.lang-selector select {
  background: #061126;
  color: #e0e8ff;
  border: 1px solid #4ea8ff;
  border-radius: 4px;
  padding: 0.3rem;
}

/* Top section subtitle (home page) */
.top-section .top-subtext {
  color: #c5d1f7;
  font-size: 1rem;
  margin-top: -10px;
  margin-bottom: 25px;
  text-align: left;
  max-width: 900px;
}

/* Main content */
main {
  padding: 1.5rem;
}

/* Hero banner section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 2rem;
  color: #f2b705;
  margin-bottom: 0.5rem;
}
.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #c5d1f7;
}

/* Section headings */
.top-section h2,
.categories h2,
.in-dev h2 {
  color: #f2b705;
  margin-top: 1.5rem;
}

/* Generic grid layouts */
.top-grid,
.category-grid,
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Advice section */
.advice {
  background: #0e2551;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.advice h2 {
  color: #f2b705;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.advice ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  color: #aebce6;
}
.advice li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}
.advice li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #4ea8ff;
}

/* Roadmap section */
.roadmap {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #4ea8ff;
}
.roadmap li {
  position: relative;
  margin-bottom: 1rem;
  color: #aebce6;
  padding-left: 1.5rem;
}
.roadmap li::before {
  content: '';
  position: absolute;
  left: -0.35rem;
  top: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: #f2b705;
  border-radius: 50%;
}

/* FAQ styles */
.faq-home details summary,
.faq-page details summary {
  color: #f2b705;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.4rem;
}
.faq-home details p,
.faq-page details p {
  color: #e0e8ff;
  margin: 0 0 0.8rem 0;
  padding-left: 0.8rem;
}
.faq-home details,
.faq-page details {
  margin-bottom: 0.8rem;
}

/* Category cards */
.category-card {
  background: #0e2551;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.category-card:hover {
  transform: translateY(-4px);
  background: #102f60;
}
.category-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #f2b705;
  font-size: 1.4rem;
}
.category-card p {
  color: #aebce6;
  font-size: 0.9rem;
  margin: 0 0 0.8rem 0;
}

/* Bot cards */
.bot-card {
  background: #0e2551;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.bot-card:hover {
  transform: translateY(-4px);
}
.bot-card.highlight {
  border: 2px solid #f2b705;
}
.bot-card.pack {
  border: 1px dashed #4ea8ff;
}
.bot-card h3 {
  margin-top: 0;
  color: #f2b705;
  font-size: 1.1rem;
}
.bot-card .meta {
  font-size: 0.85rem;
  color: #8fa5ce;
}
.bot-card .description {
  font-size: 0.8rem;
  color: #aebce6;
}
.bot-card .price {
  font-weight: bold;
  color: #ffd657;
}

/* Generic buttons */
.btn {
  display: inline-block;
  background: #4ea8ff;
  color: #0b1733;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.btn:hover {
  background: #6cbcff;
}

.btn-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #4ea8ff;
}

.bot-detail h1 {
  margin-top: 0;
  color: #f2b705;
}

/* Metric cards and grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.metric-card {
  background: #0e2551;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #1a2f55;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.metric-card h4 {
  margin: 0;
  color: #f2b705;
}

.metric-card p {
  margin: 0.25rem 0 0;
  color: #c5d1f7;
  font-size: 0.9rem;
}

.metric-card .explain {
  font-size: 0.75rem;
  color: #8fa5ce;
}


/* Purchase section */
.purchase-options {
  margin-top: 1.5rem;
  background: #0e2551;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.btn-buy {
  background: #f2b705;
  color: #0b1733;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.btn-buy:hover {
  background: #ffd657;
}

/* Account page */
.account-page input {
  padding: 0.4rem;
  margin-top: 0.3rem;
  border: 1px solid #4ea8ff;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
}
.account-page button {
  margin-top: 0.7rem;
}

/* Lexicon section */
.lexicon {
  margin-top: 2rem;
  background: #081a3b;
  padding: 1rem;
  border-radius: 8px;
  color: #c5d1f7;
}
.lexicon h2 {
  color: #f2b705;
  margin-top: 0;
}
.lexicon ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  background: #061126;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #8fa5ce;
}

/* FAQ page styling */
.faq-page details {
  margin-bottom: 1rem;
  background: #0e2551;
  padding: 0.8rem;
  border-radius: 6px;
}
.pay-btn:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Checkout form */
.checkout-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.checkout-box h2 {
  margin-bottom: 0.5rem;
}
.checkout-box input,
.checkout-box select {
  margin-top: 0.3rem;
}
.checkout-info {
  background: #081c3a;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #1a2f55;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.checkout-info h3 {
  margin-top: 0;
  color: #f2b705;
}
.checkout-info ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}
.checkout-info li {
  margin-bottom: 0.4rem;
}
#lang-select-checkout {
  font-weight: bold;
}
.checkout-box p {
  line-height: 1.5;
}

/* Cart layout */
.cart-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.cart-container {
  width: 100%;
  max-width: 1400px;
  background: #0e2551;
  border-radius: 18px;
  padding: 40px;
}
.cart-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.cart-left {
  background: #102a5c;
  border-radius: 14px;
  padding: 24px;
  min-height: 200px;
}
.cart-right {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
/* Responsive adjustments for cart page */
@media (max-width: 900px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Alternate flex layout for small screens (improves wrapping) */
@media (max-width: 768px) {
  .cart-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    flex-wrap: wrap;
  }
  .cart-left {
    flex: 1;
  }
  .cart-right {
    flex: 2;
  }
}

/* Popular products, testimonials, and advantages sections (cart right side) */
.popular-products,
.customer-testimonials,
.why-choose-us {
  background: #081c3a;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 30px;
}
.popular-products h2,
.customer-testimonials h2,
.why-choose-us h2 {
  color: #f2b705;
  margin-bottom: 12px;
}

/* Popular products grid */
.popular-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.product-item {
  /* intentionally left blank to inherit background from parent */
}
.product-image img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.product-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}
.product-info p {
  margin: 0 0 10px 0;
  color: #c5d1f7;
}
/* Button style for product items (reuse .btn-buy definition) */
.popular-products .btn-buy,
.product-item .btn-buy {
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #3a7bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.popular-products .btn-buy:hover,
.product-item .btn-buy:hover {
  background: #2d63d6;
  transform: translateY(-2px);
}

/* Testimonials grid */
.testimonial-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .testimonial-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.testimonial-text {
  font-style: italic;
}
.testimonial-author {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #c5d1f7;
}

/* Advantages list */
.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.advantages-list li {
  color: #c5d1f7;
  margin: 6px 0;
}

/* ==== Google Translate: hide the injected UI elements ==== */
.goog-te-banner-frame,
.goog-te-combo,
.goog-logo-link,
.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Prevent any translation banner from shifting the page down */
body {
  top: 0 !important;
  position: static !important;
}

/* Maintain header height when translation bar is suppressed */
.site-header {
  min-height: 64px;
}
