/* Global Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

.error {
  font-size: 14px;
  color: red;
}


.side-menu {
  position: fixed;
  top: 80px;
  left: -250px;
  width: 220px;
  height: 100%;
  background-color: gray;
  padding: 60px 20px 20px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-menu.active {
  left: 0;
}

.modal-action-btn {
  background: black;
  width: 180px;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-action-btn:hover {
  background: #0056b3;
}

#popup {
    position: fixed;
    width: 90%;
    height: 50%;
    background-color: floralwhite;
    display: none;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#popup p{
    text-align: left;
    padding-left: 3px;
}

.popop-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    text-align: left;
}

body {
    background: whitesmoke;
    color: #333;
    line-height: 1.6;
    animation: animate 15s ease infinite;
}

.hidden {
  display: none;
}

a[href^="mailto"] {
  background-color: #f0f0f0;
  color: #007bff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid #ddd;
}

a[href^="tel"] {
  background-color: #e0f7fa;
  color: #007bff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid #ddd;
}

a[href^="https://chat.whatsapp.com"] {
  background-color: #25D366;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  border: 1px solid #1DA855;
}



a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img{
    width: 100%;
    height: 35px;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Main Content Styles */
main {
    padding: 2rem;
    padding-bottom: 80px; /* Space for fixed nav */
    min-height: calc(100vh - 120px);
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.balance-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    background: url('../images/home1.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.balance-card h3 {
    margin-bottom: 1rem;
    color: black;
    font-size: 30px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: maroon;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.balance-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

#recharge-btn {
    background-color: var(--success-color);
    color: whitesmoke;
}

#withdraw-btn {
    background-color: black;
    color: whitesmoke;
}

#upgrade-btn {
    background-color: black;
    color: whitesmoke;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    border-radius: 10px;
    background-color: #A39161;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-card h4 {
    color: whitesmoke;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: purple;
}

.welcome-message {
    background-color: aliceblue;
    font-weight: strong;
    font-size: 18px;
    color: black;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.welcome-message img {
    height: 150px;
    width: 250px;
    border-radius: 8px;
}

.welcome-message h2 {
    margin-bottom: 1rem;
    color: darkmagenta;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-hidden {
    display: none;
}

.modal-content {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-content button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.modal-content button[type="submit"]:hover {
    background-color: #3a5bef;
}
#confirm-vip-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

#confirm-vip-btn {
    background-color: #3a5bef;
}

.payment-numbers {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.payment-numbers p {
    margin-bottom: 0.5rem;
}

/* Fixed Navigation */
.fixed-nav {
    position: fixed;
    bottom: 0;
    height: 65px;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.nav-btn.active {
    color: black;
}

.nav-btn:hover {
    color: black;
}

/* Products Page */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
}

.products-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.products-description {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: gray;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card h3 {
    color: black;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.product-profit {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-features {
    margin-bottom: 1.5rem;
}

.product-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-features li i {
    margin-right: 0.5rem;
    color: var(--success-color);
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: green;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background-color: #3a5bef;
}

/* About Page */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 2fr;
    }
}

.about-image {
    background-color: var(--light-gray);
    border-radius: 10px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 400%; /* 4 images = 400% */
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: 16s slider infinite;
    display: flex;
}

.image-placeholder img {
    width: 25%; /* Each image takes 25% of the container */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes slider {
    0% {
        left: 0;
    }
    20% {
        left: 0;
    }
    25% {
        left: -100%;
    }
    45% {
        left: -100%;
    }
    50% {
        left: -200%;
    }
    70% {
        left: -200%;
    }
    75% {
        left: -300%;
    }
    95% {
        left: -300%;
    }
    100% {
        left: 0;
    }
}

/* Optional: Add hover pause */
.about-image:hover .image-placeholder {
    animation-play-state: paused;
}


.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Profile Page */
.profile-section {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    background-color: honeydew;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-size: 100% 100%;
    background-position: center;
}

.profile-avatar {
    font-size: 4rem;
    color: black;
}

.profile-info h2 {
    margin-bottom: 0.5rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-actions button {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

#edit-profile-btn {
    background-color: var(--primary-color);
    color: white;
}

#delete-account-btn {
    background-color: var(--danger-color);
    color: white;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .profile-details {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.detail-label {
    color: var(--secondary-color);
}

.detail-value {
    font-weight: 600;
}

.referral-share {
    margin-top: 2rem;
}

.referral-share p {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn i {
    font-size: 1.2rem;
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: white;
}

.share-btn.copy {
    background-color: var(--secondary-color);
    color: white;
}

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-type {
    font-weight: 600;
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

.transaction-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Auth Pages */

.auth-container {
    min-height: 100vh;
    display: flex;
    font-size: 16px;
    justify-content: center;
    background-color: #f5f7fa;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    background-color: floralwhite;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-card .logo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.auth-btn:hover {
    background-color: #3a5bef;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
        padding-bottom: 70px;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .fixed-nav span {
        display: none;
    }
    
    .nav-btn i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
}


.product-card {
    display: flex;
    background-color: honeydew;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image-container {
    position: relative;
    height: 200px;
    border-left: 1px solid lawngreen;
    border-bottom: 1px solid lawngreen;
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: black;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.product-details {
    padding: 20px;
    background-color: honeydew;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-price, .product-profit, .product-cycle {
    margin: 5px 0;
    font-weight: 500;
}

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

.product-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--success);
    margin-right: 8px;
}
.vip-badge{
    color: black;
}

  .recharge-section {
    color: white;
    font-size: 16px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background-color: gray;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .recharge-list {
    position: absolute;
    top: 0;
    left: 4px;
    animation: scroll-up 8s linear infinite;
  }

  @keyframes scroll-up {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-100%);
    }
  }

.recharge-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.withdraw-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.vip-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.recharge-modal.modal-hidden {
  display: none;
}
.withdraw-modal.modal-hidden {
  display: none;
}
.vip-modal.modal-hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
}
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.edit-modal.modal-hidden {
  display: none;
}
#logout-btn {
  display: inline-block;
  color: #fff;
  background-color: #dc3545;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#logout-btn:hover {
  background-color: #bd2130;
}


