/* Add this at the top of your main.css file */
body,
html {
  font-family: "Inter", sans-serif;
}

/* Define colour variables */
:root {
  --primary-color: #9fe870;
  --primary-light: #faf0ca;
  --secondary-color: #2e2f5b;
  --secondary-light: #bcbcd7;
  --text-color: #001c38; /* Default text colour */
  --link-color: #8cdd00; /* Link colour */
  --link-hover-color: #0056b3; /* Link hover colour */
  --footer-bg: #333; /* Footer background */
  --footer-text: #fff; /* Footer text colour */
}

/* Apply the Inter font family globally */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: var(--text-color);
  font-size: 16px;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Resetting some default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Styling for summary table (integrations page) */
/* Desktop - no scroll */
@media (min-width: 1024px) {
  .table-scroll-wrapper {
    position: relative;
  }

  .table-container {
    overflow-x: visible;
  }

  .custom-scrollbar {
    display: none;
  }

  .table-container table {
    min-width: auto;
  }
}

/* Tablet and Mobile - with horizontal scroll */
@media (max-width: 1023px) {
  .table-scroll-wrapper {
    position: relative;
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* Hide default scrollbar */
  .table-container::-webkit-scrollbar {
    display: none;
  }

  .table-container table {
    min-width: 800px;
  }

  /* Custom scrollbar container */
  .custom-scrollbar {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 16px;
  }

  /* Scrollbar track (background) */
  .scrollbar-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #d9d9d9;
    opacity: 0.4;
    border-radius: 4px;
  }

  /* Custom scrollbar thumb (progress indicator) */
  .scrollbar-thumb {
    position: absolute;
    height: 100%;
    background-color: #d9d9d9;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    z-index: 1;
  }
}

.help-card {
  position: relative;
  overflow: hidden;
  min-height: 200px; /* keep card height consistent */
  transition: background 0.3s ease;
}

/* smooth lift of text */
.help-card-content {
  transition: transform 0.35s ease;
}

.help-card:hover .help-card-content {
  transform: translateY(-28px);
}

/* icon sits flush at the bottom */
.help-card-icon {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* FORCE the icon art to visually sit at the bottom */
.help-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

/* fade + rise */
.help-card:hover .help-card-icon {
  opacity: 1;
  transform: translateY(0);
}

/* mobile adjustments */
@media (max-width: 640px) {
  .help-card {
    min-height: 180px;
  }

  .help-card-icon {
    width: 80px;
    height: 80px;
    right: 12px;
  }

  .help-card:hover .help-card-content {
    transform: translateY(-16px);
  }
}

/* Mobile: use hover background as default */
@media (max-width: 768px) {
  /* Getting Started */
  .help-card:nth-child(1) {
    background: #eafbdf !important;
  }

  /* Products & Services Management */
  .help-card:nth-child(2) {
    background: #fff1cc !important;
  }

  /* Store Setup & Customization */
  .help-card:nth-child(3) {
    background: #fff9f3 !important;
  }

  /* Event & Ticket Sales */
  .help-card:nth-child(4) {
    background: #e6fffc !important;
  }

  /* Integrations */
  .help-card:nth-child(5) {
    background: #dcdcff !important;
  }

  /* Payments & Payouts */
  .help-card:nth-child(6) {
    background: #ebf3fc !important;
  }

  /* Also apply hover state behaviors as default on mobile */
  .help-card-content {
    transform: translateY(-16px);
  }

  .help-card-icon {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable hover animation flicker on touch devices */
  .help-card:hover .help-card-content,
  .help-card:hover .help-card-icon {
    transform: none;
  }
}

/* ── Sell Anything Cards ── */
.sell-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  transition: background 0.3s ease;
}

.sell-card-content {
  transition: transform 0.35s ease;
}

.sell-card:hover .sell-card-content {
  transform: translateY(0);
}

.sell-card-icon {
  position: absolute;
  bottom: 0;
  right: 35px;
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.sell-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.sell-card:hover .sell-card-icon {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .sell-card {
    min-height: 180px;
  }

  .sell-card-icon {
    width: 80px;
    height: 80px;
    right: 12px;
  }
}

/* Mobile: apply hover backgrounds as defaults, icon always visible */
@media (max-width: 768px) {
  .sell-card:nth-child(1) {
    background: #f6f6ff !important;
  }
  .sell-card:nth-child(2) {
    background: #eafbdf !important;
  }
  .sell-card:nth-child(3) {
    background: #fdecea !important;
  }
  .sell-card:nth-child(4) {
    background: #e9f2fb !important;
  }
  .sell-card:nth-child(5) {
    background: #fff6f6 !important;
  }
  .sell-card:nth-child(6) {
    background: #fffcec !important;
  }

  /* Icon always shown on mobile, no content shift */
  .sell-card-icon {
    opacity: 1;
    transform: translateY(0);
  }

  .sell-card-content {
    transform: none !important;
  }

  .sell-card:hover .sell-card-content {
    transform: none !important;
  }
}

.support-card {
  position: relative;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

/* content + image hover motion */
.support-card .hover-img {
  display: none;
}

/* On hover swap images */
.support-card:hover .normal-img {
  display: none;
}
.support-card:hover .hover-img {
  display: block;
}

.support-card-content,
.support-card-image {
  transition: transform 0.45s ease;
}

/* Email Support hover */
.support-card:nth-child(1):hover {
  background: radial-gradient(
      95.9% 90.36% at 48.23% 50%,
      #d9eefb 0%,
      rgba(177, 225, 255, 0) 100%
    ),
    #90dcff;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}

/* Live Chat hover */
.support-card:nth-child(2):hover {
  background: radial-gradient(
      121.17% 114.98% at 50% 50%,
      #fff9d5 0%,
      rgba(255, 236, 119, 0) 100%
    ),
    #ffec77;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}

/* Hover motion */
.support-card:hover .support-card-content {
  transform: translateY(48px); /* move down toward center */
}

/* Ensure image sits flush at bottom visually */
.support-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 768px) {
  /* Email default background */
  .support-card .normal-img {
    display: none;
  }
  .support-card .hover-img {
    display: block;
  }

  .support-card:nth-child(1) {
    background: radial-gradient(
        95.9% 90.36% at 48.23% 50%,
        #d9eefb 0%,
        rgba(177, 225, 255, 0) 100%
      ),
      #90dcff;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  }

  /* Live Chat default background */
  .support-card:nth-child(2) {
    background: radial-gradient(
        121.17% 114.98% at 50% 50%,
        #fff9d5 0%,
        rgba(255, 236, 119, 0) 100%
      ),
      #ffec77;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
  }

  /* Default text position (downward shift) */
  .support-card-content {
    transform: translateY(18px);
  }

  /* Disable hover flicker on touch screens */
  .support-card:hover .support-card-content,
  .support-card:hover .support-card-image {
    transform: none; /* keeps mobile motion stable */
  }
}

.benefit-item {
  transition: all 0.3s ease-in-out;
}

.benefit-item:hover {
  color: #000000 !important;
  transform: scale(1.1);
}

/* Styling for headers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.currency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .currency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .currency-grid > *:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .currency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .currency-grid > *:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }
}

.pricing-card-ngn {
  background: radial-gradient(
      ellipse 120% 80% at 20% 0%,
      rgba(134, 239, 172, 0.45) 0%,
      transparent 70%
    ),
    #ffffff;
  border: 1px solid rgba(134, 239, 172, 0.5);
}

.pricing-card-usd {
  background: radial-gradient(
      ellipse 120% 80% at 20% 0%,
      rgba(252, 165, 165, 0.45) 0%,
      transparent 70%
    ),
    #ffffff;
  border: 1px solid rgba(252, 165, 165, 0.4);
}

.pricing-card-gbp {
  background: radial-gradient(
      ellipse 120% 80% at 20% 0%,
      rgba(147, 197, 253, 0.5) 0%,
      transparent 70%
    ),
    #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.5);
}

#credit-amount::-webkit-outer-spin-button,
#credit-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#credit-amount {
  -moz-appearance: textfield;
}

/* FAQ bulleted points */
.faq-answer-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.faq-answer-content li {
  margin-bottom: 0.25rem;
  color: #797979;
  line-height: 1.5;
}

.faq-answer-content p {
  margin-bottom: 0.5rem;
}

.faq-answer-content p:first-child {
  margin-top: 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul:first-child {
  margin-top: 0;
}

.faq-answer-content ul:last-child {
  margin-bottom: 0;
}
