    :root {
      --primary-color: #28a745;
      --secondary-color: #218838;
      --text-color: #333;
      --light-gray: #f5f7fa;
      --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      --border-radius: 12px;
            --primary-color: #28a745;
      --primary-dark: #00A041;
      --secondary-color: #F8F9FA;
      --text-primary: #1A1A1A;
      --text-secondary: #6C757D;
      --text-muted: #9CA3AF;
      --border-color: #E5E7EB;
      --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
      --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07);
      --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --spacing-xs: 4px;
      --spacing-sm: 8px;
      --spacing-md: 12px;
      --spacing-lg: 16px;
      --spacing-xl: 20px;
      --spacing-2xl: 24px;
      --gradient-primary: linear-gradient(135deg, #00C851 0%, #00A041 100%);
      --gradient-bg: linear-gradient(180deg, #FAFBFC 0%, #F8F9FA 100%);
    }


/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
  line-height: 1.6;
  color: #333;
}

    /* Header Styles */
    .header {
      background: #fff;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-color);
      padding: var(--spacing-lg) var(--spacing-xl);
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .header-title {
      font-size: 20px;
      font-weight: 600;
      color: #28a745;
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: var(--spacing-md);
    }

    .profile-avatar {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border-radius: 50%;
      border: 2px solid var(--border-color);
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .profile-avatar:hover {
      border-color: var(--primary-color);
      transform: scale(1.05);
    }

    .search-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--secondary-color);
      border: 1px solid #28a745;
      display: flex;
      color: #28a745;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
    }

    .search-btn:hover {
      background: #28a745;
      color: white;
      transform: translateY(-1px);
      box-shadow: var(--shadow-medium);
    }
    
#navbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: white;
  box-shadow: 0 0 10px #ddd;
  z-index: 1000;
  display: flex; /* Added for proper alignment */
  justify-content: center;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: all 0.3s ease-in-out;
}

/* Desktop: Move to top-right */
@media (min-width: 900px) {
  #navbar {
    top: -4px;
    bottom: auto;
    left: auto;
    right: 0px;
    transform: none;
    max-width: 400px;
    background-color: transparent;
    box-shadow: none;
  }
}

@media (min-width: 900px) {
  #navbar a span:not(.notification-badge):not(.icon-with-badge) {
    display: none;
  }
}

#navbar ul {
  display: flex;
  max-width: 900px;
  justify-content: center;
  padding: 10px 0;
  list-style: none;
  margin: 0 auto;
  width: 100%;
}

#navbar li {
  flex: 1;
  text-align: center;
}

#navbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #28a745;
  font-size: 12px;
  padding: 8px;
  transition: color 0.2s;
}

#navbar a.active {
  color: #28a745;
  font-weight: 500;
}

#navbar i.active {
  color: #28a745;
  font-weight: 500;
}

#navbar a i {
  font-size: 14px;
  margin-bottom: 5px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 10px #ddd;
  padding: 10px;
  height: 35px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.icon-badge-wrapper {
  position: relative;
  display: inline-block;
}

.icon-with-badge {
  position: relative;
  display: inline-block;
}

/* Notification badge (already provided by you, kept intact) */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}


/* Tab Navigation */
.tabs {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 25px;
  margin: 0 12px;
  font-weight: 500;
  font-size: 14px;
  color: #28a745;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 100%);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.tab:hover::before {
  left: 100%;
}

.tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
  border-color: rgba(40, 167, 69, 0.2);
}

.tab.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  transform: translateY(-2px);
}

    .transaction-card {
      background: white;
      margin: 10px;
      border-radius: 10px;
      padding: 15px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .transaction-card img {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 5px;
      margin-right: 10px;
    }
    .transaction-content {
      display: flex;
      align-items: center;
    }
    .transaction-details {
      flex: 1;
    }
    .transaction-details h4 {
      margin-bottom: 5px;
      font-size: 16px;
    }
    .transaction-details p {
      font-size: 14px;
      color: #555;
    }

/* Enhanced Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.badge.pending {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-color: #f0ad4e;
}

.badge.released {
  background: linear-gradient(135deg, #d4edda 0%, #b8e6b8 100%);
  color: #155724;
  border-color: #28a745;
}

.badge.refund-requested {
  background: linear-gradient(135deg, #f8d7da 0%, #f5b7b1 100%);
  color: #721c24;
  border-color: #dc3545;
}

    .confirm-btn, .refund-btn, .cancel-btn{
      margin-top: 10px;
      border: none;
      padding: 8px 12px;
      border-radius: 5px;
      font-size: 14px;
      cursor: pointer;
    }
    .confirm-btn { background-color: #28a745; color: white; }
    .confirm-btn:hover { background-color: #218838; }
    .refund-btn { background-color: #dc3545; color: white; }
    .refund-btn:hover { background-color: #c82333; }
    .cancel-btn{
         background-color: #28a745;
         color: #fff;
    }
.confirm-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.refund-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.refund-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.cancel-btn {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* No Transactions State */
#no-transactions {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Deal User Info */
.deal-user-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
  margin-top: 12px;
  color: #495057;
  font-weight: 500;
}

/* Sidebar Styles */
.side-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  height: 100vh;
  width: 75%;
  max-width: 320px;
  backdrop-filter: blur(10px);
}

.side-bar h1 {
  margin: 24px 0 16px 16px;
  font-size: 24px;
  font-weight: 700;
  color: #28a745;
}

.side-bar ul {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  margin-left: 8px;
}

.side-bar li {
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-bar li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 100%);
}

.side-bar a {
  text-decoration: none;
  color: #28a745;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.side-bar a:hover {
  color: #1e7e34;
}

.side-bar i {
  margin-right: 16px;
  font-size: 18px;
}

/* Profile Section */
.profile-sec {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-sec img {
  border: 2px solid #28a745;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.profile-sec img:hover {
  transform: scale(1.1);
}

/* Menu Icon */
.menu-icon {
  color: #28a745;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

/* Toast Notifications */
.toast {
  visibility: hidden;
  min-width: 250px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 16px 20px;
  position: fixed;
  z-index: 10001;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
  transform: translateX(-50%) translateY(0);
}

.snackbar {
  visibility: hidden;
  min-width: 280px;
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 16px 24px;
  position: fixed;
  left: 50%;
  bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.snackbar.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Form Elements */
#refundReason {
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  transition: border-color 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
}

#refundReason:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Enhanced Skeleton Loader */
.skeleton-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skeleton-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skeleton-image {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
}

.skeleton-details {
  flex: 1;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 65%;
}

.skeleton-line.badge {
  width: 35%;
  height: 24px;
  border-radius: 20px;
  margin-top: 8px;
}

.skeleton-line.button {
  width: 45%;
  height: 36px;
  border-radius: 8px;
  margin-top: 12px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced Modal Styles */
#otpModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(5px) !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 10000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  padding: 32px !important;
  border-radius: 16px !important;
  width: 350px !important;
  max-width: 90% !important;
  text-align: center !important;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  opacity: 1 !important;
  visibility: visible !important;
 
}

.modal-content input {
  width: 100% !important;
  margin-bottom: 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  border: 2px solid #e9ecef !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  transition: border-color 0.3s ease !important;
}

.modal-content input:focus {
  outline: none !important;
  border-color: #28a745 !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.modal-content button {
  padding: 12px 24px !important;
  margin: 8px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.modal-content button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
}

.modal-content button:last-child {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.modal-content button:last-child:hover {
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4) !important;
}

/* Success Modal */
.success-modal {
  padding: 40px !important;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.success-icon {
  font-size: 64px;
  color: #28a745;
  margin-bottom: 20px;
  animation: successPulse 0.6s ease-in-out;
}

.success-modal h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  background: none !important;
  box-shadow: none !important;
  position: static !important;
  padding: 0 !important;
}

.success-modal p {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.success-btn:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Processing Button */
.processing-btn {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
  cursor: not-allowed !important;
  position: relative;
  color: transparent !important;
  transform: none !important;
}

.processing-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Animations */
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .transaction-card {
    margin: 12px 8px;
    padding: 16px;
  }
  
  .tabs {
    padding: 12px 8px;
  }
  
  .tab {
    padding: 10px 16px;
    margin: 0 4px;
    font-size: 13px;
  }
  
  .modal-content {
    width: 320px !important;
    padding: 24px !important;
  }
  
  .success-modal {
    padding: 32px !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Indicators */
.tab:focus,
.confirm-btn:focus,
.refund-btn:focus,
.cancel-btn:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .transaction-card {
    border: 2px solid #000;
  }
  
  .badge {
    border-width: 2px;
  }
}