
html {
  font-size: 13px;
}

@media (max-width: 1200px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 10px;
  }
}

body {
  background-image: url('../assets/FreentBG.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.user-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFD700;
  font-weight: 600;
  margin-right: 1rem;
}

.user-indicator i {
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
}

.tracking-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.tracking-card {
  background: rgb(22 22 22 / 74%);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 2px solid #FFD700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.notifications-card {
  background: rgb(22 22 22 / 74%);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 2px solid #FFD700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.notifications-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-badge {
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-weight: 600;
}

.mark-all-read {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mark-all-read:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
  transform: translateX(4px);
}

.notification-item.unread {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.08);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #FFD700;
  border-radius: 0 4px 4px 0;
}

.notification-header-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.notification-title {
  color: #FFD700;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-time {
  color: #aaa;
  font-size: 0.8rem;
}

.notification-message {
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.notification-order-id {
  color: #FFD700;
  font-size: 0.85rem;
  font-weight: 600;
}

.notification-eta {
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-eta i {
  font-size: 0.75rem;
}

.no-notifications {
  text-align: center;
  padding: 3rem 1rem;
  color: #aaa;
}

.no-notifications i {
  font-size: 3rem;
  color: rgba(255, 215, 0, 0.3);
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #aaa;
  margin-bottom: 2rem;
}

.search-section {
  background: rgb(22 22 22 / 74%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.search-label {
  display: block;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.search-input-group {
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid #FFD700;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.track-button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.track-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.order-details-card {
  background: rgb(22 22 22 / 74%);
  border: 1px solid #FFD700;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.order-details-card h3 {
  color: #FFD700;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  color: #aaa;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.detail-value.highlight {
  color: #10b981;
  font-size: 1.5rem;
}

/* Status Timeline */
.status-timeline {
  background: rgb(22 22 22 / 74%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
}

.timeline-title {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.horizontal-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 140px;
  padding: 0 0.5rem;
}

.timeline-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

.timeline-step.active .timeline-icon {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-color: #FFD700;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulse 2s infinite;
}

.timeline-step.completed .timeline-icon,
.timeline-step.active.completed .timeline-icon {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
  animation: none !important;
}

/* Declined status styling */
.timeline-step.declined .timeline-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: #fff;
  animation: declinedPulse 2s infinite;
}

.timeline-step.declined .timeline-label {
  color: #ef4444;
  font-weight: 700;
}

.timeline-step.declined .timeline-timestamp {
  color: #ef4444;
  
}

/* Cancelled status styling */
.timeline-step.cancelled .timeline-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: #fff;
  animation: declinedPulse 2s infinite;
}

.timeline-step.cancelled .timeline-icon i {
  color: white;
}

.timeline-step.cancelled .timeline-label {
  color: #ef4444;
  font-weight: 700;
}

.timeline-step.cancelled .timeline-timestamp {
  color: #ef4444;
}

@keyframes declinedPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
  }
}

.timeline-label {
  font-size: 1rem;
  color: #aaa;
  text-align: center;
  font-weight: 600;
  max-width: 120px;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.timeline-step.active .timeline-label {
  color: #FFD700;
}

.timeline-connector {
  flex: 1;
  height: 6px;
  background: rgba(85, 85, 85, 0.5);
  margin: 0 -1rem;
  position: relative;
  border-radius: 3px;
  min-width: 30px;
  margin-top: 32px;
  flex-shrink: 0;
}

.timeline-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(85, 85, 85, 0.3);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 3px;
}

.timeline-connector.completed::after {
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.timeline-connector.in-progress::after {
  width: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

.status-content {
  flex: 1;
}

.status-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.status-step.active .status-title {
  color: #FFD700;
  font-size: 1.8rem;
}

.status-description {
  font-size: 1.2rem;  
  color: #aaa;
  line-height: 2;
}

.order-not-found {
  text-align: center;
  padding: 3rem;
  color: #aaa;
}

.not-found-icon {
  font-size: 4rem;
  color: #FFD700;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  color: #fff;
  transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 768px) {
  .tracking-card {
    padding: 1.5rem;
  }

  .notifications-card {
    padding: 1.5rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .track-button {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-timeline {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }
  
  .timeline-step {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .timeline-label {
    text-align: left;
    max-width: none;
    font-size: 0.9rem;
  }
  
  .timeline-timestamp {
    font-size: 0.8rem;
  }
  
  .timeline-eta {
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
  }

  .notifications-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .mark-all-read {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tracking-container {
    padding: 0 0.5rem;
  }

  .tracking-card,
  .notifications-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .notification-item {
    padding: 1rem;
  }

  .timeline-icon {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

/* Search Suggestions */
.search-wrapper {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFD700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

.suggestion-item:hover {
  background: rgba(255, 215, 0, 0.1);
  padding-left: 1.25rem;
}

.suggestion-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.suggestion-item .suggestion-text {
  flex: 1;
}

.suggestion-item .suggestion-category {
  font-size: 0.75rem;
  color: #aaa;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.no-results {
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}


/* Timeline Timestamp */
.timeline-timestamp {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: center;
  min-height: 1rem;
  line-height: 1.3;
}

.timeline-step.active .timeline-timestamp,
.timeline-step.completed .timeline-timestamp {
  color: #FFD700;
  font-weight: 600;
}

/* Timeline ETA */
.timeline-eta {
  font-size: 0.9rem;
  color: #3b82f6;
  margin-top: 0.4rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.timeline-step.active .timeline-eta {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}


/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  .order-card {
    padding: 1rem;
  }

  .order-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .order-id {
    font-size: 1rem;
  }

  .order-status {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .order-details-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .order-detail-item {
    padding: 0.5rem;
  }

  .order-timeline {
    padding: 1rem;
  }

  .timeline-step {
    padding-left: 2rem;
  }

  .timeline-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .timeline-content h4 {
    font-size: 0.9rem;
  }

  .timeline-content p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .order-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .order-id {
    font-size: 0.9rem;
  }

  .order-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .order-detail-item {
    padding: 0.4rem;
  }

  .order-detail-label {
    font-size: 0.7rem;
  }

  .order-detail-value {
    font-size: 0.85rem;
  }

  .order-timeline {
    padding: 0.75rem;
  }

  .timeline-step {
    padding-left: 1.5rem;
  }

  .timeline-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    left: -15px;
  }

  .timeline-content h4 {
    font-size: 0.85rem;
  }

  .timeline-content p {
    font-size: 0.7rem;
  }
}

/* Payment Modal Styles - Theme Compatible */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  overflow-y: auto;
}

.payment-modal {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #FFD700;
  color: #FFD700;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #FFD700;
  color: #000;
  transform: rotate(90deg);
}

.payment-modal-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.payment-modal-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #FFD700;
  animation: pulse 2s infinite;
}

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

.payment-modal-header h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  color: #FFD700;
}

.payment-modal-body {
  background: transparent;
  padding: 2rem;
  color: #fff;
}

.payment-info {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.payment-detail:last-child {
  margin-bottom: 0;
}

.payment-label {
  font-weight: 600;
  color: #aaa;
  font-size: 1rem;
}

.payment-value {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.payment-amount {
  color: #FFD700;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.payment-method-section {
  margin-bottom: 1.5rem;
}

.payment-method-section h3 {
  font-size: 1.3rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-section h3 i {
  color: #FFD700;
}

.payment-instructions {
  color: #ddd;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.qr-code-placeholder {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  width: 200px;
  height: 200px;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000 !important;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
  border: 3px solid #FFD700;
}

.qr-code-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #000 !important;
}

.qr-code-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #000 !important;
}

.qr-code-placeholder small {
  font-size: 0.8rem;
  opacity: 0.9;
  color: #000 !important;
}

.payment-details-box {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.payment-details-box h4 {
  font-size: 1.1rem;
  color: #FFD700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-details-box h4 i {
  color: #FFD700;
}

.payment-details-box p {
  margin: 0.5rem 0;
  color: #ddd;
  font-size: 1rem;
}

.payment-details-box strong {
  color: #FFD700;
}

.payment-instructions-list {
  background: #fff5e6;
  border-left: 4px solid #ffa500;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.payment-instructions-list h4 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-instructions-list h4 i {
  color: #ffa500;
}

.payment-instructions-list ol {
  margin: 0;
  padding-left: 1.5rem;
  color: #4a5568;
}

.payment-instructions-list li {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.payment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-payment-confirm {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-payment-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-payment-cancel {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-payment-cancel:hover {
  background: #cbd5e0;
}

.payment-note {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.payment-note i {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.payment-note p {
  margin: 0;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Payment notification styling */
.notification-item.payment-notification {
  border-left: 4px solid #10b981;
  background: linear-gradient(to right, #f0fdf4, white);
}

.payment-action-btn {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.pay-now-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.pay-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .payment-modal {
    max-width: 95%;
    margin: 1rem;
  }

  .payment-modal-header h2 {
    font-size: 1.5rem;
  }

  .payment-modal-body {
    padding: 1.5rem;
  }

  .qr-code-placeholder {
    width: 200px;
    height: 200px;
  }

  .qr-code-placeholder i {
    font-size: 4rem;
  }

  .payment-actions {
    flex-direction: column;
  }

  .btn-payment-confirm,
  .btn-payment-cancel {
    width: 100%;
  }
}

/* Timeline Action Button */
.timeline-action {
  margin-top: 0.5rem;
}

.info-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  animation: pulse-info 2s infinite;
}

.info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@keyframes pulse-info {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Payment Receipt Styles */
.payment-receipt {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10b981;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.receipt-header i {
  font-size: 1.5rem;
  color: #10b981;
}

.receipt-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin: 0;
}

.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
}

.receipt-label {
  font-weight: 500;
  color: #aaa;
  font-size: 0.95rem;
}

.receipt-value {
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  text-align: right;
}

/* Payment Action Button in Notifications */
.payment-action-btn {
  margin-top: 0.75rem;
}

.pay-now-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pay-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.pay-now-btn i {
  font-size: 1.1rem;
}

/* Payment Status Badge */
.payment-status-badge {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 8px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.payment-status-badge i {
  font-size: 1rem;
}


/* Custom Scrollbar - Freent Theme */
.notifications-list::-webkit-scrollbar {
  width: 8px;
}

.notifications-list::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 4px;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 4px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: #FFD700;
}

/* Firefox scrollbar */
.notifications-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.5) rgba(255, 215, 0, 0.1);
}

/* Theme-aware notification items */
.notification-item {
  background: var(--bg-card) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.notification-item.payment-notification {
  background: rgba(139, 92, 246, 0.15) !important;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
}

.no-notifications {
  background: transparent !important;
  color: #aaa !important;
}

/* Rush Order Styles - Theme Blended with Better Readability */
.rush-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF4500 0%, #FF6347 100%);
  color: #fff;
  margin-left: 0.5rem;
  animation: rushPulse 2s infinite;
  vertical-align: middle;
}

@keyframes rushPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 69, 0, 0);
  }
}

.rush-order-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 99, 71, 0.1) 100%);
  border: 2px solid #FF4500;
  border-radius: 12px;
  animation: fadeIn 0.3s ease-in-out;
}

.rush-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.rush-header i {
  font-size: 1.35rem;
  color: var(--accent-primary);
  animation: rushPulse 2s infinite;
}

.rush-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.rush-fee-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(var(--accent-primary-rgb, 255, 215, 0), 0.15);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.rush-fee-display span:first-child {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.rush-fee-amount {
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.rush-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.rush-note i {
  color: var(--accent-primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== DASHBOARD STYLES ========== */

.dashboard-welcome {
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgb(22 22 22 / 74%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

[data-theme="light"] .welcome-header {
  background: #ffffff;
  border: 1px solid rgba(249,115,22,0.15);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.welcome-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .welcome-text h1 {
  color: #c2410c;
}

.welcome-text p {
  color: #aaa;
  font-size: 1.1rem;
}

[data-theme="light"] .welcome-text p {
  color: #6b7280;
}

.user-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
}

.action-btn.secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #fff;
}

/* Dashboard Stats Grid */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgb(22 22 22 / 74%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
  transform: translateY(-4px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #000;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #aaa;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Notification Bell Styles */
.notification-bell {
  position: relative;
  margin-right: 1rem;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notification-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.notification-dropdown {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.notification-dropdown.active {
  display: flex;
}

.notification-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.notification-dropdown-header h4 {
  color: #FFD700;
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mark-all-read-btn {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.mark-all-read-btn:hover {
  background: rgba(255, 215, 0, 0.2);
}

.notification-dropdown-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.notification-loading {
  padding: 2rem;
  text-align: center;
  color: #aaa;
}

.notification-dropdown-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
}

.view-all-link {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: #fff;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .welcome-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .user-actions {
    width: 100%;
    justify-content: center;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .welcome-text h1 {
    font-size: 2rem;
  }

  .notification-dropdown {
    width: 300px;
    right: -50px;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .welcome-text h1 {
    font-size: 1.75rem;
  }

  .user-actions {
    flex-direction: column;
  }

  .notification-dropdown {
    width: 280px;
    right: -100px;
  }
}

/* Scroll to tracking function */
.tracking-container {
  scroll-margin-top: 2rem;
}

/* Fix horizontal scroll bug in modals */
.modal-overlay {
  overflow-x: hidden !important;
}

.modal-content {
  max-width: 90vw !important;
  overflow-x: hidden !important;
}

.payment-modal {
  overflow-x: hidden !important;
}

.payment-modal-body {
  overflow-x: hidden !important;
  word-wrap: break-word;
}

.payment-instructions-list {
  overflow-x: hidden !important;
  word-wrap: break-word;
}

.payment-instructions-list ol {
  overflow-x: hidden !important;
}

.payment-instructions-list li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Notification Bell Styles for Header */
.notification-bell {
  position: relative;
  margin-right: 1rem;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notification-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.notification-dropdown {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  width: 380px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.notification-dropdown.active {
  display: flex;
}

.notification-dropdown-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.notification-dropdown-header h4 {
  color: #FFD700;
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mark-all-read-btn {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.mark-all-read-btn:hover {
  background: rgba(255, 215, 0, 0.2);
}

.notification-dropdown-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.notification-loading {
  padding: 2rem;
  text-align: center;
  color: #aaa;
}

.notification-dropdown-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
  flex-shrink: 0;
}

.view-all-link {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: #fff;
}

/* Mobile responsive for notification dropdown */
@media (max-width: 768px) {
  .notification-dropdown {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    max-height: calc(100vh - 100px);
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    top: 70px;
    max-height: calc(100vh - 90px);
  }
}
/* Compact Payment Modal Styles - Theme Compatible */
.payment-modal {
  max-width: 500px !important;
  width: 90% !important;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border: 2px solid #FFD700 !important;
  color: #fff !important;
}

/* Theme-aware payment modal elements */
.payment-modal * {
  color: var(--text-primary);
}

.payment-modal h2,
.payment-modal h3,
.payment-modal h4 {
  color: #FFD700 !important;
}

.payment-modal .payment-label {
  color: #aaa !important;
}

.payment-modal .payment-value {
  color: #fff !important;
}

.payment-modal .payment-amount {
  color: #FFD700 !important;
}

.payment-modal .upload-placeholder p {
  color: #FFD700 !important;
}

.payment-modal .upload-placeholder small {
  color: #aaa !important;
}

.payment-details-compact {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.payment-detail-row {
  margin-bottom: 0.5rem;
  color: #ddd;
  font-size: 0.9rem;
}

.payment-detail-row:last-child {
  margin-bottom: 0;
}

.payment-instructions-compact {
  background: rgba(255, 165, 0, 0.1);
  border-left: 4px solid #ffa500;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.payment-instructions-compact p {
  margin: 0.25rem 0;
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.4;
}

.payment-instructions-compact p:first-child {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FFD700;
}

/* Receipt Upload Styles */
.receipt-upload-section {
  margin: 1.5rem 0;
}

.receipt-upload-section h4 {
  color: #FFD700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.file-upload-area {
  border: 2px dashed rgba(255, 215, 0, 0.5);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.05);
}

.file-upload-area:hover {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.upload-placeholder i {
  font-size: 2rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
  display: block;
}

.upload-placeholder p {
  color: #FFD700;
  font-weight: 600;
  margin: 0.5rem 0;
}

.upload-placeholder small {
  color: #aaa;
  font-size: 0.8rem;
}

.upload-preview {
  text-align: center;
}

.upload-preview img {
  border: 2px solid #FFD700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Updated Payment Actions */
.payment-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-payment-confirm {
  flex: none;
  min-width: 200px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-payment-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-payment-confirm:disabled {
  background: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-payment-confirm:disabled:hover {
  transform: none;
}

/* Remove cancel button styles since it's removed */
.btn-payment-cancel {
  display: none;
}

/* Mobile responsive for compact modal */
@media (max-width: 768px) {
  .payment-modal {
    max-width: 95% !important;
    margin: 1rem !important;
  }

  .file-upload-area {
    padding: 1rem;
  }

  .upload-placeholder i {
    font-size: 1.5rem;
  }

  .btn-payment-confirm {
    min-width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

/* ETA Information Styles */
.eta-info {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  animation: fadeIn 0.3s ease-in-out;
}

.eta-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.eta-header i {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.eta-content {
  text-align: center;
  margin-bottom: 1rem;
}

.eta-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.eta-countdown {
  font-size: 1rem;
  color: #3b82f6;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  display: inline-block;
}

.eta-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #ddd;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.eta-note i {
  color: #3b82f6;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive for ETA info */
@media (max-width: 768px) {
  .eta-info {
    padding: 1rem;
  }
  
  .eta-date {
    font-size: 1.1rem;
  }
  
  .eta-countdown {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Updated payment note for new workflow - Dark Theme Compatible */
.payment-note {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.payment-note i {
  color: #3b82f6 !important;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.payment-note p {
  margin: 0;
  color: #ddd !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Minimalist Dashboard Styles */

/* Order Filter Tabs (Shopee Style) */
.order-filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

[data-theme="light"] .order-filter-tabs {
  background: #ffffff;
  border: 1px solid rgba(249,115,22,0.15);
  padding: 0.5rem 0;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: #ddd;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

[data-theme="light"] .filter-tab {
  color: #6b7280;
}

.filter-tab:hover {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 0.5rem;
}

[data-theme="light"] .filter-tab:hover {
  color: #f97316;
  background: rgba(249,115,22,0.05);
}

.filter-tab.active {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 0.5rem;
  border-bottom-color: transparent;
}

[data-theme="light"] .filter-tab.active {
  color: #f97316;
  background: rgba(249,115,22,0.1);
  border-bottom-color: transparent;
}

/* Orders List Container */
.orders-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-orders {
  text-align: center;
  padding: 3rem;
  color: #aaa;
}

[data-theme="light"] .loading-orders {
  color: #6b7280;
}

.loading-orders i {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 1rem;
}

[data-theme="light"] .loading-orders i {
  color: #f97316;
}

.loading-orders p {
  font-size: 1rem;
}

/* Order Card */
.order-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

/* Light theme adjustments for order cards */
[data-theme="light"] .order-card {
  background: #ffffff;
  border: 1px solid rgba(249,115,22,0.06);
  color: #111827;
  box-shadow: 0 2px 8px rgba(15,23,42,0.03);
}

[data-theme="light"] .order-card:hover {
  background: #fffaf0;
  border-color: rgba(249,115,22,0.15);
  box-shadow: 0 4px 12px rgba(249,115,22,0.08);
}

[data-theme="light"] .order-product-name {
  color: #111827;
}

[data-theme="light"] .order-product-details,
[data-theme="light"] .order-date {
  color: #6b7280;
}

[data-theme="light"] .order-id-label {
  color: #6b7280;
}

[data-theme="light"] .order-id-value {
  color: #c2410c;
}

[data-theme="light"] .order-total {
  color: #c2410c;
}

[data-theme="light"] .order-card-header {
  border-bottom: 1px solid rgba(249,115,22,0.1);
}

.order-card:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.order-card-id {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-id-label {
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-id-value {
  font-size: 1rem;
  color: #FFD700;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.order-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-processing {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-production {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-delivery {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-refunded {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.order-card-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.order-product-image {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.order-product-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.order-product-placeholder i {
  font-size: 2rem;
  color: #FFD700;
  opacity: 0.5;
}

.order-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.order-product-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.order-product-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-product-detail i {
  color: #FFD700;
  font-size: 0.85rem;
}

.order-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.25rem;
}

.order-date i {
  margin-right: 0.25rem;
}

.order-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.order-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFD700;
}

.order-view-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Load More Container */
.load-more-container {
  text-align: center;
  padding: 2rem 0;
}

.load-more-btn {
  padding: 0.875rem 2rem;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #FFD700;
  border-radius: 0.75rem;
  color: #FFD700;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="light"] .load-more-btn {
  background: rgba(249,115,22,0.06);
  border: 2px solid #f97316;
  color: #c2410c;
}

.load-more-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

[data-theme="light"] .load-more-btn:hover {
  background: rgba(249,115,22,0.12);
}

/* Empty Orders State */
.empty-orders-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 40vh;
}

.empty-orders-state i {
  font-size: 5rem;
  color: #FFD700;
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .empty-orders-state i {
  color: #f97316;
  opacity: 0.4;
}

.empty-orders-state h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .empty-orders-state h3 {
  color: #111827;
}

.empty-orders-state p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .empty-orders-state p {
  color: #6b7280;
}

/* Order Details Modal */
.order-details-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  margin: 0 auto;
}

.order-details-modal .modal-header {
  background: rgba(var(--accent-primary-rgb, 255, 215, 0), 0.1);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  margin: 0 0 2rem 0;
}

.order-details-modal .modal-header h2 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.order-details-modal .modal-header h2 i {
  color: var(--accent-primary);
}

.order-details-modal .modal-body {
  background: transparent;
  padding: 0 2rem 2rem 2rem;
  color: var(--text-primary);
}

/* Light theme adjustments for order details modal */
[data-theme="light"] .order-details-modal {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  color: #111827;
  border: 1px solid rgba(249,115,22,0.08);
}

[data-theme="light"] .order-details-modal .modal-header {
  background: rgba(249,115,22,0.06);
  border-bottom: 1px solid rgba(249,115,22,0.12);
}

[data-theme="light"] .order-details-modal .modal-header h2 {
  color: #c2410c;
}

[data-theme="light"] .order-details-modal .modal-header h2 i {
  color: #c2410c;
}

[data-theme="light"] .order-details-modal .modal-body {
  background: transparent;
  color: #111827;
}

[data-theme="light"] .modal-close {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.2);
  color: #c2410c;
}

[data-theme="light"] .modal-close:hover {
  background: rgba(249,115,22,0.12);
  color: #9a3412;
}


/* Modal layout & scrollbars - user dashboard specific fixes */
.modal-overlay {
  align-items: flex-start; /* keep modal near top for large screens */
  padding: 2rem;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  border-radius: 12px;
}

/* Scrollbar styling for overlay and modal content */
.modal-overlay::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 12px;
}
.modal-overlay::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-overlay::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 2px solid transparent;
}
.modal-overlay::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.12);
}

/* Light theme scrollbar adjustments */
[data-theme="light"] .modal-overlay::-webkit-scrollbar-thumb,
[data-theme="light"] .modal-content::-webkit-scrollbar-thumb {
  background: rgba(16,24,40,0.06);
}

/* Firefox scrollbar colors */
.modal-overlay, .modal-content {
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}
[data-theme="light"] .modal-overlay, [data-theme="light"] .modal-content {
  scrollbar-color: rgba(16,24,40,0.06) transparent;
}
[data-theme="light"] .modal-overlay::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(16,24,40,0.12);
}

.order-detail-section {
  margin-bottom: 2rem;
}

.order-detail-section h3 {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Light mode styles for order detail sections */
[data-theme="light"] .order-detail-section h3 {
  color: #c2410c;
}

[data-theme="light"] .order-detail-section h3 i {
  color: #c2410c;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.order-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-detail-label {
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .order-detail-label {
  color: #6b7280;
}

.order-detail-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

[data-theme="light"] .order-detail-value {
  color: #111827;
}

.order-detail-value.highlight {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.2rem;
}

[data-theme="light"] .order-detail-value.highlight {
  color: #c2410c;
}

/* Light mode for status badges in modal */
[data-theme="light"] .status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

[data-theme="light"] .status-processing {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .status-production {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .status-delivery {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .status-refunded {
  background: rgba(156, 163, 175, 0.15);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Light mode for delivery address section */
[data-theme="light"] .order-detail-section .order-detail-value {
  color: #111827;
  background: rgba(249,115,22,0.04);
  border-left: 3px solid #f97316;
}

/* Light mode for rush order info - Theme Blended */
[data-theme="light"] .rush-order-info {
  background: rgba(249, 115, 22, 0.06);
  border: 2px solid rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .rush-header {
  color: var(--text-primary);
}

[data-theme="light"] .rush-header i {
  color: var(--accent-primary);
}

[data-theme="light"] .rush-description {
  color: var(--text-secondary);
}

[data-theme="light"] .rush-fee-display {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
}

[data-theme="light"] .rush-fee-display span:first-child {
  color: var(--text-primary);
}

[data-theme="light"] .rush-fee-amount {
  color: var(--accent-primary);
}

[data-theme="light"] .rush-note {
  color: var(--text-muted);
}

[data-theme="light"] .rush-note i {
  color: var(--accent-primary);
}

/* Light mode for modal action buttons */
[data-theme="light"] .modal-actions button {
  color: #111827;
}

[data-theme="light"] .modal-actions button:first-child {
  background: rgba(249,115,22,0.08);
  border: 1px solid #f97316;
  color: #c2410c;
}

[data-theme="light"] .modal-actions button:first-child:hover {
  background: rgba(249,115,22,0.12);
}

[data-theme="light"] .modal-actions button:last-child {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

/* Light mode for uploaded files section */
[data-theme="light"] .uploaded-files > div {
  background: rgba(249,115,22,0.03);
  border: 1px solid rgba(249,115,22,0.08);
}

[data-theme="light"] .uploaded-files span {
  color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-card-body {
    grid-template-columns: 1fr;
  }
  
  .order-card-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .order-filter-tabs {
    gap: 0.25rem;
  }
  
  .filter-tab {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
  }
}

/* Clickable Order ID */
.clickable-order-id {
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.clickable-order-id:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateX(2px);
}

.copy-icon {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.clickable-order-id:hover .copy-icon {
  opacity: 1;
}

/* Copy Toast Notification */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-toast i {
  font-size: 1.2rem;
}

/* Track Order Header */
.track-order-header {
  margin-bottom: 2rem;
}

.back-to-orders-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-orders-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateX(-4px);
}

/* Product Image */
.order-product-image {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Secondary Action Button */
.action-btn.secondary {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #FFD700;
  color: #FFD700;
}

.action-btn.secondary:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* Responsive adjustments for toast */
@media (max-width: 768px) {
  .copy-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}

/* Fix Browse Services button in empty state */
.empty-orders-state .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 140px;
  max-width: 280px;
  width: auto;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.empty-orders-state .action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 215, 0, 0.35);
}

.empty-orders-state .action-btn i {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .empty-orders-state .action-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    max-width: 220px;
  }
}


/* ========== MATERIAL THEME MODAL & TAB SUPPORT ========== */

/* Material Theme - Modals */
[data-theme="material"] .modal-overlay {
  background: var(--overlay);
}

[data-theme="material"] .order-details-modal .modal-header {
  background: rgba(100, 181, 246, 0.15);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="material"] .order-details-modal .modal-header h2,
[data-theme="material"] .order-details-modal .modal-header h2 i {
  color: var(--accent-primary);
}

[data-theme="material"] .order-details-modal .modal-body {
  background: transparent;
  color: var(--text-primary);
}

[data-theme="material"] .modal-close {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="material"] .modal-close:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Material Theme - Payment Modal */
[data-theme="material"] .payment-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

[data-theme="material"] .payment-modal-header h2 {
  color: var(--text-primary);
}

[data-theme="material"] .payment-modal-header i {
  color: var(--accent-primary);
}

[data-theme="material"] .payment-modal-body {
  background: transparent;
  color: var(--text-primary);
}

/* Material Theme - Order Filter Tabs */
[data-theme="material"] .order-filter-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

[data-theme="material"] .filter-tab {
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}

[data-theme="material"] .filter-tab:hover {
  color: var(--accent-primary);
  background: var(--bg-hover);
}

[data-theme="material"] .filter-tab.active {
  color: var(--accent-primary);
  background: rgba(100, 181, 246, 0.1);
  border-bottom-color: var(--accent-primary);
}

/* Material Theme - Order Cards */
[data-theme="material"] .order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

[data-theme="material"] .order-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px var(--shadow);
}

[data-theme="material"] .order-product-name {
  color: var(--text-primary);
}

[data-theme="material"] .order-product-details,
[data-theme="material"] .order-date {
  color: var(--text-muted);
}

[data-theme="material"] .order-id-label {
  color: var(--text-muted);
}

[data-theme="material"] .order-id-value {
  color: var(--accent-primary);
}

[data-theme="material"] .order-total {
  color: var(--accent-primary);
}

[data-theme="material"] .order-card-header {
  border-bottom: 1px solid var(--border-color);
}

/* Material Theme - Notification Items */
[data-theme="material"] .notification-item {
  background: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="material"] .notification-item:hover {
  background: var(--bg-hover) !important;
  border-color: var(--accent-primary) !important;
}

[data-theme="material"] .notification-item.unread {
  background: rgba(100, 181, 246, 0.15) !important;
  border-color: var(--accent-primary) !important;
}

[data-theme="material"] .notification-title {
  color: var(--text-primary) !important;
}

[data-theme="material"] .notification-message {
  color: var(--text-muted) !important;
}

[data-theme="material"] .notification-time {
  color: var(--text-muted) !important;
}

/* Material Theme - Buttons */
[data-theme="material"] .load-more-btn {
  background: var(--bg-card);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

[data-theme="material"] .load-more-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--shadow);
}

[data-theme="material"] .track-button,
[data-theme="material"] .action-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border: none;
}

[data-theme="material"] .track-button:hover,
[data-theme="material"] .action-btn.primary:hover {
  box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
  transform: translateY(-2px);
}

[data-theme="material"] .action-btn.secondary {
  background: var(--bg-card);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

[data-theme="material"] .action-btn.secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}


/* ========== MATERIAL THEME - RUSH ORDER HARMONIZATION ========== */

/* Material Theme - Rush Order Badge */
[data-theme="material"] .rush-badge-inline {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}

@keyframes rushPulseMaterial {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(100, 181, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(100, 181, 246, 0);
  }
}

[data-theme="material"] .rush-badge-inline {
  animation: rushPulseMaterial 2s infinite;
}

/* Material Theme - Rush Order Info Section */
[data-theme="material"] .rush-order-info {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.08) 0%, rgba(66, 165, 245, 0.08) 100%);
  border: 2px solid rgba(100, 181, 246, 0.3);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.1);
}

[data-theme="material"] .rush-header {
  color: var(--text-primary);
}

[data-theme="material"] .rush-header i {
  color: var(--accent-primary);
  animation: rushPulseMaterial 2s infinite;
}

[data-theme="material"] .rush-description {
  color: var(--text-secondary);
}

/* Material Theme - Rush Fee Display */
[data-theme="material"] .rush-fee-display {
  background: rgba(100, 181, 246, 0.12);
  border: 1px solid rgba(100, 181, 246, 0.3);
}

[data-theme="material"] .rush-fee-display span:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="material"] .rush-fee-amount {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Material Theme - Rush Note */
[data-theme="material"] .rush-note {
  color: var(--text-muted);
}

[data-theme="material"] .rush-note i {
  color: var(--accent-primary);
}

/* Material Theme - Rush Order Section (Services Page) */
[data-theme="material"] #rushOrderContainer,
[data-theme="material"] .rush-order-section {
  background: rgba(100, 181, 246, 0.08) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
}

[data-theme="material"] .rush-order-label {
  color: var(--text-primary) !important;
}

[data-theme="material"] .rush-order-label i {
  color: var(--accent-primary) !important;
}

[data-theme="material"] .rush-order-section label span {
  color: var(--accent-primary) !important;
}

[data-theme="material"] .rush-order-section i.fa-bolt {
  color: var(--accent-primary) !important;
}

/* Material Theme - Rush Toggle Switch */
[data-theme="material"] .rush-toggle {
  background: var(--bg-secondary) !important;
}

[data-theme="material"] .rush-toggle.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
}

[data-theme="material"] .rush-toggle-switch {
  background: var(--bg-secondary);
}

[data-theme="material"] .rush-toggle-switch.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

/* Material Theme - Rush Order Row (Admin Dashboard) */
[data-theme="material"] .rush-order-row {
  background: rgba(100, 181, 246, 0.08) !important;
  border-left: 3px solid var(--accent-primary) !important;
}

[data-theme="material"] .rush-order-row:hover {
  background: rgba(100, 181, 246, 0.15) !important;
}

/* Material Theme - Rush Order Filter Button */
[data-theme="material"] #statusRush.bg-indigo-600 {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
}

/* Material Theme - Rush Badge (General) */
[data-theme="material"] .rush-badge {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border-color: var(--accent-primary);
}


/* ========== ORDER HISTORY TOGGLE SWITCH ========== */

.order-history-switch {
  position: relative;
  margin-right: 1rem;
}

.history-switch-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border: 2px solid var(--border-color);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.history-switch-btn:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.history-switch-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.history-switch-btn svg {
  transition: all 0.3s ease;
}

.history-switch-btn:hover svg {
  transform: scale(1.1);
}

/* Personal Order History Mode */
.personal-order-mode .history-switch-btn {
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.personal-order-mode .history-switch-btn:hover {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.5);
}

/* Theme-specific styling */
[data-theme="light"] .history-switch-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .history-switch-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

[data-theme="light"] .personal-order-mode .history-switch-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="material"] .history-switch-btn {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #fff;
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

[data-theme="material"] .history-switch-btn:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, #1e88e5 100%);
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

[data-theme="material"] .personal-order-mode .history-switch-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .order-history-switch {
    margin-right: 0.5rem;
  }
  
  .history-switch-btn {
    width: 40px;
    height: 40px;
  }
  
  .history-switch-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .user-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .order-history-switch {
    order: -1;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* ========== PERSONAL ORDER STYLES ========== */

/* Personal order card styling */
.personal-order-card {
  border-left: 4px solid #8B5CF6 !important;
  position: relative;
}

.personal-order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #A855F7, #C084FC);
}

/* Personal order icon styling */
.personal-order-icon {
  background: linear-gradient(135deg, #8B5CF6, #A855F7) !important;
  color: white !important;
}

.personal-order-icon i {
  font-size: 1.5rem;
}

/* Personal order total styling */
.personal-order-total {
  color: #8B5CF6 !important;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Personal order mode body styling */
body.personal-order-mode .page-title {
  color: #A855F7;
}

body.personal-order-mode .page-subtitle {
  color: #C084FC;
}

/* Personal order modal styling */
.personal-order-modal {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.personal-order-modal .modal-header {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  color: white;
  border-radius: 12px 12px 0 0;
}

.personal-order-modal .modal-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.personal-order-modal .order-detail-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.personal-order-modal .order-detail-section h3 {
  color: #8B5CF6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.personal-order-modal .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.personal-order-modal .detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.personal-order-modal .detail-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.personal-order-modal .detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
}

.personal-order-modal .request-details,
.personal-order-modal .admin-notes {
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.personal-order-modal .request-details p,
.personal-order-modal .admin-notes p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

/* Status badge styling for personal orders */
.personal-order-modal .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Theme-aware styling for personal order modal */
[data-theme="dark"] .personal-order-modal .order-detail-section {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .personal-order-modal .request-details,
[data-theme="dark"] .personal-order-modal .admin-notes {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .personal-order-modal .order-detail-section {
  background: rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .personal-order-modal .request-details,
[data-theme="light"] .personal-order-modal .admin-notes {
  background: rgba(139, 92, 246, 0.02);
  border-color: rgba(139, 92, 246, 0.1);
}

/* Material theme styling */
[data-theme="material"] .personal-order-modal .order-detail-section {
  background: rgba(103, 58, 183, 0.08);
  border-color: rgba(103, 58, 183, 0.25);
}

[data-theme="material"] .personal-order-modal .request-details,
[data-theme="material"] .personal-order-modal .admin-notes {
  background: rgba(103, 58, 183, 0.03);
  border-color: rgba(103, 58, 183, 0.15);
}

[data-theme="material"] .personal-order-modal .order-detail-section h3 {
  color: #673AB7;
}

[data-theme="material"] .personal-order-card {
  border-left-color: #673AB7 !important;
}

[data-theme="material"] .personal-order-card::before {
  background: linear-gradient(90deg, #673AB7, #7C4DFF, #9C27B0);
}

[data-theme="material"] .personal-order-icon {
  background: linear-gradient(135deg, #673AB7, #7C4DFF) !important;
}

[data-theme="material"] .personal-order-total {
  color: #673AB7 !important;
}

[data-theme="material"] .personal-order-mode .page-title {
  color: #7C4DFF;
}

[data-theme="material"] .personal-order-mode .page-subtitle {
  color: #9C27B0;
}
/* Filter count styling */
.filter-count {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-left: 0.25rem;
  font-weight: 500;
}

/* Personal order filter tabs styling */
body.personal-order-mode .filter-tab {
  border-color: rgba(139, 92, 246, 0.3);
}

body.personal-order-mode .filter-tab.active {
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border-color: #8B5CF6;
  color: white;
}

body.personal-order-mode .filter-tab:hover:not(.active) {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Material theme personal order filters */
[data-theme="material"] body.personal-order-mode .filter-tab {
  border-color: rgba(103, 58, 183, 0.3);
}

[data-theme="material"] body.personal-order-mode .filter-tab.active {
  background: linear-gradient(135deg, #673AB7, #7C4DFF);
  border-color: #673AB7;
}

[data-theme="material"] body.personal-order-mode .filter-tab:hover:not(.active) {
  background: rgba(103, 58, 183, 0.1);
  border-color: rgba(103, 58, 183, 0.5);
}