
/* Hero Section - Greatly Enhanced */
.pay-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .pay-hero {
        flex-direction: row;
        align-items: center;
        min-height: 80vh;
        padding: 4rem 2rem;
    }
}

.pay-intro {
    flex: 1;
    padding: 2rem 0;
}

.pay-typewriter {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#cluuex-changing-text {
    display: inline-block;
    font-weight: 800;
}

.pay-desc {
    font-size: 1.2rem;
    color: var(--light-text);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.pay-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pay-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--light-text);
}

.pay-cta {
    display: inline-flex;
    border:none;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--g-branding);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.pay-cta:hover {
    transform: translateY(-2px);
}

/* Enhanced Image Carousel */
.pay-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
}

@media (min-width: 992px) {
    .pay-carousel {
        height: 500px;
    }
}

.pay-carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    height: 100%;
}

.pay-carousel-track img {
    flex: 0 0 auto;
    width: 300px;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-right: 1rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 3 - 3rem)); }
}

/* Countries Section */
.pay-countries {
    text-align: center;
    padding: 2rem 1rem;
}

.pay-countries-title {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.pay-flags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pay-flag {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.pay-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Grid - Side by side layout */
.pay-main-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    width:100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .pay-main-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.pay-services {
    background: var(--card-bg);
    border-radius:15px;
    max-width:100%;
    padding: 20px 10px;
    overflow-x:auto;
    margin-top: 1rem;
}

.pay-category {
    margin-bottom: 2rem;
}

.pay-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--branding);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pay-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
}

.pay-service {
    text-align: center;
    text-decoration: none;
    overflow:hidden;
    transition: transform 0.3s ease;
}

.pay-service:hover {
    transform: translateY(-5px);
}

.pay-service-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--branding);  }

.pay-service-icon img {
    width: 30px;
    height: 30px;
    border-radius:10px;
    object-fit: contain;
}

.pay-service-name {
    font-size:11px;
    color: var(--light-text);
    opacity:0.8;
    white-space:nowrap;
    line-height: 1.1;
}

/* Transactions Panel */
.pay-transactions {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.6rem 10px 1rem;
    margin-top: 1rem;
}

.pay-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--simple-color);
}

.pay-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.pay-tab.active {
    color: var(--branding);
    border-bottom-color: var(--branding);
}

#transaction-container {
    max-height:400px;
    overflow-x:scroll;
}

.pay-transaction-card {
    border-bottom:2px solid var(--simple-color);
    padding:10px;
    margin-bottom: 1rem;
}

.pay-transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pay-transaction-details {
    display: flex;
    white-space:wrap;
    justify-content:space-between;
    gap: 10px;
    font-size: 12px;
}

.pay-transaction-details  div {
    font-size: 12px;
}


.pay-detail-link {
    color:var(--light-text);
    text-decoration: none;
}

.amount-negative {
    color:var(--danger);
    
}

.trans-image {
    height:25px;
    width:25px;
    border-radius:50%;
}

.amount-positive {
    color:var(--success);
    opacity:0.8;
}



.pay-detail-link:hover {
    color:none;
    text-decoration: none;
}

/* Coming Soon Section */
.pay-coming {
    background: var(--card-bg);
    border-top: 3px dashed var(--simple-color);
    padding:10px;
    text-align: left;
    max-width: 500px;
    margin:15px auto;
}


/* Loading Spinner */
.pay-loading {
    text-align: center;
    padding: 1rem;
}

.pay-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--simple-color);
    border-left: 4px solid var(--branding);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pay-load-btn {
    width: 100%;
    padding: 1rem;
    background: var(--g-branding);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

  .cluuepay-showcase {
    padding: 40px 20px;
    margin:50px auto;
    justify-content: center;
    align-items: center;
  }

  /* Grid layout */
  .parent {
    display: grid;
    grid-template-columns: 1fr 0.85fr; /* slightly tighter */
    grid-template-rows: repeat(3, auto);
    gap: 8px; /* reduced gap */
    max-width: 800px;
    margin:35px auto;
    width: 100%;
    align-items: center;
  }

  .div5 {
    grid-row: span 3 / span 3;
    grid-column-start: 2;
    grid-row-start: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .div8 {
    grid-column-start: 1;
    grid-row-start: 3;
  }

  .div9 {
    grid-column-start: 1;
    grid-row-start: 1;
  }

  /* Video */
  .shorts-wrapper {
    width: 100%;
    max-width: 340px; /* smaller video */
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--brand-shadow);
    background: var(--card-bg);
    transition: all 0.4s ease;
  }

  .shorts-wrapper iframe {
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* Texts */
  .heading {
    background: var(--g-branding);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.4rem; /* bigger heading on desktop */
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .parent p {
    color:var(--light-text);
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 420px;
  }

  /* Hover glow */
  .shorts-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(150, 201, 61, 0.5);
  }

  /* Responsive */
  @media (max-width: 1000px) {
    .parent {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      text-align: center;
      margin:30px auto;
    }
    .div5 {
      grid-column: 1;
      grid-row: 2;
    }
    .div9, .div8 {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .shorts-wrapper {
      max-width: 320px;
      margin-top: 15px;
    }
    .heading {
      font-size: 2rem; /* still bold on medium screens */
    }
  }

  @media (max-width: 600px) {
    .heading {
      font-size: 1.7rem; /* larger than before for mobile */
    }
    .parent p {
      font-size: 0.95rem;
    }
    .shorts-wrapper {
      max-width: 280px;
    }
  }

.pay-load-btn:hover {
    opacity: 0.9;  }