/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.header-right .coins {
  display: flex;
  align-items: center;
  background-color: #fff8e1;
  padding: 5px 10px;
  border-radius: 20px;
  color: #ffa000;
  font-weight: 500;
}

.coin-icon {
  color: #ffc107;
  margin-right: 5px;
}

/* Profile Container */
.profile-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.profile-header {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #e0576e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: 500;
}

.profile-details {
  flex: 1;
}

.profile-details h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.profile-details p {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.coins-display {
  display: flex;
  align-items: center;
  margin-top: 15px;
  background-color: #fff8e1;
  padding: 10px 15px;
  border-radius: 8px;
  width: fit-content;
}

.coins-display i {
  color: #ffc107;
  font-size: 24px;
  margin-right: 10px;
}

.coins-display .coin-value {
  font-size: 20px;
  font-weight: bold;
  color: #ffa000;
}

.coins-display .coin-text {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.profile-tab {
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 10px;
}

.profile-tab.active {
  border-bottom: 2px solid #e0576e;
  color: #e0576e;
  font-weight: 500;
}

.tab-content {
  display: none;
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

.tab-section {
  margin-bottom: 30px;
}

.tab-section:last-child {
  margin-bottom: 0;
}

.tab-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.detail-item {
  display: flex;
  margin-bottom: 15px;
}

.detail-label {
  width: 150px;
  font-weight: 500;
  color: #666;
}

.detail-value {
  flex: 1;
  color: #333;
}

.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.address-card:last-child {
  margin-bottom: 0;
}

.address-type {
  display: inline-block;
  background-color: #f0f0f0;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 10px;
}

.address-default {
  display: inline-block;
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 10px;
  margin-left: 10px;
}

.address-actions {
  position: absolute;
  top: 15px;
  right: 15px;
}

.address-actions button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  margin-left: 10px;
}

.address-actions button:hover {
  color: #e0576e;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #e0576e;
  outline: none;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.btn {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: #e0576e;
  color: white;
}

.btn-primary:hover {
  background-color: #c94d61;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #e0576e;
  color: #e0576e;
}

.btn-outline:hover {
  background-color: #fcf0f2;
}

.refer-card {
  background: linear-gradient(135deg, #e0576e, #c94d61);
  border-radius: 8px;
  padding: 25px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

.refer-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.refer-card p {
  margin-bottom: 20px;
  font-size: 15px;
}

.referral-code {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background-color: white;
  color: #e0576e;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  background-color: #f5f5f5;
}

.share-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.share-option {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.share-option:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.orders-list {
  border: 1px solid #eee;
  border-radius: 8px;
}

.order-item {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.order-number {
  font-weight: 500;
}

.order-date {
  color: #666;
  font-size: 14px;
}

.order-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-processing {
  background-color: #fff8e1;
  color: #ffa000;
}

.status-delivered {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.order-total {
  font-weight: 500;
  color: #e0576e;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-details a {
  color: #e0576e;
  text-decoration: none;
  font-size: 14px;
}

.order-details a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  width: 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #555;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .profile-avatar {
    margin: 0 auto;
  }

  .coins-display {
    margin: 15px auto 0;
  }

  .detail-item {
    flex-direction: column;
  }

  .detail-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
/* Add these styles to the profile/style.css file */

/* Referral history styles */
.referral-history {
  margin-top: 15px;
}

.referral-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.referral-user {
  display: flex;
  flex-direction: column;
}

.referral-name {
  font-weight: 600;
  color: #333;
}

.referral-email {
  font-size: 0.85rem;
  color: #666;
  margin-top: 3px;
}

.referral-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.referral-date {
  font-size: 0.85rem;
  color: #666;
}

.referral-status {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 5px;
}

.referral-status.rewarded {
  background-color: #e6f7e6;
  color: #2e7d32;
}

.referral-status.pending {
  background-color: #fff8e1;
  color: #ff8f00;
}

/* Enhance Referral Code */
.referral-code {
  background-color: #f3f4f6;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.referral-code span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #333;
}

.copy-btn {
  background-color: #4c1d95;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #6d28d9;
}

/* Share options enhancement */
.share-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.share-option {
  background-color: #f3f4f6;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.share-option:hover {
  transform: scale(1.1);
}

.share-option i {
  font-size: 1.25rem;
}

.share-option[title="WhatsApp"] {
  color: #25D366;
}

.share-option[title="WhatsApp"]:hover {
  background-color: #e6f7ee;
}

.share-option[title="Facebook"] {
  color: #1877F2;
}

.share-option[title="Facebook"]:hover {
  background-color: #e6f1fe;
}

.share-option[title="Twitter"] {
  color: #1DA1F2;
}

.share-option[title="Twitter"]:hover {
  background-color: #e6f5fe;
}

.share-option[title="Email"] {
  color: #EA4335;
}

.share-option[title="Email"]:hover {
  background-color: #feeae6;
}

.refer-card {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: center;
}

.refer-card h2 {
  color: white;
  margin-bottom: 15px;
}

.refer-card p {
  margin-bottom: 20px;
  color: #ffeaea;
}
/* Bottom Navigation (Mobile) */
.bottom-nav {
  /* display: none; */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.bottom-nav-menu {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  font-size: 12px;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 5px;
}

.bottom-nav-item.active {
  color: #e0576e;
}
