* {
  box-sizing: border-box;
}

:root {
  --primary: #1677ff;
  --primary-dark: #0f5fd6;
  --primary-soft: #e7f0ff;
  --ink: #16202b;
  --muted: #617184;
  --line: #e6ebf2;
  --surface: #ffffff;
  --soft: #f6f8fc;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, sans-serif;
}

.landing-nav {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(230, 235, 242, .9);
  left: 0;
  padding: 12px 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  align-items: center;
  background: var(--primary);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-link-soft {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 6px 8px;
  text-decoration: none;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
}

.hero {
  color: #fff;
  min-height: 96vh;
  overflow: hidden;
  padding: 126px 0 78px;
  position: relative;
}

.hero-bg {
  background:
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80")
    center/cover no-repeat;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 25, 58, .94), rgba(var(--bs-primary-rgb), .78)),
    rgba(7, 25, 58, .3);
  inset: 0;
  position: absolute;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-title span {
  color: #b8d4ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 12px 0 20px;
  max-width: 820px;
}

.hero .lead {
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 680px;
}

.hero-stats div {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 14px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
  line-height: 1.25;
}

.hero-stats strong {
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-stats span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  margin-top: 4px;
}

.phone-preview {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  color: var(--ink);
  margin: 0 auto;
  max-width: 382px;
  padding: 18px;
}

.phone-top {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 14px;
}

.phone-top span {
  background: var(--primary);
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.phone-balance {
  background: var(--primary);
  border-radius: 18px;
  color: #fff;
  padding: 18px;
}

.phone-balance small,
.phone-balance em {
  display: block;
  font-style: normal;
  opacity: .82;
}

.phone-balance strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  margin: 4px 0;
}

.phone-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.phone-grid div {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 14px;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 72px;
}

.phone-grid i {
  font-size: 22px;
}

.phone-row {
  align-items: center;
  background: var(--soft);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 13px 14px;
}

.phone-row span {
  color: var(--muted);
  font-size: 13px;
}

.phone-row strong {
  font-size: 13px;
  text-align: right;
}

.section {
  padding: 82px 0;
}

.section.muted {
  background: #fff;
}

.section-title {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.section-title span {
  color: var(--primary);
}

.section-title h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  margin: 8px 0 12px;
}

.section-title p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 100%;
  padding: 24px;
}

.feature-card i {
  align-items: center;
  background: var(--primary-soft);
  border-radius: 12px;
  color: var(--primary);
  display: inline-flex;
  font-size: 26px;
  height: 54px;
  justify-content: center;
  margin-bottom: 17px;
  width: 54px;
}

.feature-card h5 {
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.category-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.category-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.category-card small,
.category-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.category-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 6px 0;
}

.product-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.product-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
  padding: 14px 16px;
  text-transform: uppercase;
}

.product-table td {
  padding: 15px 16px;
  vertical-align: middle;
}

.product-table td strong,
.product-table td small {
  display: block;
}

.product-table td small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.table-pill {
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 128px;
  padding: 20px;
}

.steps span {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 34px;
}

.steps strong,
.steps small {
  display: block;
}

.steps strong {
  font-size: 17px;
  font-weight: 900;
}

.steps small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 5px;
}

.cta-section {
  padding: 30px 0 82px;
}

.cta-box {
  align-items: center;
  background: #071c40;
  border-radius: 20px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px;
}

.cta-box h2 {
  font-weight: 900;
  margin-bottom: 8px;
}

.cta-box p {
  color: rgba(255, 255, 255, .75);
  margin-bottom: 0;
}

.landing-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 992px) {
  .feature-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-link-soft {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 108px 0 56px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    max-width: none;
  }

  .section {
    padding: 58px 0;
  }

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

  .cta-box {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .landing-nav .btn {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

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

  .product-table {
    min-width: 660px;
  }
}

/* Premium Featured Feature Cards */
.bg-gradient-light {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.featured-feature-card {
  background: #ffffff;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.featured-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.featured-feature-card .card-icon {
  width: 60px;
  height: 60px;
  background: var(--soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.featured-feature-card .card-icon i {
  font-size: 28px;
}

.featured-feature-card h4 {
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

.featured-feature-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 20px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-bullets li {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

/* Product Table Toggle styling */
.product-table-container {
  display: none;
  overflow: hidden;
}

.product-table-container.show {
  display: block;
}

#toggleProductTableBtn {
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Floating WhatsApp Button */
.wa-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wa-floating-btn:hover {
  background-color: #20ba5a;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.wa-floating-btn i {
  line-height: 1;
}

/* Pulsing effect */
.wa-floating-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: wa-pulse 1.8s infinite ease-in-out;
  pointer-events: none;
  opacity: 0;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: 75px;
  background-color: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.wa-floating-btn:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Category Title Styling inside Product List */
.category-title-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--primary-soft);
  padding-bottom: 6px;
  margin-top: 15px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* DataTable Custom overrides to match premium theme */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  background-color: #fff !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15) !important;
}

.dataTables_wrapper .paginate_button.page-item.active .page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.dataTables_wrapper .page-link {
  color: var(--primary) !important;
  border-radius: 6px !important;
  margin: 0 2px !important;
  border: 1px solid var(--line) !important;
  font-size: 14px !important;
}

.dataTables_wrapper .page-link:hover {
  background-color: var(--primary-soft) !important;
  color: var(--primary-dark) !important;
}

.dataTables_info {
  font-size: 13px !important;
  color: var(--muted) !important;
}

#productDataTable_wrapper {
  margin-top: 15px;
}

#productDataTable th {
  background-color: var(--soft) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
}

/* PWA Standalone Mode adjustments */
@media all and (display-mode: standalone) {
  .pwa-hide-standalone {
    display: none !important;
  }
}

