/* assets/css/style.css */
:root {
  --primary: #0f3460;
  --primary-dark: #0a2342;
  --primary-light: #1a4b85;
  --secondary: #f9a826;
  --secondary-hover: #e0921f;
  --accent-green: #10b981;
  --accent-blue: #0284c7;
  --accent-red: #ef4444;
  --bg-color: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 10px 20px -5px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.12);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--secondary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-color); }
.bg-white { background-color: var(--bg-white); }
.text-center { text-align: center; }

/* Colors & Helpers */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary { 
  background-color: var(--primary); 
  color: #fff !important; 
  border-color: var(--primary);
}
.btn-primary:hover { 
  background-color: var(--primary-light); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md); 
}

.btn-secondary { 
  background-color: var(--secondary); 
  color: var(--primary-dark) !important; 
  border-color: var(--secondary);
}
.btn-secondary:hover { 
  background-color: var(--secondary-hover); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md); 
}

.btn-outline { 
  border: 2px solid var(--primary); 
  background: transparent; 
  color: var(--primary); 
}
.btn-outline:hover { 
  background-color: var(--primary); 
  color: #fff !important; 
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff !important;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background-color: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.15rem; }

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.navbar .container {
  max-width: 1440px;
  padding: 0 16px;
}
.navbar-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.navbar-brand { 
  font-size: 1.22rem; 
  font-family: var(--font-heading); 
  font-weight: 800; 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  white-space: nowrap;
  flex-shrink: 0;
}
.navbar-menu { 
  display: flex; 
  align-items: center; 
  gap: 0.2rem; 
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 1;
}
.nav-link { 
  font-size: 0.81rem; 
  font-weight: 600; 
  color: #334155; 
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active { 
  color: var(--primary); 
  background-color: rgba(15, 52, 96, 0.07);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.lang-switch a {
  color: #64748b;
  text-decoration: none;
  padding: 2px 7px;
  border-radius: 14px;
  transition: all 0.15s ease;
  display: inline-block;
  line-height: 1.2;
}
.lang-switch a:hover:not(.active) {
  color: var(--primary);
  background: #e2e8f0;
}
.lang-switch a.active {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(15, 52, 96, 0.3);
}
.lang-divider {
  display: none;
}

.nav-btn-order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--secondary);
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 6px 12px;
  font-size: 0.81rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(249, 168, 38, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-btn-order:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(249, 168, 38, 0.4);
}

.nav-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  padding: 6px 10px;
  font-size: 0.81rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-btn-wa:hover {
  background-color: #1eb954;
  transform: translateY(-1px);
}

.navbar-mobile-lang {
  display: none;
}
.navbar-mobile-actions {
  display: none;
}

.navbar-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  cursor: pointer;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.navbar-toggle:hover {
  background: #e2e8f0;
}

/* Grid / Layout */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Icons */
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.form-sublabel { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: -3px; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); font-family: inherit; font-size: 0.95rem;
  background: var(--bg-white); color: var(--text-dark); transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}
.form-textarea { min-height: 110px; resize: vertical; }

/* Stats Counter Cards */
.stat-card {
  background: var(--bg-white);
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Feature & Benefit Cards */
.feature-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(15, 52, 96, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* Category & Product Cards */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-card-header {
  padding: 1.5rem;
  background: #0f3460;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff !important;
}
.product-card-header h3 {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
}
.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Pricing Table */
.price-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.price-card.featured {
  border: 2px solid var(--secondary);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  margin: 1rem 0;
}

/* ========================================================
   CHECKOUT WIZARD & ORDER FLOW STYLES
   ======================================================== */
.checkout-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
.checkout-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 3px solid var(--border-color);
  color: var(--text-muted);
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}
.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(15, 52, 96, 0.15);
}
.step-item.completed .step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}
.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step-item.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* Interactive Category Checkbox Grid */
.category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}
.category-checkbox-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.category-checkbox-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-color);
}
.category-checkbox-card.selected {
  border-color: var(--primary);
  background: rgba(15, 52, 96, 0.05);
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.1);
}
.category-checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}
.category-card-text strong { display: block; font-size: 1rem; color: var(--text-dark); }
.category-card-text span { font-size: 0.8rem; color: var(--text-muted); }

/* Drag & Drop File Upload Boxes */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  background: var(--bg-color);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(15, 52, 96, 0.03);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 8px;
}
.upload-preview-container {
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
}
.upload-preview-img {
  max-width: 140px;
  max-height: 100px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: cover;
}
.upload-filename {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 6px;
}

/* Payment Selection Radio Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 1.5rem;
}
.payment-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
}
.payment-card:hover {
  border-color: var(--primary-light);
}
.payment-card.selected {
  border-color: var(--primary);
  background: rgba(15, 52, 96, 0.04);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.1);
}
.payment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.payment-card-header strong { font-size: 1.15rem; color: var(--primary); }

/* QR Code & Crypto Display Card */
.crypto-display-card {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.crypto-address-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 1.05rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0;
}

/* Footer & Sitemap Links */
.footer { background: var(--primary-dark); color: #fff; padding: 60px 0 20px; margin-top: auto; }
.footer h2, .footer h3, .footer h4 { color: #fff; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }

/* Floating WhatsApp Badge */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .navbar-toggle { display: flex; }
  .navbar-actions .nav-btn-wa .nav-wa-text { display: none; }
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 0.4rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-bottom: 3px solid var(--primary);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-menu.active {
    display: flex;
    animation: slideDownNav 0.22s ease-out forwards;
  }
  .navbar-mobile-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
  }
  .mobile-lang-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
  }
  .navbar-menu .nav-link {
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    border-bottom: 1px solid #f1f5f9;
  }
  .navbar-menu .nav-link:hover {
    background: #f8fafc;
  }
  .navbar-mobile-actions {
    display: block;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }
}

@media (max-width: 580px) {
  .navbar-actions .nav-btn-order span { display: none; }
  .navbar-actions .nav-btn-order { padding: 6px 9px; }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .payment-methods-grid { grid-template-columns: 1fr; }
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  body { padding-bottom: 65px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  main { padding-top: 80px !important; }
  
  /* Mobile Sticky Conversion Bar */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 8px 12px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border-color);
    z-index: 998;
    gap: 8px;
  }
  .mobile-sticky-bar .btn {
    flex: 1;
    padding: 11px 8px;
    font-size: 0.85rem;
    font-weight: 700;
  }
  
  /* Floating WhatsApp on mobile */
  .floating-whatsapp {
    bottom: 75px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  /* Form & Checkout Mobile Optimization */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
  }
  .checkout-container {
    padding: 1.5rem 1rem !important;
  }
  .checkout-steps {
    flex-direction: column;
    gap: 12px;
  }
  .checkout-steps::before {
    display: none;
  }
  .step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .step-circle {
    margin: 0;
    flex-shrink: 0;
  }

  /* Hero Fluid Typography */
  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.45rem !important; }
}
