/* =============================================
   BolaTV - Custom Styles
   Inspired by bolatv.store design
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #F5F8FC 0%, #ffffff 55%, #EEF3FA 100%);
  color: #0E1F16;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.app-header {
  background: #0B2E1A;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0F7A3D, #9BE15D);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.brand-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ---- Hero Section ---- */
.hero-section {
  background: linear-gradient(135deg, #0B2E1A 0%, #0F7A3D 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(46, 125, 80, 0.5) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(15, 122, 61, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-badge i {
  font-size: 12px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #9BE15D, #F2C94C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ---- Section Common ---- */
.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.section-heading p {
  font-size: 18px;
  color: #4B5563;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Products Section ---- */
.products-section {
  padding: 80px 0;
  background: #F7F9F8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Product Card ---- */
.product-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-card.featured {
  transform: scale(1.05);
  border: 2px solid #0F7A3D;
  box-shadow: 0 8px 32px rgba(15, 122, 61, 0.15);
}

.product-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #0F7A3D;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-badge.dark {
  background: #0B2E1A;
}

.product-card-body {
  padding: 32px 28px 24px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 4px;
}

.product-card-body .plan-subtitle {
  font-size: 14px;
  color: #4B5563;
  margin: 0 0 20px;
}

.product-price {
  margin-bottom: 24px;
}

.product-price .price-amount {
  font-size: 42px;
  font-weight: 800;
  color: #0E1F16;
  letter-spacing: -2px;
  line-height: 1;
}

.product-price .price-currency {
  font-size: 24px;
  font-weight: 600;
  vertical-align: super;
  color: #4B5563;
}

.product-price .price-period {
  font-size: 16px;
  color: #4B5563;
  font-weight: 400;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #F3F4F6;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li i {
  color: #0F7A3D;
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.product-card-footer {
  padding: 0 28px 32px;
}

/* ---- Buttons ---- */
.btn-subscribe {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(90deg, #0F7A3D, #0E8A43);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 122, 61, 0.3);
}

.btn-subscribe:hover {
  background: linear-gradient(90deg, #0E8A43, #0F7A3D);
  box-shadow: 0 6px 20px rgba(15, 122, 61, 0.4);
  transform: translateY(-1px);
}

.btn-subscribe:active {
  transform: translateY(0);
}

.btn-subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #0F7A3D;
  border: 2px solid #0F7A3D;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #0F7A3D;
  color: white;
}

/* ---- Device Section ---- */
.device-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 32px auto 0;
}

.device-item {
  padding: 24px;
  border-radius: 12px;
  background: #F7F9F8;
  transition: transform 0.2s;
}

.device-item:hover {
  transform: translateY(-2px);
}

.device-item i {
  font-size: 36px;
  color: #0F7A3D;
  margin-bottom: 16px;
}

.device-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0E1F16;
  margin: 0 0 8px;
}

.device-item p {
  font-size: 14px;
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
}

/* ---- Footer ---- */
.app-footer {
  background: #0B2E1A;
  padding: 48px 0 32px;
  color: #E6EFE9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #B9C7C0;
  margin: 12px 0 0;
}

.footer-column h5 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #B9C7C0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #B9C7C0;
}

.footer-slogan {
  font-size: 13px;
  color: #9BE15D;
  font-weight: 500;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F7A3D, #0E8A43);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(15, 122, 61, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15, 122, 61, 0.5);
  color: white;
}

/* ---- Shiny Modal Overrides ---- */
.modal-dialog {
  max-width: 480px !important;
}

.modal-content {
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Modal header — Shiny generates this via the title parameter */
.modal-header {
  background: linear-gradient(135deg, #0B2E1A, #0F7A3D) !important;
  color: white !important;
  padding: 20px 28px !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.modal-header .modal-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: white !important;
  line-height: 1.3 !important;
}

.modal-header .close {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.modal-header .close:hover {
  color: white !important;
  opacity: 1 !important;
}

/* Custom modal title (our wrapper inside the Shiny title) */
.custom-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

/* Modal body */
.modal-body {
  padding: 28px !important;
}

/* Modal footer */
.modal-footer {
  padding: 16px 28px 24px !important;
  border-top: 1px solid #F3F4F6 !important;
  display: block !important;
  text-align: center !important;
}

.modal-actions {
  display: block;
  width: 100%;
}

.modal-actions .btn-subscribe {
  display: block;
  width: 100%;
}

/* Backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ---- Payment Step Styles ---- */
.payment-summary {
  background: #F7F9F8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.payment-summary .row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 14px;
}

.payment-summary .row-item:last-child {
  border-bottom: none;
}

.payment-summary .row-label {
  color: #4B5563;
}

.payment-summary .row-value {
  font-weight: 600;
  color: #0E1F16;
}

.payment-summary .total-row {
  font-size: 18px;
  font-weight: 700;
  color: #0F7A3D;
  border-top: 2px solid #0F7A3D;
  margin-top: 8px;
  padding-top: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #DCE6DF;
  border-radius: 10px;
  font-size: 15px;
  color: #0E1F16;
  background: #F9FAFB;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #0F7A3D;
  box-shadow: 0 0 0 3px rgba(15, 122, 61, 0.15);
}

.form-control.error {
  border-color: #DC3545;
}

.error-text {
  color: #DC3545;
  font-size: 13px;
  margin-top: 4px;
}

/* ---- Processing State ---- */
.processing-state {
  text-align: center;
  padding: 32px 0;
}

.spinner-wrapper {
  margin-bottom: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #E5E7EB;
  border-top: 4px solid #0F7A3D;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Success Result ---- */
.success-state {
  text-align: center;
  padding: 16px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: white;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.code-display {
  background: #F3F8F5;
  border: 2px dashed #0F7A3D;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}

.code-display .code-label {
  font-size: 12px;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.code-display .code-value {
  font-size: 28px;
  font-weight: 800;
  color: #0F7A3D;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.success-message {
  font-size: 15px;
  color: #4B5563;
  margin-top: 16px;
  line-height: 1.6;
}

/* ---- Error State ---- */
.error-state {
  text-align: center;
  padding: 16px 0;
}

.error-icon {
  font-size: 56px;
  color: #DC3545;
  margin-bottom: 16px;
}

.error-message {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 24px;
}

/* ---- Trial Banner ---- */
.trial-banner {
  background: linear-gradient(135deg, #0B2E1A, #0F7A3D);
  padding: 60px 0;
  text-align: center;
}

.trial-banner h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 12px;
}

.trial-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-trial {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: #0F7A3D;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-trial:hover {
  background: #F3F8F5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 16px;
  }

  .product-card.featured {
    transform: none;
  }

  .product-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    padding: 0 16px;
  }

  .hero-section {
    padding: 60px 0 80px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .device-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .product-card.featured {
    transform: none;
  }

  .modal-dialog {
    margin: 8px;
  }

  .modal-body {
    padding: 24px !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.gap-8 {
  gap: 8px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Shiny Specific Fixes ---- */
.shiny-output-error {
  display: none !important;
}

.shiny-output-error:before {
  display: none !important;
}

/* Hide Shiny notifications by default, show only ours */
.shiny-notification {
  display: none;
}

/* =============================================
   TAB NAVIGATION
   ============================================= */
.tab-nav {
  background: #0E3F28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 68px;
  z-index: 99;
}

.tab-nav-inner {
  display: flex;
  gap: 0;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  user-select: none;
}

.tab-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.tab-item.active {
  color: #9BE15D;
  border-bottom-color: #9BE15D;
  background: rgba(155, 225, 93, 0.08);
}

.tab-item i {
  font-size: 16px;
}

/* ---- Tab Content ---- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ---- Category Sections ---- */
.products-page {
  padding: 60px 0 80px;
  background: #F7F9F8;
}

.category-section {
  margin-bottom: 48px;
}

.category-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #DCE6DF;
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0;
}

.category-count {
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

/* ---- Products Grid (1 column — one product per row) ---- */
.products-grid-1col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Product Card ---- */
.product-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 16px;
}

.product-card-logo {
  flex-shrink: 0;
}

.product-card-logo-img,
.download-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #F7F9F8;
}

.product-card-logo-letter,
.download-card-logo-letter {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F7A3D, #9BE15D);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 4px;
}

.product-card-info p {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Plan Tiers inside Product Card ---- */
.product-card-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 20px 24px;
}

.plan-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 12px;
  background: #F7F9F8;
  border: 1px solid #ECF0ED;
  transition: border-color 0.2s, transform 0.2s;
}

.plan-tier:hover {
  border-color: #0F7A3D;
}

.plan-tier-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-tier-price {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.plan-tier-price .currency {
  font-size: 16px;
  font-weight: 600;
  color: #4B5563;
}

.plan-tier-price .amount {
  font-size: 28px;
  font-weight: 800;
  color: #0E1F16;
  letter-spacing: -1px;
}

.btn-plan {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: #0F7A3D;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-plan:hover {
  background: #0E8A43;
  transform: translateY(-1px);
}

.btn-plan-featured {
  background: linear-gradient(90deg, #0F7A3D, #0E8A43);
  box-shadow: 0 3px 10px rgba(15, 122, 61, 0.3);
}

.btn-plan-featured:hover {
  box-shadow: 0 5px 16px rgba(15, 122, 61, 0.4);
}

.btn-plan-soldout {
  background: #9CA3AF;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-plan-soldout:hover {
  background: #9CA3AF;
  box-shadow: none;
  transform: none;
}

/* =============================================
   DOWNLOADS PAGE
   ============================================= */
.downloads-page {
  padding: 60px 0 80px;
  background: #F7F9F8;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.download-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.download-card-logo-wrap {
  margin-bottom: 16px;
}

.download-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 12px;
}

.download-card-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0 0 20px;
  flex: 1;
  max-width: 320px;
}

.btn-download {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg, #0F7A3D, #0E8A43);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 122, 61, 0.3);
}

.btn-download:hover {
  background: linear-gradient(90deg, #0E8A43, #0F7A3D);
  box-shadow: 0 6px 20px rgba(15, 122, 61, 0.4);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* =============================================
   BE RESELLER PAGE
   ============================================= */
.reseller-page {
  background: #F7F9F8;
}

/* Hero */
.reseller-hero {
  background: linear-gradient(135deg, #0B2E1A 0%, #0F7A3D 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  text-align: center;
}

.reseller-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(46, 125, 80, 0.5) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(15, 122, 61, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

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

.reseller-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.reseller-hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.reseller-hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* Contact Section */
.reseller-contact {
  padding: 60px 0;
  background: #ffffff;
}

.reseller-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.reseller-contact-card {
  background: #F7F9F8;
  border: 1px solid #ECF0ED;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reseller-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F7A3D, #0E8A43);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: white;
}

.reseller-contact-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 8px;
}

.contact-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 12px;
}

.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: #0F7A3D;
  margin: 0 0 20px;
  word-break: break-all;
}

.btn-contact {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, #0F7A3D, #0E8A43);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 122, 61, 0.3);
}

.btn-contact:hover {
  background: linear-gradient(90deg, #0E8A43, #0F7A3D);
  box-shadow: 0 6px 20px rgba(15, 122, 61, 0.4);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Benefits Section */
.reseller-benefits {
  padding: 60px 0 80px;
  background: #F7F9F8;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F7A3D, #9BE15D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: white;
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 8px;
}

.benefit-card p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   RESPONSIVE — TABBED LAYOUT
   ============================================= */
@media (max-width: 1024px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reseller-hero-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .tab-nav {
    top: 62px;
    overflow-x: auto;
  }

  .tab-item {
    padding: 14px 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  .products-grid-1col {
    grid-template-columns: 1fr;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .product-card-plans {
    gap: 6px;
    padding: 8px 12px 16px;
  }

  .plan-tier-price .amount {
    font-size: 18px;
  }

  .reseller-contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .reseller-hero-title {
    font-size: 28px;
  }

  .reseller-hero {
    padding: 50px 0 60px;
  }
}

@media (max-width: 480px) {
  .product-card-header {
    flex-direction: column;
    text-align: center;
  }

  .product-card-plans {
    grid-template-columns: 1fr;
  }

  .plan-tier {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
  }
}

/* =============================================
   WHY US PAGE
   ============================================= */
.whyus-page {
  background: #F7F9F8;
}

/* Hero */
.whyus-hero {
  background: linear-gradient(135deg, #0B2E1A 0%, #0F7A3D 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  text-align: center;
}

.whyus-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(46, 125, 80, 0.5) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(15, 122, 61, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

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

.whyus-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.whyus-description {
  max-width: 600px;
  margin: 0 auto;
}

.whyus-description p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0 0 8px;
}

.whyus-description p:last-child {
  margin-bottom: 0;
}

/* Brands Section */
.whyus-brands {
  padding: 60px 0;
  background: #ffffff;
}

.brands-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.brands-cat-card {
  background: #F7F9F8;
  border: 1px solid #ECF0ED;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brands-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.brands-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F7A3D, #9BE15D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: white;
}

.brands-cat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 8px;
}

.brands-cat-card p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* Promise Section */
.whyus-promise {
  padding: 60px 0 80px;
  background: #F7F9F8;
}

.promise-card {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 48px 40px;
  text-align: center;
}

.promise-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F7A3D, #9BE15D);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

.promise-card h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0E1F16;
  margin: 0 0 12px;
}

.promise-tagline {
  font-size: 18px;
  font-weight: 600;
  color: #0F7A3D;
  margin: 0 0 16px;
}

.promise-text {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}

/* Responsive Why Us */
@media (max-width: 768px) {
  .whyus-title {
    font-size: 32px;
  }

  .brands-categories {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .promise-card {
    padding: 32px 24px;
  }

  .promise-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .whyus-title {
    font-size: 26px;
  }

  .whyus-hero {
    padding: 50px 0 60px;
  }
}
