/* frontend/public/css/dashboard-customer.css - ENHANCED VERSION */

/* ========================================================================
   DASHBOARD CUSTOMER CSS - FULLY RESPONSIVE
   Matches provider dashboard design system
   ======================================================================== */

@import url("./styles.css");

/* ========================================================================
   Z-INDEX SCALE — single source of truth so layering stays predictable.
   Defined once here, referenced via var(--z-*) elsewhere (audit L5).
   ======================================================================== */
:root {
  --z-base: 1;
  --z-sidebar: 100;
  --z-sticky: 200;
  --z-dropdown: 500;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
}

/* ========================================================================
   SECTION 1: LAYOUT & CONTAINERS
   ======================================================================== */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  width: 100%;
  /* overflow-x handled by body — removed so position:fixed sidebar works */
}

/* Main Content Area */
.dashboard-content,
.overview-dashboard,
.orders-dashboard,
.bookings-dashboard,
.calendar-dashboard,
.messages-dashboard,
.wishlist-dashboard,
.reviews-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: calc(var(--spacer) * 3);
}

/* Tablet Landscape */
@media (min-width: 1024px) and (max-width: 1280px) {
  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard,
  .messages-dashboard,
  .wishlist-dashboard,
  .reviews-dashboard {
    padding: calc(var(--spacer) * 3.5);
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1023px) {
  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard,
  .messages-dashboard,
  .wishlist-dashboard,
  .reviews-dashboard {
    padding: calc(var(--spacer) * 2.5);
  }
}

/* Mobile Landscape */
@media (min-width: 480px) and (max-width: 767px) {
  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard,
  .messages-dashboard,
  .wishlist-dashboard,
  .reviews-dashboard {
    padding: calc(var(--spacer) * 2);
    padding-bottom: calc(var(--spacer) * 8);
  }
}

/* Mobile Portrait */
@media (min-width: 360px) and (max-width: 479px) {
  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard,
  .messages-dashboard,
  .wishlist-dashboard,
  .reviews-dashboard {
    padding: calc(var(--spacer) * 1.5);
    padding-bottom: calc(var(--spacer) * 8);
  }
}

/* Small Mobile */
@media (max-width: 359px) {
  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard,
  .messages-dashboard,
  .wishlist-dashboard,
  .reviews-dashboard {
    padding: calc(var(--spacer) * 1.2);
    padding-bottom: calc(var(--spacer) * 8);
  }
}

/* ========================================================================
   SECTION 2: SIDEBAR (MATCHES PROVIDER DASHBOARD)
   ======================================================================== */

.dashboard-sidebar {
  width: 280px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-light);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

/* Sidebar Header */
.sidebar-header {
  padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.sidebar-header .logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sidebar-header .logo span {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: var(--bg);
  color: var(--accent);
}

/* Sidebar User Section */
.sidebar-user {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: calc(var(--spacer) * 1.5) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 48px;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  position: relative;
  white-space: nowrap;
}

.nav-item i {
  width: 20px;
  font-size: 1rem;
  color: currentColor;
  flex-shrink: 0;
}

.nav-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 30px;
  font-size: 0.6rem;
  min-width: 18px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-item.active {
  background: #f2ebe3;
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Nav Sections (Dropdown) */
.nav-section {
  margin: calc(var(--spacer) * 0.5) 0;
}

.nav-section-header {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  border-left: 3px solid transparent;
  position: relative;
  white-space: nowrap;
}

.nav-section-header i:first-child {
  width: 20px;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-section-header span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-section-header .dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-soft);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-section-header .dropdown-icon.rotated {
  transform: rotate(180deg);
}

.nav-section-header:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-section-header.active {
  background: #f2ebe3;
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-section-header.active .dropdown-icon {
  color: var(--accent);
}

/* Submenu */
.nav-submenu {
  display: none;
  padding-left: calc(var(--spacer) * 2);
  margin-left: calc(var(--spacer) * 2.5);
  border-left: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 0.5);
  transition: all 0.3s ease;
}

.nav-submenu.expanded {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.nav-subitem {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 40px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-subitem i {
  width: 18px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-subitem span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-subitem .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 2px 5px;
  border-radius: 30px;
  font-size: 0.55rem;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.nav-subitem:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-subitem.active {
  color: var(--accent);
  background: #f2ebe3;
}

/* Nav Divider */
.nav-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ========================================================================
   SECTION 3: DESKTOP SIDEBAR (1025px and above)
   ======================================================================== */
@media (min-width: 1025px) {
  .dashboard-sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: none;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
  }

  /* Hover tooltips for truncated text */
  .nav-item:hover span,
  .nav-section-header:hover span,
  .nav-subitem:hover span {
    position: relative;
  }

  .nav-item:hover span::after,
  .nav-section-header:hover span::after,
  .nav-subitem:hover span::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 8px;
  }
}

/* ========================================================================
   SECTION 4: TABLET SIDEBAR (768px - 1024px)
   ======================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-sidebar {
    width: 260px;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
  }

  .mobile-menu-toggle:hover {
    background: var(--bg);
    color: var(--accent);
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-header {
    padding-left: calc(var(--spacer) * 3);
  }

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

  .nav-item,
  .nav-section-header {
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
    font-size: 0.85rem;
    min-height: 44px;
  }

  .nav-subitem {
    padding: calc(var(--spacer) * 1) calc(var(--spacer) * 1.2);
    font-size: 0.8rem;
    min-height: 38px;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .user-name {
    font-size: 0.9rem;
  }
}

/* ========================================================================
   DATE RANGE FILTER STYLES
   ======================================================================== */

.date-range-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.date-range-filter .filter-date-input {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.85rem;
  background: white;
  color: var(--text-dark);
  min-width: 140px;
  transition: all 0.2s ease;
}

.date-range-filter .filter-date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.date-range-filter .filter-date-input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.date-range-filter .filter-date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.date-range-filter span {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.date-range-filter .btn-outline.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.date-range-filter .btn-outline.btn-sm:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.date-range-filter .btn-outline.btn-sm i {
  font-size: 0.7rem;
}

/* Compact version for smaller screens */
@media (max-width: 768px) {
  .date-range-filter {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
  }

  .date-range-filter .filter-date-input {
    min-width: 120px;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .date-range-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .date-range-filter .filter-date-input {
    width: 100%;
  }

  .date-range-filter span {
    text-align: center;
  }

  .date-range-filter .btn-outline.btn-sm {
    width: 100%;
    justify-content: center;
  }
}
.date-range-filter .btn-icon.btn-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.date-range-filter .btn-icon.btn-sm:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #ef4444;
}
/* ========================================================================
   DELIVERY TIMELINE MINI STYLES
   ======================================================================== */

.delivery-timeline-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 5px;
  padding: 10px 5px;
  background: var(--bg);
  border-radius: 40px;
  position: relative;
}

.delivery-timeline-mini::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--border-light) 0%,
    var(--border-light) 50%,
    var(--border-light) 100%
  );
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-dot i {
  font-size: 0.8rem;
}

.timeline-dot.completed {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 8px rgba(183, 140, 90, 0.3);
}

.timeline-dot.shipped {
  background: #1e4a6b;
  border-color: #1e4a6b;
  color: white;
}

.timeline-dot.delivered {
  background: #2f6e4a;
  border-color: #2f6e4a;
  color: white;
}

.timeline-dot.pending {
  background: #fef3e2;
  border-color: #b45309;
  color: #b45309;
}

/* Tooltip for timeline dots */
.timeline-dot {
  position: relative;
  cursor: help;
}

.timeline-dot:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  white-space: nowrap;
  margin-bottom: 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-dot:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
  margin-bottom: -2px;
  z-index: 10;
}

/* Different colors for different statuses */
.timeline-dot[data-status="shipped"] {
  background: #e1f0fa;
  border-color: #1e4a6b;
  color: #1e4a6b;
}

.timeline-dot[data-status="shipped"].completed {
  background: #1e4a6b;
  color: white;
}

.timeline-dot[data-status="delivered"] {
  background: #e3f2e9;
  border-color: #2f6e4a;
  color: #2f6e4a;
}

.timeline-dot[data-status="delivered"].completed {
  background: #2f6e4a;
  color: white;
}

/* Progress line that fills based on completion */
.delivery-timeline-mini.progress-25::before {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 25%,
    var(--border-light) 25%,
    var(--border-light) 100%
  );
}

.delivery-timeline-mini.progress-50::before {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 50%,
    var(--border-light) 50%,
    var(--border-light) 100%
  );
}

.delivery-timeline-mini.progress-75::before {
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 75%,
    var(--border-light) 75%,
    var(--border-light) 100%
  );
}

.delivery-timeline-mini.progress-100::before {
  background: var(--accent);
}

/* Compact version for smaller screens */
@media (max-width: 768px) {
  .delivery-timeline-mini {
    padding: 8px 2px;
  }

  .delivery-timeline-mini::before {
    left: 30px;
    right: 30px;
  }

  .timeline-dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .timeline-dot i {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .delivery-timeline-mini {
    padding: 5px 0;
  }

  .delivery-timeline-mini::before {
    left: 25px;
    right: 25px;
  }

  .timeline-dot {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }

  .timeline-dot i {
    font-size: 0.6rem;
  }

  .timeline-dot:hover::after {
    font-size: 0.55rem;
    white-space: normal;
    width: 80px;
    text-align: center;
  }
}

/* Animation for timeline dots */
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(183, 140, 90, 0.3);
  }
}

.timeline-dot.current {
  animation: pulse-dot 2s infinite;
}

/* Status labels for timeline (optional) */
.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  padding: 0 5px;
  font-size: 0.6rem;
  color: var(--text-soft);
}

.timeline-label {
  text-align: center;
  width: 32px;
}

.timeline-label.active {
  color: var(--accent);
  font-weight: 600;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .timeline-dot {
    background: #2d2a28;
    border-color: #5e5a58;
  }

  .timeline-dot.completed {
    background: var(--accent);
    border-color: var(--accent);
  }
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 5px;
  font-size: 0.6rem;
  color: var(--text-soft);
}

.timeline-label {
  text-align: center;
  width: 32px;
  transition: color 0.3s ease;
}

.timeline-label.active {
  color: var(--accent);
  font-weight: 600;
}

/* ========================================================================
   VIEW DETAILS BUTTON ENHANCED STYLES
   ======================================================================== */

.view-details-btn-enhanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.view-details-btn-enhanced::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(183, 140, 90, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  z-index: 0;
}

.view-details-btn-enhanced:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(183, 140, 90, 0.3);
  border-color: var(--accent);
}

.view-details-btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.view-details-btn-enhanced:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px -2px rgba(183, 140, 90, 0.3);
}

.view-details-btn-enhanced i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.view-details-btn-enhanced span {
  position: relative;
  z-index: 1;
}

.view-details-btn-enhanced:hover i {
  transform: translateX(4px);
}

/* Product order specific variant */
.view-details-btn-enhanced.view-product-order {
  background: linear-gradient(135deg, #f8fafc, white);
  border-color: #b78c5a;
  color: #b78c5a;
}

.view-details-btn-enhanced.view-product-order:hover {
  background: linear-gradient(135deg, #b78c5a, #9a7a4e);
  color: white;
}

/* Small size variant */
.view-details-btn-enhanced.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  min-width: 100px;
}

.view-details-btn-enhanced.btn-sm i {
  font-size: 0.65rem;
}

/* Large size variant */
.view-details-btn-enhanced.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  min-width: 160px;
}

/* Disabled state */
.view-details-btn-enhanced:disabled,
.view-details-btn-enhanced.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg);
  border-color: var(--border-light);
  color: var(--text-soft);
}

/* Loading state */
.view-details-btn-enhanced.loading {
  pointer-events: none;
  opacity: 0.7;
}

.view-details-btn-enhanced.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ghost variant (for special cases) */
.view-details-btn-enhanced.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  box-shadow: none;
}

.view-details-btn-enhanced.ghost:hover {
  background: rgba(183, 140, 90, 0.1);
  border-color: transparent;
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: none;
}

.view-details-btn-enhanced.ghost:hover i {
  transform: translateX(4px);
}

/* Icon only variant */
.view-details-btn-enhanced.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  min-width: auto;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: white;
  color: var(--accent);
}

.view-details-btn-enhanced.icon-only i {
  font-size: 1rem;
  margin: 0;
}

.view-details-btn-enhanced.icon-only:hover {
  background: var(--accent);
  color: white;
}

.view-details-btn-enhanced.icon-only:hover i {
  transform: scale(1.1) rotate(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .view-details-btn-enhanced {
    background: #2d2a28;
    border-color: var(--accent);
    color: var(--accent);
  }

  .view-details-btn-enhanced:hover {
    background: var(--accent);
    color: white;
  }

  .view-details-btn-enhanced.ghost {
    background: transparent;
    color: var(--accent);
  }

  .view-details-btn-enhanced.ghost:hover {
    background: rgba(183, 140, 90, 0.2);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .view-details-btn-enhanced {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 100px;
  }

  .view-details-btn-enhanced.btn-sm {
    padding: 6px 12px;
    font-size: 0.7rem;
    min-width: 80px;
  }

  .view-details-btn-enhanced.icon-only {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .view-details-btn-enhanced {
    padding: 8px 14px;
    font-size: 0.75rem;
    min-width: 90px;
  }

  .view-details-btn-enhanced i {
    font-size: 0.7rem;
  }

  .view-details-btn-enhanced.icon-only {
    width: 36px;
    height: 36px;
  }

  .view-details-btn-enhanced.icon-only i {
    font-size: 0.9rem;
  }
}

/* Animation for button appearance */
@keyframes buttonAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-details-btn-enhanced {
  animation: buttonAppear 0.3s ease forwards;
}

/* Group of buttons */
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-group .view-details-btn-enhanced {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
  }

  .button-group .view-details-btn-enhanced {
    width: 100%;
  }
}

/* Success state */
.view-details-btn-enhanced.success {
  background: #2f6e4a;
  border-color: #2f6e4a;
  color: white;
}

.view-details-btn-enhanced.success:hover {
  background: #235336;
  border-color: #235336;
}

/* Warning state */
.view-details-btn-enhanced.warning {
  background: #b45309;
  border-color: #b45309;
  color: white;
}

.view-details-btn-enhanced.warning:hover {
  background: #9a3e06;
  border-color: #9a3e06;
}

/* Danger state */
.view-details-btn-enhanced.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.view-details-btn-enhanced.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Focus state for accessibility */
.view-details-btn-enhanced:focus-visible {
  outline: 3px solid rgba(183, 140, 90, 0.4);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .view-details-btn-enhanced {
    display: none !important;
  }
}
/* ========================================================================
   ACTION BUTTON STYLES (to match view details button)
   ======================================================================== */

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-width: 90px;
}

.action-button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.action-button.primary:hover {
  background: #9a7a4e;
  border-color: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(183, 140, 90, 0.3);
}

.action-button.secondary {
  background: white;
  color: var(--accent);
  border-color: var(--accent);
}

.action-button.secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(183, 140, 90, 0.3);
}

.action-button.outline {
  background: white;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.action-button.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
}

.action-button.danger {
  background: white;
  color: #ef4444;
  border-color: #ef4444;
}

.action-button.danger:hover {
  background: #ef4444;
  color: white;
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.action-button i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.action-button:hover i {
  transform: translateX(2px);
}

/* Small action buttons */
.action-button.small {
  padding: 6px 12px;
  font-size: 0.7rem;
  min-width: 70px;
}

/* Large action buttons */
.action-button.large {
  padding: 12px 24px;
  font-size: 0.95rem;
  min-width: 120px;
} /* ========================================================================
   CARD INTERACTION STYLES
   ======================================================================== */

.order-card-enhanced {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.order-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.order-card-enhanced:hover .view-details-btn-enhanced {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.order-card-enhanced:hover .view-details-btn-enhanced i {
  transform: translateX(4px);
}

.order-card-enhanced:hover .action-button.outline {
  border-color: var(--accent);
  color: var(--accent);
}

.order-card-enhanced .view-details-btn-enhanced,
.order-card-enhanced .action-button {
  transition: all 0.3s ease;
}

/* Ensure buttons don't trigger card hover effects when clicked */
.order-card-enhanced button,
.order-card-enhanced .btn,
.order-card-enhanced .action-button,
.order-card-enhanced .view-details-btn-enhanced {
  position: relative;
  z-index: 2;
} /* ========================================================================
   DELIVERY ADDRESS PREVIEW STYLES
   ======================================================================== */

.delivery-address-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin: 12px 0 8px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.delivery-address-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #d4a5a5);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.delivery-address-preview:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-light);
}

.delivery-address-preview:hover::before {
  transform: translateX(0);
}

.delivery-address-preview i {
  font-size: 1.1rem;
  color: var(--accent);
  background: rgba(183, 140, 90, 0.1);
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.delivery-address-preview:hover i {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.delivery-address-preview span {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.delivery-address-preview:hover span {
  color: var(--accent-dark);
}

/* Compact version for smaller cards */
.delivery-address-preview.compact {
  padding: 8px 12px;
  gap: 8px;
}

.delivery-address-preview.compact i {
  font-size: 0.9rem;
  padding: 6px;
}

.delivery-address-preview.compact span {
  font-size: 0.75rem;
  -webkit-line-clamp: 1;
}

/* With copy button */
.delivery-address-preview.with-copy {
  padding-right: 8px;
}

.delivery-address-preview .copy-address-btn {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  white-space: nowrap;
}

.delivery-address-preview:hover .copy-address-btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.delivery-address-preview .copy-address-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.delivery-address-preview .copy-address-btn i {
  font-size: 0.6rem;
  padding: 0;
  background: transparent;
  color: currentColor;
}

.delivery-address-preview .copy-address-btn:hover i {
  background: transparent;
  color: white;
}

/* Different color variants */
.delivery-address-preview.home i {
  color: #2f6e4a;
  background: rgba(47, 110, 74, 0.1);
}

.delivery-address-preview.work i {
  color: #1e4a6b;
  background: rgba(30, 74, 107, 0.1);
}

.delivery-address-preview.other i {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
}

/* Loading skeleton */
.delivery-address-preview.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 60px;
}

.delivery-address-preview.skeleton i,
.delivery-address-preview.skeleton span {
  opacity: 0;
}

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

/* Truncated address with tooltip */
.delivery-address-preview span[data-full-address] {
  cursor: help;
  position: relative;
}

.delivery-address-preview span[data-full-address]:hover::after {
  content: attr(data-full-address);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--text-dark);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: normal;
  max-width: 250px;
  width: max-content;
  margin-bottom: 8px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  word-break: break-word;
}

/* Address with badge */
.delivery-address-preview .address-badge {
  position: absolute;
  top: -6px;
  right: 16px;
  background: var(--accent);
  color: white;
  font-size: 0.55rem;
  padding: 2px 8px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .delivery-address-preview {
    padding: 10px 14px;
  }

  .delivery-address-preview i {
    font-size: 1rem;
    padding: 8px;
  }

  .delivery-address-preview span {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .delivery-address-preview .copy-address-btn {
    opacity: 1;
    transform: translateX(0);
    padding: 4px 8px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .delivery-address-preview {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .delivery-address-preview i {
    align-self: flex-start;
  }

  .delivery-address-preview span {
    width: 100%;
    -webkit-line-clamp: 3;
  }

  .delivery-address-preview .copy-address-btn {
    align-self: flex-end;
    margin-top: 4px;
  }

  .delivery-address-preview.with-copy {
    padding-right: 12px;
  }
}

/* Animation for new address */
@keyframes addressHighlight {
  0%,
  100% {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-color: var(--border-light);
  }
  50% {
    background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(183, 140, 90, 0.2);
  }
}

.delivery-address-preview.highlight {
  animation: addressHighlight 2s ease;
}

/* Multiple addresses in list */
.addresses-list .delivery-address-preview {
  margin-bottom: 8px;
}

.addresses-list .delivery-address-preview:last-child {
  margin-bottom: 0;
}

/* Selected state */
.delivery-address-preview.selected {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
}

.delivery-address-preview.selected i {
  background: var(--accent);
  color: white;
}

/* Address with verification badge */
.delivery-address-preview.verified::after {
  content: "✓ Verified";
  position: absolute;
  bottom: 4px;
  right: 12px;
  font-size: 0.6rem;
  color: #2f6e4a;
  background: rgba(47, 110, 74, 0.1);
  padding: 2px 6px;
  border-radius: 20px;
}

/* Print styles */
@media print {
  .delivery-address-preview {
    border: 1px solid #000;
    background: none;
    page-break-inside: avoid;
  }

  .delivery-address-preview i {
    color: #000;
    background: none;
  }

  .delivery-address-preview .copy-address-btn {
    display: none;
  }
}
/* ========================================================================
   SECTION 5: MOBILE SIDEBAR (up to 767px)
   ======================================================================== */
@media (max-width: 767px) {
  .dashboard-sidebar {
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
  }

  .sidebar-close {
    display: flex;
    font-size: 1.3rem;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    margin-right: calc(var(--spacer) * 0.5);
  }

  .mobile-menu-toggle:active {
    background: var(--bg);
    color: var(--accent);
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-header {
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: calc(var(--spacer) * 0.8);
  }

  .page-title {
    font-size: 1.1rem;
    max-width: 150px;
  }

  .search-container {
    display: none;
  }

  .mobile-search {
    display: block;
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: calc(var(--spacer) * 0.5) 0;
    z-index: 90;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.6rem;
    padding: calc(var(--spacer) * 0.5) 0;
    min-height: 48px;
    transition: all 0.2s;
  }

  .bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .bottom-nav-item span {
    font-size: 0.6rem;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-item:active {
    transform: scale(0.95);
  }

  .bottom-nav-item .badge {
    position: absolute;
    top: 2px;
    right: 15px;
    background: var(--accent);
    color: white;
    font-size: 0.55rem;
    min-width: 16px;
    height: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-header {
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 1.5);
  }

  .sidebar-header .logo {
    font-size: 1.1rem;
  }

  .sidebar-user {
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 1.5);
    gap: calc(var(--spacer));
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .user-name {
    font-size: 0.85rem;
  }

  .nav-item,
  .nav-section-header {
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
    font-size: 0.85rem;
    min-height: 44px;
  }

  .nav-submenu {
    padding-left: calc(var(--spacer) * 1.5);
    margin-left: calc(var(--spacer) * 2);
  }

  .nav-subitem {
    padding: calc(var(--spacer) * 1) calc(var(--spacer) * 1.2);
    font-size: 0.8rem;
    min-height: 40px;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .dashboard-sidebar {
    width: 90%;
    max-width: 280px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 1rem;
    max-width: 120px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .user-name {
    font-size: 0.8rem;
  }

  .bottom-nav-item i {
    font-size: 1.1rem;
  }

  .bottom-nav-item span {
    font-size: 0.55rem;
  }
}

/* ========================================================================
   SECTION 6: HEADER & TOP BAR
   ======================================================================== */

.dashboard-header {
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-left {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.2rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  width: 240px;
  transition: all 0.2s;
  background: var(--bg);
  min-height: 44px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

@media (max-width: 1024px) {
  .search-container {
    display: none;
  }
}

/* Mobile Search */
.mobile-search {
  display: none;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.mobile-search i {
  position: absolute;
  left: calc(var(--spacer) * 4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  z-index: 1;
}

.mobile-search input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 6);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 1rem;
  min-height: 48px;
}

/* ========================================================================
   SECTION 7: ICONS & DROPDOWNS
   ======================================================================== */

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.3);
}

/* Notifications Panel */
.notifications-dropdown {
  position: relative;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notifications-panel.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.panel-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  padding: calc(var(--spacer)) calc(var(--spacer) * 1.5);
  border-radius: 30px;
  transition: all 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.5);
}

.btn-text:hover {
  background: var(--bg);
  text-decoration: underline;
}

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

.notification-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.notification-item:hover {
  background: var(--bg);
}

.notification-item.unread {
  background: #f2ebe3;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.85rem;
}

.notification-body {
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-bottom: 2px;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 2px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  right: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
}

.empty-notifications {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
}

.empty-notifications i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(var(--spacer));
  border-radius: 40px;
  transition: all 0.2s;
  min-height: 44px;
}

.profile-btn:hover {
  background: var(--bg);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-large-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.profile-header {
  padding: calc(var(--spacer) * 3);
  display: flex;
  gap: calc(var(--spacer) * 2);
  align-items: center;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer)) 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.menu-item i {
  width: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.menu-item:hover {
  background: var(--bg);
}

/* ========================================================================
   SECTION 8: BUTTONS & INTERACTIVE ELEMENTS
   ======================================================================== */

.btn-primary {
  background: var(--text-dark);
  color: #fff;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-weight: 500;
  width: auto;
}

.btn-primary:hover {
  background: #4a3f3a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 1px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-weight: 500;
  width: auto;
}

.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
  .btn-outline:hover {
    transform: translateY(-2px);
  }
}

.btn-outline.small,
.btn-outline.btn-sm {
  padding: calc(var(--spacer) * 0.8) calc(var(--spacer) * 1.5);
  font-size: 0.75rem;
  min-height: 36px;
  gap: calc(var(--spacer) * 0.5);
}

.btn-outline.danger {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-outline.danger:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* ========================================================================
   SECTION 9: STATUS BADGES
   ======================================================================== */

.status-badge {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .status-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

/* Order Statuses */
.status-badge.pending_quote,
.status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.status-badge.quoted {
  background: #e6e9f0;
  color: #4b5563;
}

.status-badge.approved {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge.in_progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.cancelled,
.status-badge.declined,
.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.closed {
  background: #f1f5f9;
  color: #475569;
}

.status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge.modified {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

/* Booking Statuses */
.booking-card.pending .status-badge {
  background: #fef3e2;
  color: #b45309;
}

.booking-card.confirmed .status-badge {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-card.modified .status-badge {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

.booking-card.completed .status-badge {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-card.declined .status-badge,
.booking-card.rejected .status-badge {
  background: #fee2e2;
  color: #991b1b;
}

.booking-card.closed .status-badge {
  background: #f1f5f9;
  color: #475569;
}

/* ========================================================================
   SECTION 10: OVERVIEW DASHBOARD
   ======================================================================== */

.overview-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 640px) {
  .welcome-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 4);
  }
}

.welcome-text {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  word-break: break-word;
}

@media (min-width: 480px) {
  .welcome-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .welcome-title {
    font-size: 2.2rem;
    margin-bottom: calc(var(--spacer));
  }
}

.welcome-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

/* Quote Card */
.quote-card {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 2.5);
  border-radius: 16px;
  color: white;
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .quote-card {
    max-width: 350px;
    padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 3);
  }
}

@media (min-width: 768px) {
  .quote-card {
    max-width: 400px;
    padding: calc(var(--spacer) * 3) calc(var(--spacer) * 4);
    border-radius: 20px;
  }
}

.quote-card i {
  font-size: 1.2rem;
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 0.8);
}

.quote-card p {
  font-style: italic;
  margin-bottom: calc(var(--spacer) * 0.8);
  line-height: 1.5;
  font-size: 0.9rem;
  word-break: break-word;
}

.quote-card span {
  font-size: 0.8rem;
  opacity: 0.9;
  display: block;
  word-break: break-word;
}

.quote-card::after {
  content: "✦";
  position: absolute;
  bottom: -15px;
  right: -15px;
  font-size: 6rem;
  opacity: 0.1;
  color: white;
}

/* Modern Stats Grid */
.stats-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 480px) {
  .stats-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacer) * 2.5);
  }
}

@media (min-width: 1025px) {
  .stats-grid-modern {
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacer) * 4);
    margin-bottom: calc(var(--spacer) * 5);
  }
}

.stat-card-modern {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

@media (min-width: 768px) {
  .stat-card-modern {
    padding: calc(var(--spacer) * 3);
    gap: calc(var(--spacer) * 2.5);
    border-radius: 20px;
  }
}

.stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.stat-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
  .stat-card-modern:hover {
    transform: translateY(-4px);
  }
}

.stat-card-modern:hover::before {
  transform: translateX(100%);
}

.stat-card-modern.orders .stat-icon-wrapper {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-card-modern.bookings .stat-icon-wrapper {
  background: #fef3e2;
  color: #b45309;
}

.stat-card-modern.messages .stat-icon-wrapper {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-card-modern.notifications .stat-icon-wrapper {
  background: #f2ebe3;
  color: var(--accent);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.6rem;
  }
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: calc(var(--spacer) * 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value-row {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .stat-value {
    font-size: 1.6rem;
  }
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.8rem;
  }
}

.stat-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Insights Grid */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacer) * 3);
  }
}

/* Activity Feed */
.activity-feed,
.insights-panel,
.schedule-panel {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .activity-feed,
  .insights-panel,
  .schedule-panel {
    padding: calc(var(--spacer) * 3);
  }
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 2);
  flex-wrap: wrap;
  gap: calc(var(--spacer));
}

.feed-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  word-break: break-word;
}

.feed-header h3 i {
  color: var(--accent);
  flex-shrink: 0;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 calc(var(--spacer));
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

/* Activity Items */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}

.activity-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.85rem;
  word-break: break-word;
  line-height: 1.4;
}

.activity-description {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

/* Empty State */
.activity-empty {
  text-align: center;
  padding: calc(var(--spacer) * 3);
  color: var(--text-soft);
  width: 100%;
}

.activity-empty i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

/* Quick Actions Insights */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

.insight-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.insight-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
  min-width: 0;
}

.insight-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.insight-content p {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.insight-action {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  word-break: break-word;
}

/* Schedule Panel */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  flex-wrap: wrap;
}

.schedule-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.schedule-time {
  min-width: 70px;
  flex-shrink: 0;
}

.time-badge {
  background: var(--card-bg);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dark);
  display: inline-block;
  white-space: nowrap;
}

.schedule-info {
  flex: 1;
  min-width: 0;
}

.schedule-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.schedule-client {
  font-size: 0.7rem;
  color: var(--text-soft);
  word-break: break-word;
  line-height: 1.4;
}

.schedule-status {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-empty {
  text-align: center;
  padding: calc(var(--spacer) * 3);
  color: var(--text-soft);
}

.schedule-empty i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

/* Bottom Stats */
.bottom-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacer) * 1.5);
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  margin-top: calc(var(--spacer) * 2);
  width: 100%;
}

@media (min-width: 480px) {
  .bottom-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacer) * 2);
    padding: calc(var(--spacer) * 2.5);
  }
}

.bottom-stat-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  min-width: 0;
}

.bottom-stat-item i {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.bottom-stat-content {
  flex: 1;
  min-width: 0;
}

.bottom-stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .bottom-stat-value {
    font-size: 1rem;
  }
}

/* ========================================================================
   SECTION 11: ORDERS DASHBOARD
   ======================================================================== */

.orders-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Orders Header */
.orders-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .orders-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.orders-header .page-title {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

@media (min-width: 768px) {
  .orders-header .page-title {
    font-size: 1.6rem;
  }
}

.orders-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: calc(var(--spacer) * 0.5);
  word-break: break-word;
}

/* Orders Actions */
.orders-actions {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .orders-actions {
    width: auto;
  }
}

/* Order Stats Grid */
.order-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
}

@media (min-width: 480px) {
  .order-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacer) * 2.5);
  }
}

.stat-card.compact {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 0;
}

.stat-card.compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

.stat-icon.pending {
  background: #fef3e2;
  color: #b45309;
}

.stat-icon.warning {
  background: #fef3e2;
  color: #b45309;
}

.stat-icon.active {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-icon.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-content .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
  word-break: break-word;
}

.stat-content .stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
}

/* Filters Section */
.filters-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .filters-section {
    flex-direction: row;
    align-items: center;
    padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 3);
    gap: calc(var(--spacer) * 3);
  }
}

.orders-search-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
}

.orders-search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.orders-search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.5;
  color: var(--text-dark);
  box-sizing: border-box;
}

.orders-search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .filter-group {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: calc(var(--spacer) * 2);
  }
}

.filter-select {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 3)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 2.5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(var(--spacer) * 2) center;
  background-size: 14px;
  padding-right: calc(var(--spacer) * 5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-select:hover {
  border-color: var(--accent);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-group .btn-outline {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin: 0;
}

@media (min-width: 640px) {
  .filter-group .btn-outline {
    width: auto;
    min-width: 100px;
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  }
}

.filter-group .btn-outline:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

.order-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  width: 100%;
  min-width: 0;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.order-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.2);
  margin-bottom: calc(var(--spacer) * 2);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .order-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 1.5);
  }
}

.order-badges {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 480px) {
  .order-badges {
    width: auto;
  }
}

.order-id {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.order-date {
  color: var(--text-soft);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2);
}

@media (min-width: 640px) {
  .order-card-body {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.customer-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  min-width: 0;
  flex: 1;
}

.customer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.customer-details {
  min-width: 0;
  flex: 1;
}

.customer-details h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-title {
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-meta {
  display: flex;
  gap: calc(var(--spacer) * 2);
  flex-wrap: wrap;
  min-width: 0;
}

.meta-item {
  min-width: 0;
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  white-space: nowrap;
}

.meta-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.meta-value.has-amount {
  color: var(--accent);
}

.order-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.5);
  padding-top: calc(var(--spacer) * 1.5);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .order-card-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 2);
  }
}

.order-card-footer .btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  border-radius: 30px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.8);
  min-height: 44px;
  width: 100%;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

@media (min-width: 480px) {
  .order-card-footer .btn-text {
    width: auto;
    min-width: 140px;
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2.5);
    font-size: 0.95rem;
  }
}

.order-card-footer .btn-text i {
  font-size: 0.8rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.order-card-footer .btn-text:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.order-card-footer .btn-text:hover i {
  transform: translateX(4px);
}

/* Empty State */
.empty-orders {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
}

.empty-illustration i {
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 3);
}

.empty-orders h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 1.5);
  word-break: break-word;
}

.empty-orders p {
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) * 3);
  font-size: 0.95rem;
  word-break: break-word;
}

.empty-orders .btn-primary {
  display: inline-flex;
  width: auto;
  min-width: 180px;
}

/* ========================================================================
   SECTION 12: ORDER DETAIL VIEW
   ======================================================================== */

.order-detail-view {
  width: 100%;
  padding: calc(var(--spacer) * 2);
}

.detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 3);
}

@media (min-width: 640px) {
  .detail-header {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.detail-header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-word;
  flex: 1;
}

@media (min-width: 768px) {
  .detail-header h1 {
    font-size: 1.5rem;
  }
}

.header-actions {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .header-actions {
    width: auto;
    gap: calc(var(--spacer) * 2);
  }
}

.header-actions .btn-outline {
  min-width: 120px;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  font-size: 0.85rem;
}

/* Status Bar */
.status-bar {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
}

@media (min-width: 768px) {
  .status-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
    padding: calc(var(--spacer) * 3);
  }
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  word-break: break-word;
}

.status-value {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  word-break: break-word;
  flex-wrap: wrap;
}

.status-progress {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.5;
  transition: all 0.3s ease;
  min-width: 50px;
}

.progress-step.complete {
  opacity: 1;
  color: var(--accent);
}

.progress-step i {
  font-size: 1rem;
}

.progress-step span {
  font-size: 0.6rem;
  text-align: center;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 3);
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacer) * 4);
  }
}

/* Info Card */
.info-card,
.milestones-card,
.updates-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
}

.info-card h3,
.milestones-card h3,
.updates-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  color: var(--text-dark);
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--spacer) * 1.2) 0;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 480px) {
  .info-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 2);
  }
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  word-break: break-word;
}

.info-value {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Quote Card */
.quote-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  border-left: 4px solid var(--accent);
}

.quote-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: calc(var(--spacer) * 2);
}

@media (min-width: 480px) {
  .quote-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacer) * 2.5);
  }
}

.quote-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-meta-item .meta-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-meta-item .meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
}

.quote-breakdown {
  margin-bottom: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 12px;
}

.quote-actions {
  display: flex;
  gap: calc(var(--spacer));
  flex-wrap: wrap;
}

.quote-actions .btn-primary,
.quote-actions .btn-outline,
.quote-actions .btn-danger {
  flex: 1;
  min-width: 120px;
}

/* Milestones */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.2);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.milestone-item.completed {
  opacity: 0.8;
  background: #e3f2e9;
}

.milestone-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer));
}

@media (min-width: 480px) {
  .milestone-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.milestone-title {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.8);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
  flex: 1;
}

.milestone-title i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.milestone-amount {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}

.milestone-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-soft);
  width: fit-content;
}

/* Updates */
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  max-height: 400px;
  overflow-y: auto;
  padding-right: calc(var(--spacer));
}

.update-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 14px;
}

.update-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.update-content {
  flex: 1;
  min-width: 0;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: calc(var(--spacer));
}

.update-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.update-time {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.update-text {
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 0.85rem;
  word-break: break-word;
}

.update-media img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: calc(var(--spacer));
}

/* Order Actions Footer */
.order-actions-footer {
  margin-top: calc(var(--spacer) * 4);
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
  justify-content: flex-end;
}

.order-actions-footer .btn-primary,
.order-actions-footer .btn-outline,
.order-actions-footer .btn-danger {
  min-width: 160px;
}

/* ========================================================================
   SECTION 14: BOOKING MODAL
   ======================================================================== */

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

@media (min-width: 480px) {
  .booking-modal {
    align-items: center;
  }
}

.booking-modal .modal-content {
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@media (min-width: 480px) {
  .booking-modal .modal-content {
    border-radius: 24px;
    width: 90%;
  }
}

.booking-modal .modal-header {
  padding: calc(var(--spacer) * 2.5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
  border-radius: 24px 24px 0 0;
}

.booking-modal .modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.booking-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.booking-modal .modal-close:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.booking-modal .modal-body {
  padding: calc(var(--spacer) * 2.5);
}

.booking-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacer) * 2);
}

.booking-status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.booking-status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-status-badge.modified {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

.booking-status-badge.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-status-badge.declined {
  background: #fee2e2;
  color: #991b1b;
}

.booking-modal .modal-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: calc(var(--spacer) * 2) 0 calc(var(--spacer));
}

.provider-info,
.service-info,
.booking-schedule,
.booking-notes,
.booking-timeline,
.modified-info {
  background: var(--bg);
  border-radius: 14px;
  padding: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2);
}

.provider-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: calc(var(--spacer));
}

.provider-details .provider-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.provider-details .provider-email,
.provider-details .provider-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.provider-details i {
  color: var(--accent);
  width: 16px;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer));
}

.service-description {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.schedule-datetime {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  margin-top: calc(var(--spacer));
}

.datetime-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacer));
  padding: calc(var(--spacer) * 0.8) 0;
  border-bottom: 1px dashed var(--border-light);
}

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

.datetime-item .label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.datetime-item .value {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.modified-dates {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  margin-top: calc(var(--spacer));
}

.original-date,
.new-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacer) * 0.8) 0;
}

.original-date .value {
  text-decoration: line-through;
  color: var(--text-soft);
}

.new-date .value {
  font-weight: 600;
  color: #b45309;
  background: #fef3e2;
  padding: 4px 8px;
  border-radius: 20px;
}

.booking-modal .modal-footer {
  padding: calc(var(--spacer) * 2.5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  background: var(--bg);
  border-radius: 0 0 24px 24px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

@media (min-width: 480px) {
  .booking-modal .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: calc(var(--spacer) * 2);
  }
}

.booking-modal .modal-footer .btn-primary,
.booking-modal .modal-footer .btn-outline,
.booking-modal .modal-footer .btn-danger {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .booking-modal .modal-footer .btn-primary,
  .booking-modal .modal-footer .btn-outline,
  .booking-modal .modal-footer .btn-danger {
    width: auto;
    min-width: 120px;
  }
}

.btn-danger {
  background: #ef4444;
  color: white;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-weight: 500;
  width: auto;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ========================================================================
   SECTION 15: CALENDAR VIEW
   ======================================================================== */

.calendar-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
  overflow-x: hidden;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2.5);
}

@media (min-width: 768px) {
  .calendar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.calendar-header .page-title {
  font-size: 1.4rem;
  margin: 0;
  word-break: break-word;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: calc(var(--spacer));
}

@media (min-width: 768px) {
  .calendar-navigation {
    width: auto;
    gap: calc(var(--spacer) * 2);
  }
}

.calendar-navigation h2 {
  font-size: 1.1rem;
  font-weight: 500;
  min-width: 140px;
  text-align: center;
  margin: 0;
  padding: 0 calc(var(--spacer));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-navigation .btn-icon {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.calendar-navigation .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-actions {
    flex-direction: row;
    width: auto;
    gap: calc(var(--spacer) * 1.5);
  }
}

.calendar-actions .btn-outline,
.calendar-actions .btn-primary {
  width: 100%;
  min-height: 44px;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .calendar-actions .btn-outline,
  .calendar-actions .btn-primary {
    width: auto;
    min-width: 140px;
  }
}

.calendar-view-options {
  display: flex;
  gap: calc(var(--spacer) * 0.8);
  margin-bottom: calc(var(--spacer) * 2.5);
  overflow-x: auto;
  padding: 0 0 calc(var(--spacer) * 1.5) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  white-space: nowrap;
  width: 100%;
}

.calendar-view-options::-webkit-scrollbar {
  height: 3px;
}

.calendar-view-options::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.calendar-view-options::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.view-btn {
  padding: calc(var(--spacer) * 1) calc(var(--spacer) * 1.8);
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer) * 0.5);
}

@media (min-width: 768px) {
  .view-btn {
    flex: 1 1 auto;
  }
}

.view-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text-dark);
}

.view-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.calendar-container {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: calc(var(--spacer) * 2);
}

@media (min-width: 768px) {
  .calendar-container {
    padding: calc(var(--spacer) * 3);
    overflow-x: visible;
  }
}

.calendar-footer-note {
  margin-top: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 12px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  border: 1px solid var(--border-light);
}

.calendar-footer-note i {
  color: var(--accent);
  font-size: 1rem;
}

/* Month View */
.month-view {
  min-width: 300px;
  width: 100%;
}

.month-view .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: calc(var(--spacer) * 1.5);
  padding: 0 2px;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: var(--text-soft);
  padding: calc(var(--spacer) * 0.8) 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.month-view .calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.month-view .calendar-day {
  min-height: 70px;
  padding: calc(var(--spacer) * 0.8);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .month-view .calendar-day {
    min-height: 100px;
    padding: calc(var(--spacer) * 1.2);
  }
}

.month-view .calendar-day:hover {
  background: var(--card-bg);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.month-view .calendar-day.today {
  border: 2px solid var(--accent);
  background: #f2ebe3;
}

.month-view .calendar-day.empty {
  background: transparent;
  cursor: default;
  opacity: 0.5;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 0.3);
}

.day-number {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.day-badges {
  display: flex;
  gap: 2px;
}

.booking-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.booking-badge.pending {
  background: #f59e0b;
}

.booking-badge.confirmed {
  background: #10b981;
}

.booking-badge.completed {
  background: #3b82f6;
}

.day-bookings {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 1px;
  overflow: hidden;
  flex: 1;
}

.day-booking {
  padding: 1px 2px;
  border-radius: 2px;
  font-size: 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  margin-bottom: 1px;
}

@media (min-width: 768px) {
  .day-booking {
    padding: 2px 4px;
    font-size: 0.65rem;
  }
}

.day-booking.pending {
  background: #f59e0b;
}

.day-booking.confirmed {
  background: #10b981;
}

.day-booking.completed {
  background: #3b82f6;
}

.day-booking .booking-time {
  font-weight: 600;
  margin-right: 2px;
}

@media (max-width: 480px) {
  .day-booking .booking-customer {
    display: none;
  }
}

.more-bookings {
  font-size: 0.5rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 1px;
  font-weight: 500;
}

/* ========================================================================
   SECTION 16: MESSAGES FULL WIDTH
   ======================================================================== */

.messages-fullwidth {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
}

.messages-fullwidth .messages-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
}

@media (max-width: 768px) {
  .messages-fullwidth .messages-header {
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--spacer) * 1.5);
  }
}

.messages-fullwidth .messages-header .header-left {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 3);
  flex-wrap: wrap;
}

.messages-fullwidth .messages-header .page-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.messages-fullwidth .filter-tabs {
  display: flex;
  gap: calc(var(--spacer) * 0.5);
  background: var(--bg);
  padding: 4px;
  border-radius: 40px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .messages-fullwidth .filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

.messages-fullwidth .filter-tab {
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  background: transparent;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 40px;
}

.messages-fullwidth .filter-tab:hover {
  color: var(--text-dark);
  background: var(--card-bg);
}

.messages-fullwidth .filter-tab.active {
  background: var(--accent);
  color: white;
}

.messages-fullwidth .header-right {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
}

.messages-fullwidth .search-box {
  position: relative;
  width: 250px;
}

@media (max-width: 768px) {
  .messages-fullwidth .search-box {
    width: 100%;
  }
}

.messages-fullwidth .search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.messages-fullwidth .search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 1.5)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  min-height: 44px;
}

.messages-fullwidth .btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.messages-fullwidth .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.messages-fullwidth .btn-primary {
  min-height: 44px;
  padding: 0 calc(var(--spacer) * 2.5);
}

/* Messages Container */
.messages-fullwidth-container {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 180px);
  background: white;
  overflow: hidden;
}

@media (max-width: 768px) {
  .messages-fullwidth-container {
    height: calc(100vh - 220px);
  }
}

/* Conversations Sidebar */
.messages-fullwidth-container .conversations-sidebar {
  width: 350px;
  border-right: 1px solid var(--border-light);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .messages-fullwidth-container .conversations-sidebar {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .messages-fullwidth-container .conversations-sidebar {
    width: 100%;
    border-right: none;
    display: block;
  }

  .messages-fullwidth-container .conversations-sidebar.hide-mobile {
    display: none;
  }
}

.conversations-header {
  padding: calc(var(--spacer) * 2);
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.conversations-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.conversation-count {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: normal;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--spacer) * 1.5);
}

/* Conversation Item */
.conversation-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.conversation-item:hover {
  background: white;
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.conversation-item.active {
  background: #f2ebe3;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.1);
}

.conversation-item.unread {
  background: #f8fafc;
}

.conversation-item.unread .conversation-name {
  font-weight: 700;
  color: var(--accent);
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
  text-transform: uppercase;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.conversation-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.conversation-time {
  font-size: 0.65rem;
  color: var(--text-soft);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.conversation-last-message {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.conversation-status {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.status-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-indicator.requests {
  background: #fef3e2;
  color: #b45309;
}

.status-indicator.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-indicator.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.unread-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(183, 140, 90, 0.3);
  animation: pulse 2s infinite;
}

/* Message Thread */
.messages-fullwidth-container .message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
}

.thread-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  padding: calc(var(--spacer) * 4);
  background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
}

.thread-placeholder i {
  font-size: 4rem;
  margin-bottom: calc(var(--spacer) * 2);
  opacity: 0.2;
  color: var(--accent);
}

.thread-placeholder h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
  font-family: var(--font-serif);
}

.thread-placeholder p {
  margin-bottom: calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.thread-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 5;
}

@media (max-width: 768px) {
  .thread-header {
    padding: calc(var(--spacer) * 1.5);
  }
}

.back-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .back-btn {
    display: flex;
  }
}

.back-btn:hover {
  background: var(--bg);
  color: var(--accent);
}

.thread-user-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  flex: 1;
  min-width: 0;
}

.thread-user-info .user-avatar {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status.online {
  color: #10b981;
}

.user-status.online::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 2s infinite;
}

.user-status.offline {
  color: var(--text-soft);
}

.thread-actions {
  display: flex;
  gap: 4px;
}

.thread-actions .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  transition: all 0.2s;
  font-size: 0.95rem;
}

.thread-actions .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Messages List */
.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--spacer) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 768px) {
  .messages-list {
    padding: calc(var(--spacer) * 1.5);
  }
}

.date-divider {
  text-align: center;
  margin: calc(var(--spacer) * 1.5) 0;
  color: var(--text-soft);
  font-size: 0.7rem;
  position: relative;
}

.date-divider span {
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: inline-block;
}

.message-item {
  display: flex;
  margin-bottom: 4px;
  animation: fadeIn 0.3s ease;
}

.message-item.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 60%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .message-bubble {
    max-width: 80%;
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  }
}

.message-item.received .message-bubble {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.message-item.sent .message-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border-bottom-right-radius: 4px;
}

.message-text {
  line-height: 1.5;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  opacity: 0.8;
}

.message-item.sent .message-footer {
  color: rgba(255, 255, 255, 0.9);
}

.message-time {
  font-size: 0.6rem;
}

.message-status {
  font-size: 0.65rem;
}

/* Message Attachments */
.message-attachment {
  margin-top: calc(var(--spacer));
  border-radius: 12px;
  overflow: hidden;
}

.message-attachment.image img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-attachment.file {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.message-item.sent .message-attachment.file {
  background: rgba(255, 255, 255, 0.15);
}

.message-attachment.file i {
  font-size: 1.5rem;
  color: inherit;
}

.file-info {
  flex: 1;
  min-width: 120px;
}

.file-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 140, 90, 0.05),
    transparent
  );
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Message Input */
.message-input-container {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-top: 1px solid var(--border-light);
  background: white;
}

@media (max-width: 768px) {
  .message-input-container {
    padding: calc(var(--spacer) * 1.5);
  }
}

.input-wrapper {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 4px 4px 4px calc(var(--spacer) * 2);
  transition: all 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.input-wrapper textarea {
  flex: 1;
  padding: calc(var(--spacer) * 1.5) 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  resize: none;
  max-height: 100px;
  line-height: 1.5;
  outline: none;
}

.input-actions {
  display: flex;
  gap: 2px;
  padding: 2px;
}

.input-actions .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.input-actions .btn-icon:hover {
  background: var(--bg);
  color: var(--accent);
}

.send-btn {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
}

.send-btn:hover {
  background: var(--accent-light) !important;
  transform: scale(1.05);
}

/* ========================================================================
   SECTION 18: REVIEWS DASHBOARD
   ======================================================================== */

.reviews-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.reviews-header {
  margin-bottom: calc(var(--spacer) * 3);
}

.reviews-header .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.reviews-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
}

.reviews-stats .stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
}

.reviews-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.reviews-stats .stat-content {
  flex: 1;
}

.reviews-stats .stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.reviews-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reviews-tabs {
  display: flex;
  gap: calc(var(--spacer));
  border-bottom: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 3);
  overflow-x: auto;
  padding-bottom: 2px;
  white-space: nowrap;
}

.reviews-tabs .tab-btn {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
}

.reviews-tabs .tab-btn:hover {
  color: var(--text-dark);
}

.reviews-tabs .tab-btn.active {
  color: var(--accent);
}

.reviews-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.reviews-container {
  min-height: 300px;
}

.pending-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2.5);
}

.review-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.review-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.review-info p {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-bottom: calc(var(--spacer) * 0.5);
}

.review-date {
  font-size: 0.7rem;
  color: var(--accent);
}

.review-card .btn-primary {
  width: 100%;
}

.written-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2.5);
}

.written-review-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.review-provider {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
}

.review-service {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: calc(var(--spacer) * 1.2);
}

.review-text {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--spacer) * 1.2);
  border-top: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: calc(var(--spacer) * 0.5);
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
}

.star-rating i {
  transition: all 0.2s;
}

.star-rating i.active,
.star-rating i.fas.fa-star {
  color: #fbbf24;
}

.star-rating i:hover {
  transform: scale(1.1);
}

/* ========================================================================
   SECTION 20: PROFILE SETTINGS
   ======================================================================== */

/* Redesigned Profile Dashboard */
.profile-dashboard {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: 30px;
}

.profile-header .page-title {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.profile-header .page-subtitle {
  color: var(--text-soft);
  font-size: 1rem;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 15px;
}

.profile-tabs .tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-tabs .tab-btn i {
  font-size: 1.1rem;
}

.profile-tabs .tab-btn:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.profile-tabs .tab-btn.active {
  background: var(--accent);
  color: white;
}

/* Profile Cards */
.profile-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.profile-card-header {
  margin-bottom: 25px;
}

.profile-card-header h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-card-header h2 i {
  color: var(--accent);
}

/* Avatar Section - Integrated Design */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: var(--bg);
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.avatar-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview .avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.avatar-overlay span {
  font-size: 0.7rem;
}

.avatar-info {
  flex: 1;
}

.avatar-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.avatar-info p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.avatar-actions {
  display: flex;
  gap: 10px;
}

.avatar-actions .btn-outline,
.avatar-actions .btn-text {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group .required {
  color: #ef4444;
}

.form-group .field-hint {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-control {
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.form-control:disabled {
  background: var(--bg);
  color: var(--text-soft);
  cursor: not-allowed;
}

/* Message Alert */
.message-alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-alert.success {
  background: #e3f2e9;
  color: #2f6e4a;
}

.message-alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.message-alert i {
  font-size: 1.1rem;
}

/* Password Requirements */
.password-strength {
  margin-top: 10px;
}

.strength-meter {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s;
}

.strength-fill.weak {
  background: #ef4444;
  width: 33%;
}

.strength-fill.medium {
  background: #f59e0b;
  width: 66%;
}

.strength-fill.strong {
  background: #10b981;
  width: 100%;
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.password-requirements {
  background: var(--bg);
  padding: 15px;
  border-radius: 12px;
  margin: 15px 0;
}

.password-requirements p {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.password-requirements li i {
  font-size: 0.8rem;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.invalid {
  color: #64748b;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-actions .btn-primary {
  padding: 14px 30px;
  font-size: 1rem;
  min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
  }

  .profile-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .profile-tabs .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .avatar-actions {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .avatar-preview {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

/* ========================================================================
   SECTION 21: MODALS
   ======================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: calc(var(--spacer));
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 24px;
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.3s ease;
  position: relative;
}

@media (min-width: 480px) {
  .modal-content {
    width: 90%;
    border-radius: 28px;
  }
}

.modal-header {
  padding: calc(var(--spacer) * 2.5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
  border-radius: 24px 24px 0 0;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.modal-body {
  padding: calc(var(--spacer) * 2.5);
}

.modal-footer {
  padding: calc(var(--spacer) * 2.5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  background: var(--bg);
  border-radius: 0 0 24px 24px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

@media (min-width: 480px) {
  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: calc(var(--spacer) * 2);
  }
}

.modal-footer .btn-outline,
.modal-footer .btn-primary,
.modal-footer .btn-danger {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .modal-footer .btn-outline,
  .modal-footer .btn-primary,
  .modal-footer .btn-danger {
    width: auto;
    min-width: 120px;
  }
}

/* Users List (for new message modal) */
.users-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: calc(var(--spacer) * 2);
}

.user-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 1.5);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.user-item:hover {
  background: var(--bg);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.user-item .user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================
   SECTION 22: LOADING STATES & SKELETONS
   ======================================================================== */

.loading-state {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  color: var(--text-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: calc(var(--spacer) * 2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  height: 80px;
  margin: calc(var(--spacer) * 2);
}

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

/* ========================================================================
   SECTION 23: TOAST NOTIFICATIONS
   ======================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
}

@media (max-width: 480px) {
  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

.toast-notification {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  min-width: 280px;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .toast-notification {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
}

.toast-notification.success {
  border-left-color: #10b981;
}

.toast-notification.error {
  border-left-color: #ef4444;
}

.toast-notification.info {
  border-left-color: var(--accent);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-notification i {
  font-size: 1rem;
}

.toast-notification.success i {
  color: #10b981;
}

.toast-notification.error i {
  color: #ef4444;
}

.toast-notification.info i {
  color: var(--accent);
}

/* ========================================================================
   SECTION 24: ANIMATIONS
   ======================================================================== */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* ========================================================================
   SECTION 25: RESPONSIVE UTILITIES
   ======================================================================== */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }

  .show-mobile {
    display: none;
  }
}

/* Touch targets */
.nav-item,
.nav-section-header,
.nav-subitem,
.icon-btn,
.profile-btn,
.mobile-menu-toggle,
.sidebar-close,
.bottom-nav-item,
.btn-primary,
.btn-outline,
.btn-text,
.btn-icon,
.filter-tab,
.tab-btn,
.modal-close {
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on iOS */
input,
select,
textarea {
  font-size: 16px;
}

/* Smooth scrolling */
.dashboard-content,
.messages-list,
.conversations-list,
.notifications-list,
.profile-content,
.modal-body,
.users-list {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ========================================================================
   SECTION 26: PRINT STYLES
   ======================================================================== */

@media print {
  .dashboard-sidebar,
  .dashboard-header,
  .mobile-bottom-nav,
  .icon-btn,
  .profile-btn,
  .btn-primary,
  .btn-outline,
  .btn-text,
  .btn-icon,
  .filter-tabs,
  .filter-actions,
  .calendar-actions,
  .calendar-navigation .btn-icon,
  .view-btn,
  .modal-close,
  .modal-footer {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .order-card,
  .booking-card,
  .wishlist-item,
  .profile-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  body * {
    visibility: hidden;
  }

  .dashboard-main,
  .dashboard-main * {
    visibility: visible;
  }

  .dashboard-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* frontend/public/css/dashboard-customer.css - FIXED FULL WIDTH */

/* ========================================================================
   DASHBOARD CUSTOMER CSS - FULL WIDTH FIX
   ======================================================================== */

@import url("./styles.css");

/* ========================================================================
   SECTION 1: LAYOUT & CONTAINERS - FULL WIDTH
   ======================================================================== */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  background: var(--bg);
  position: relative;
  /* overflow-x handled by body — removed so position:fixed sidebar works */
}

/* Main Content - Takes remaining width */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  background: var(--bg);
}

/* Main Content Area - Full width within main */
.dashboard-content {
  width: 100%;
  padding: calc(var(--spacer) * 3);
  box-sizing: border-box;
}

/* Individual section containers - Full width */
.overview-dashboard,
.orders-dashboard,
.bookings-dashboard,
.calendar-dashboard,
.messages-dashboard,
.wishlist-dashboard,
.reviews-dashboard {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Container for content that needs max-width constraint */
.content-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================================================
   SECTION 2: FIXED SIDEBAR WIDTH
   ======================================================================== */

.dashboard-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-right: 1px solid var(--border-light);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

/* ========================================================================
   SECTION 3: RESPONSIVE ADJUSTMENTS
   ======================================================================== */

/* Tablet - Sidebar hidden by default */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }
}

/* Mobile - Full width */
@media (max-width: 767px) {
  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-content {
    padding: calc(var(--spacer) * 2);
    padding-bottom: calc(var(--spacer) * 8);
  }
}

/* ========================================================================
   SECTION 4: OVERVIEW DASHBOARD - FULL WIDTH
   ======================================================================== */

.overview-dashboard {
  width: 100%;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 640px) {
  .welcome-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 4);
  }
}

.welcome-text {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  word-break: break-word;
}

/* Stats Grid - Full width responsive grid */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

.stat-card-modern {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

/* Insights Grid - Full width */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacer) * 3);
  }
}

/* Activity Feed - Full width */
.activity-feed,
.insights-panel,
.schedule-panel {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Bottom Stats - Full width */
.bottom-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 1.5);
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  margin-top: calc(var(--spacer) * 2);
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================================
   SECTION 5: ORDERS DASHBOARD - FULL WIDTH
   ======================================================================== */

.orders-dashboard {
  width: 100%;
}

/* Orders Header */
.orders-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 640px) {
  .orders-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.orders-header .page-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

/* Order Stats Grid - Full width */
.order-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

/* Filters Section - Full width */
.filters-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 640px) {
  .filters-section {
    flex-direction: row;
    align-items: center;
    padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 3);
    gap: calc(var(--spacer) * 3);
  }
}

.orders-search-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
}

.orders-search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  min-height: 44px;
  box-sizing: border-box;
}

/* Orders List - Full width */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

/* Order Cards - Full width within container */
.order-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================================
   SECTION 6: BOOKINGS DASHBOARD - FULL WIDTH
   ======================================================================== */

.bookings-dashboard {
  width: 100%;
}

.bookings-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 640px) {
  .bookings-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.booking-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

.bookings-filters {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

/* ========================================================================
   SECTION 7: CALENDAR - FULL WIDTH
   ======================================================================== */

.calendar-dashboard {
  width: 100%;
  padding: 0;
  overflow-x: hidden;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2.5);
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.calendar-container {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

/* Month View - Full width */
.month-view {
  min-width: 100%;
  width: 100%;
}

.month-view .calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  width: 100%;
}

.month-view .calendar-day {
  min-height: 100px;
  padding: calc(var(--spacer) * 0.8);
  background: var(--bg);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================================
   SECTION 8: MESSAGES - FULL WIDTH
   ======================================================================== */

.messages-fullwidth {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
}

.messages-fullwidth .messages-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
  width: 100%;
  box-sizing: border-box;
}

.messages-fullwidth-container {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 180px);
  background: white;
  overflow: hidden;
  width: 100%;
}

/* Conversations Sidebar - Fixed width */
.messages-fullwidth-container .conversations-sidebar {
  width: 350px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

/* Message Thread - Takes remaining width */
.messages-fullwidth-container .message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
  width: 100%;
}

/* ========================================================================
   WISHLIST DASHBOARD - COMPLETE REDESIGN
   ======================================================================== */

.wishlist-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .wishlist-dashboard {
    padding: 30px;
  }
}

/* ========================================================================
   WISHLIST HEADER - PREMIUM
   ======================================================================== */

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.wishlist-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.wishlist-header .page-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 5px 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wishlist-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.wishlist-stats {
  display: flex;
  gap: 15px;
  background: white;
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.wishlist-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.wishlist-stat-item i {
  color: var(--accent);
  font-size: 1rem;
}

.wishlist-stat-item .stat-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.wishlist-stat-item .stat-label {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.wishlist-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

@media (max-width: 768px) {
  .wishlist-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .wishlist-header .page-title {
    font-size: 1.5rem;
  }

  .wishlist-stats {
    width: 100%;
    justify-content: space-around;
  }
}

@media (max-width: 480px) {
  .wishlist-stats {
    flex-wrap: wrap;
  }

  .wishlist-stat-divider {
    display: none;
  }
}

/* ========================================================================
   WISHLIST FILTERS - ENHANCED
   ======================================================================== */

.wishlist-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  background: white;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
  align-items: center;
}

.wishlist-search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.wishlist-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.wishlist-search-box input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: var(--bg);
  color: var(--text-dark);
}

.wishlist-search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.wishlist-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wishlist-filter-select {
  padding: 12px 35px 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  min-height: 44px;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 40px;
  min-width: 140px;
}

.wishlist-filter-select:hover {
  border-color: var(--accent);
}

.wishlist-filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.clear-wishlist-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.clear-wishlist-filters:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

.active-wishlist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.wishlist-filter-tag {
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
  border: 1px solid var(--accent-light);
  border-radius: 40px;
  padding: 6px 12px 6px 16px;
  font-size: 0.75rem;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: tagPop 0.3s ease;
}

.wishlist-filter-tag i {
  color: var(--accent);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 2px;
}

.wishlist-filter-tag i:hover {
  color: #ef4444;
  transform: scale(1.2);
}

@keyframes tagPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .wishlist-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .wishlist-search-box {
    width: 100%;
  }

  .wishlist-filter-group {
    width: 100%;
  }

  .wishlist-filter-select {
    flex: 1;
    min-width: 120px;
  }

  .clear-wishlist-filters {
    width: 100%;
  }
}

/* ========================================================================
   WISHLIST GRID - MODERN CARD LAYOUT
   ======================================================================== */

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (min-width: 1024px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (min-width: 1400px) {
  .wishlist-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* ========================================================================
   WISHLIST ITEM - PREMIUM CARD
   ======================================================================== */

.wishlist-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardAppear 0.4s ease;
}

.wishlist-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(183, 140, 90, 0.25);
  border-color: var(--accent);
}

.wishlist-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
  z-index: 2;
}

.wishlist-item:hover::before {
  transform: scaleX(1);
}

/* Item Type Badge */
.wishlist-item-type {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.1);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-light);
}

.wishlist-item-type.service {
  color: var(--accent);
}

.wishlist-item-type.product {
  color: #3b82f6;
}

.wishlist-item-type i {
  font-size: 0.7rem;
}

/* Remove Button */
.wishlist-item-remove {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.15);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  z-index: 5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.wishlist-item:hover .wishlist-item-remove {
  opacity: 1;
  transform: scale(1);
}

.wishlist-item-remove:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 15px -5px rgba(239, 68, 68, 0.3);
}

/* Item Image */
.wishlist-item-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%);
  flex-shrink: 0;
}

.wishlist-item-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wishlist-item:hover .wishlist-item-image::after {
  opacity: 1;
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wishlist-item:hover .wishlist-item-image img {
  transform: scale(1.08);
}

/* Provider Info Overlay */
.wishlist-provider-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.8rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 4;
}

.wishlist-item:hover .wishlist-provider-badge {
  transform: translateY(0);
}

.wishlist-provider-badge i {
  color: var(--accent);
  font-size: 0.8rem;
}

.wishlist-provider-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Item Content */
.wishlist-item-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  position: relative;
}

.wishlist-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.wishlist-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  background: #f2ebe3;
  padding: 4px 12px;
  border-radius: 30px;
  line-height: 1.2;
}

/* Category Badge */
.wishlist-item-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
  width: fit-content;
}

.wishlist-item-category i {
  color: var(--accent);
  font-size: 0.65rem;
}

/* Description */
.wishlist-item-description {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta Row */
.wishlist-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 30px;
}

.wishlist-item-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wishlist-item-date i {
  color: var(--accent);
  font-size: 0.6rem;
}

.wishlist-item-provider {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.wishlist-item-provider i {
  color: var(--accent);
  font-size: 0.6rem;
}

/* Action Buttons */
.wishlist-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.wishlist-item-actions .btn-primary,
.wishlist-item-actions .btn-outline {
  flex: 1;
  padding: 10px;
  font-size: 0.8rem;
  min-height: 40px;
  border-radius: 40px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.wishlist-item-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: white;
}

.wishlist-item-actions .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

.wishlist-item-actions .btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.wishlist-item-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
  transform: translateY(-2px);
}

/* ========================================================================
   EMPTY WISHLIST STATE
   ======================================================================== */

.empty-wishlist {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 30px;
  border: 2px dashed var(--border-light);
}

.empty-wishlist i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-wishlist h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-wishlist p {
  color: var(--text-soft);
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-wishlist-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-wishlist-actions .btn-primary,
.empty-wishlist-actions .btn-outline {
  padding: 12px 30px;
  min-width: 180px;
}

@media (max-width: 480px) {
  .empty-wishlist-actions {
    flex-direction: column;
    align-items: center;
  }

  .empty-wishlist-actions .btn-primary,
  .empty-wishlist-actions .btn-outline {
    width: 100%;
  }
}

/* ========================================================================
   WISHLIST LOADING SKELETON
   ======================================================================== */

.wishlist-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.wishlist-skeleton-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 380px;
}

.wishlist-skeleton-image {
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.wishlist-skeleton-content {
  padding: 20px;
}

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

.wishlist-skeleton-line.short {
  width: 60%;
}

.wishlist-skeleton-line.medium {
  width: 80%;
}

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

/* ========================================================================
   WISHLIST ANIMATIONS
   ======================================================================== */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.wishlist-item-remove:active i {
  animation: heartBeat 0.3s ease;
}

/* ========================================================================
   WISHLIST RESPONSIVE BREAKPOINTS
   ======================================================================== */

@media (max-width: 768px) {
  .wishlist-item-image {
    height: 160px;
  }

  .wishlist-item-content {
    padding: 16px;
  }

  .wishlist-item-title {
    font-size: 1rem;
  }

  .wishlist-item-price {
    font-size: 1rem;
    padding: 3px 10px;
  }

  .wishlist-item-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 480px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wishlist-item-actions {
    flex-direction: column;
  }

  .wishlist-provider-badge {
    transform: translateY(0);
    opacity: 0.8;
  }

  .wishlist-item-remove {
    opacity: 1;
    transform: scale(1);
  }
}
/* ========================================================================
   ENHANCED WISHLIST DASHBOARD
   ======================================================================== */

.wishlist-dashboard-enhanced {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .wishlist-dashboard-enhanced {
    padding: 30px;
  }
}

/* ========================================================================
   WISHLIST HEADER
   ======================================================================== */

.wishlist-header-enhanced {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.wishlist-header-enhanced .page-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 5px 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wishlist-header-enhanced .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================================================
   WISHLIST STATS GRID
   ======================================================================== */

.wishlist-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card-mini {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-card-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.15);
  border-color: var(--accent);
}

.stat-card-mini.active {
  border-color: var(--accent);
  background: #f2ebe3;
}

.stat-card-mini .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-card-mini.all .stat-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-card-mini.products .stat-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-card-mini.services .stat-icon {
  background: rgba(183, 140, 90, 0.1);
  color: var(--accent);
}

.stat-card-mini .stat-content {
  flex: 1;
  min-width: 0;
}

.stat-card-mini .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
}

.stat-card-mini .stat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

/* ========================================================================
   WISHLIST TYPE TABS
   ======================================================================== */

.wishlist-type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  width: fit-content;
}

.type-tab {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.type-tab i {
  font-size: 0.85rem;
}

.type-tab .tab-badge {
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.type-tab:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.type-tab.active {
  background: var(--accent);
  color: white;
}

.type-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ========================================================================
   WISHLIST FILTERS
   ======================================================================== */

.wishlist-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  padding: 15px;
  border-radius: 60px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.search-wrapper {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: white;
  color: var(--text-dark);
  min-height: 44px;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-select-enhanced {
  padding: 12px 35px 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: white;
  min-height: 44px;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 40px;
  min-width: 140px;
}

.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================================
   WISHLIST SECTIONS
   ======================================================================== */

.wishlist-section {
  margin-bottom: 40px;
}

.wishlist-section .section-title-serif {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-light);
}

.wishlist-section.products-section .section-title-serif i {
  color: #3b82f6;
}

.wishlist-section.services-section .section-title-serif i {
  color: var(--accent);
}

.wishlist-section .section-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========================================================================
   WISHLIST GRID
   ======================================================================== */

.wishlist-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ========================================================================
   WISHLIST CARD - BASE
   ======================================================================== */

.wishlist-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardAppear 0.3s ease;
  position: relative;
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

/* ========================================================================
   WISHLIST CARD IMAGE
   ======================================================================== */

.wishlist-card-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.wishlist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.remove-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
  opacity: 0;
  transform: scale(0.8);
}

.wishlist-card:hover .remove-wishlist-btn {
  opacity: 1;
  transform: scale(1);
}

.remove-wishlist-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1) !important;
}

.item-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-type-badge.product {
  background: #3b82f6;
  color: white;
}

.item-type-badge.service {
  background: var(--accent);
  color: white;
}

.stock-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  z-index: 5;
  backdrop-filter: blur(4px);
}

/* ========================================================================
   WISHLIST CARD CONTENT
   ======================================================================== */

.wishlist-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.wishlist-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.service-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.service-price .price-min {
  color: var(--accent);
}

.service-price .price-max {
  color: var(--text-soft);
  font-weight: 400;
}

/* ========================================================================
   PROVIDER INFO MINI
   ======================================================================== */

.provider-info-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
}

.provider-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.provider-details {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-name {
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.provider-level-badge {
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========================================================================
   PRODUCT META
   ======================================================================== */

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.meta-label {
  font-size: 0.6rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.meta-value.highlight {
  color: var(--accent);
}

/* ========================================================================
   STOCK STATUS
   ======================================================================== */

.stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 30px;
  width: fit-content;
}

.stock-status.in-stock {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stock-status.low-stock {
  background: #fef3e2;
  color: #b45309;
}

.stock-status.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

/* ========================================================================
   SERVICE META
   ======================================================================== */

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}

.service-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.service-meta .meta-item i {
  color: var(--accent);
  width: 16px;
  font-size: 0.8rem;
}

.service-meta .meta-item span {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.service-meta .meta-item.rating i {
  color: #fbbf24;
}

.service-description-mini {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================================
   WISHLIST CARD ACTIONS
   ======================================================================== */

.wishlist-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.wishlist-card-actions .btn-outline,
.wishlist-card-actions .btn-primary {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.8rem;
  border-radius: 40px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.wishlist-card-actions .btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.wishlist-card-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
}

.wishlist-card-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: white;
}

.wishlist-card-actions .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.2);
}

/* ========================================================================
   PRODUCT CARD SPECIFIC
   ======================================================================== */

.wishlist-card.product-card {
  border-left: 3px solid #3b82f6;
}

.wishlist-card.product-card .wishlist-item-price {
  color: #3b82f6;
}

/* ========================================================================
   SERVICE CARD SPECIFIC
   ======================================================================== */

.wishlist-card.service-card {
  border-left: 3px solid var(--accent);
}

/* ========================================================================
   EMPTY STATES
   ======================================================================== */

.empty-wishlist-enhanced {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 30px;
  border: 2px dashed var(--border-light);
  margin-top: 20px;
}

.empty-illustration i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-wishlist-enhanced h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-wishlist-enhanced p {
  color: var(--text-soft);
  margin-bottom: 25px;
}

.empty-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-filtered-state {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 30px;
  border: 2px dashed var(--border-light);
  margin-top: 20px;
}

.empty-filtered-state i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.empty-filtered-state h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-filtered-state p {
  color: var(--text-soft);
  margin-bottom: 15px;
}

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

@media (max-width: 768px) {
  .wishlist-header-enhanced {
    flex-direction: column;
    align-items: flex-start;
  }

  .wishlist-filters {
    flex-direction: column;
    border-radius: 30px;
    padding: 15px;
  }

  .search-wrapper {
    width: 100%;
  }

  .filter-select-enhanced {
    width: 100%;
  }

  .clear-filters-btn {
    width: 100%;
  }

  .wishlist-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .wishlist-card-actions {
    flex-direction: column;
  }

  .empty-actions {
    flex-direction: column;
    align-items: center;
  }

  .empty-actions a {
    width: 100%;
  }
}

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

  .wishlist-type-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px;
  }

  .type-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .wishlist-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wishlist-item-price {
    align-self: flex-start;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Add to your dashboard-customer.css */

.product-sku {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 20px;
  margin: 4px 0;
}

.product-sku i {
  color: var(--accent);
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-soft);
  background: #e1f0fa;
  color: #1e4a6b;
  padding: 4px 8px;
  border-radius: 20px;
  margin: 4px 0;
}

.delivery-info i {
  color: #1e4a6b;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 20px;
  margin: 4px 0;
}

.stock-status.in-stock {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stock-status.in-stock i {
  color: #2f6e4a;
}

.stock-status.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

.stock-status.out-of-stock i {
  color: #991b1b;
}

/* Service meta enhancements */
.service-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.service-meta .meta-item i {
  width: 16px;
  font-size: 0.8rem;
}

.service-meta .meta-item.rating i {
  color: #fbbf24;
}

.service-description-mini {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 8px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Provider level badge */
.provider-level-badge {
  padding: 2px 6px;
  border-radius: 20px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Sidebar User Dropdown */
.sidebar-user-dropdown {
  position: relative;
  margin-bottom: 20px;
}

.sidebar-user-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-user-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-light);
}

.sidebar-user-trigger .dropdown-arrow {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-soft);
  transition: transform 0.3s ease;
}

.sidebar-user-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.sidebar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.sidebar-user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sidebar-user-menu .menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.sidebar-user-menu .menu-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

.sidebar-user-menu .menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-menu .menu-user-info {
  flex: 1;
}

.sidebar-user-menu .menu-user-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.sidebar-user-menu .menu-user-email {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.sidebar-user-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.sidebar-user-menu .menu-item i {
  width: 20px;
  color: var(--accent);
  font-size: 1rem;
}

.sidebar-user-menu .menu-item:hover {
  background: var(--bg);
}

.sidebar-user-menu .menu-item.logout-item {
  color: #ef4444;
}

.sidebar-user-menu .menu-item.logout-item i {
  color: #ef4444;
}

.sidebar-user-menu .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.7rem;
}

.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

/* Remove the old sidebar-user styles */
.sidebar-user {
  display: none;
}
/* ========================================================================
   SECTION 11: PROFILE - FULL WIDTH
   ======================================================================== */

.profile-dashboard {
  width: 100%;
}

.profile-content {
  width: 100%;
}

.profile-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 3);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  width: 100%;
  box-sizing: border-box;
}

.profile-form {
  max-width: 800px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 1.5);
  margin-bottom: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacer) * 2);
  }
}

.form-group {
  margin-bottom: calc(var(--spacer) * 1.5);
  width: 100%;
}

.form-control {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.9rem;
  min-height: 44px;
  background: var(--bg);
  box-sizing: border-box;
}

/* ========================================================================
   SECTION 12: MODALS - CENTERED
   ======================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: calc(var(--spacer));
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.3s ease;
  position: relative;
  margin: auto;
}

/* ========================================================================
   SECTION 13: UTILITY CLASSES
   ======================================================================== */

.container-fluid {
  width: 100%;
  padding-right: calc(var(--spacer) * 2);
  padding-left: calc(var(--spacer) * 2);
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* ========================================================================
   SECTION 14: RESPONSIVE FIXES
   ======================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .dashboard-content {
    padding: calc(var(--spacer) * 4);
  }
}

/* Desktop */
@media (min-width: 1025px) and (max-width: 1399px) {
  .dashboard-content {
    padding: calc(var(--spacer) * 3);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-content {
    padding: calc(var(--spacer) * 2.5);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .dashboard-content {
    padding: calc(var(--spacer) * 2);
    padding-bottom: calc(var(--spacer) * 8);
  }

  .stats-grid-modern {
    grid-template-columns: 1fr;
  }

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

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

  .messages-fullwidth-container .conversations-sidebar {
    width: 100%;
  }

  .wishlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .dashboard-content {
    padding: calc(var(--spacer) * 1.5);
    padding-bottom: calc(var(--spacer) * 8);
  }

  .stats-grid-modern {
    grid-template-columns: 1fr;
  }

  .order-stats-grid {
    grid-template-columns: 1fr;
  }

  .booking-stats-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================================
   SECTION 15: ANIMATIONS
   ======================================================================== */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================================================
   SECTION 16: SCROLLBAR
   ======================================================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* Add to frontend/public/css/dashboard-customer.css */

/* ========================================================================
   SECTION 17: SIDEBAR BADGES - FIXED
   ======================================================================== */

/* Base badge styling */
.nav-item .badge,
.nav-subitem .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  padding: 0 6px;
  margin-left: auto;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.2);
  transition: all 0.2s ease;
}

/* Badge hover effect */
.nav-item:hover .badge,
.nav-subitem:hover .badge {
  background: white;
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
}

/* Active state badge */
.nav-item.active .badge,
.nav-subitem.active .badge {
  background: white;
  color: var(--accent);
}

/* Empty badge (hide when count is 0) */
.nav-item .badge:empty,
.nav-subitem .badge:empty,
.nav-item .badge[style*="display: none"],
.nav-subitem .badge[style*="display: none"] {
  display: none !important;
}

/* Specific badge positioning for nav items */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 48px;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-item .badge {
  margin-left: auto;
  flex-shrink: 0;
}

/* Specific badge positioning for nav subitems */
.nav-subitem {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 40px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  position: relative;
}

.nav-subitem .badge {
  margin-left: auto;
  flex-shrink: 0;
}

/* Badge variants for different sections */
.nav-section[data-section="orders-section"] .badge,
.nav-section[data-section="bookings-section"] .badge,
.nav-section[data-section="messages-section"] .badge,
.nav-section[data-section="social-section"] .badge {
  background: var(--accent);
}

/* Special styling for urgent/highlight badges */
.nav-subitem .badge.urgent,
.nav-item .badge.urgent {
  background: #ef4444;
  animation: pulse 2s infinite;
}

.nav-subitem .badge.warning,
.nav-item .badge.warning {
  background: #f59e0b;
}

.nav-subitem .badge.success,
.nav-item .badge.success {
  background: #10b981;
}

/* Animation for badges */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .nav-item .badge,
  .nav-subitem .badge {
    font-size: 0.55rem;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .nav-item .badge,
  .nav-subitem .badge {
    font-size: 0.5rem;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
  }
}

/* Ensure badges are visible in expanded sections */
.nav-submenu.expanded .nav-subitem .badge {
  display: inline-flex;
}

/* Fix for submenu indentation */
.nav-submenu {
  padding-left: calc(var(--spacer) * 2);
  margin-left: calc(var(--spacer) * 2.5);
  border-left: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.nav-submenu.expanded {
  display: block;
}

/* Ensure badge doesn't get cut off */
.nav-item span,
.nav-subitem span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Add this to your existing nav-item and nav-subitem styles to ensure proper spacing */
.nav-item,
.nav-subitem {
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================================
   OVERVIEW DASHBOARD - COMPLETE REDESIGN
   Modern, responsive, enhanced visuals
   ======================================================================== */

.overview-dashboard {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.overview-hero {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 3);
  margin-bottom: calc(var(--spacer) * 4);
  padding: calc(var(--spacer) * 3);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  color: white;
}

.overview-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

.overview-hero::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.welcome-badge {
  margin-bottom: calc(var(--spacer) * 2);
}

.welcome-badge .badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-badge .badge.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: calc(var(--spacer) * 1.5);
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wave-emoji {
  font-size: 1.2em;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: calc(var(--spacer) * 3);
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-chip {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.action-chip:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.action-chip i {
  font-size: 1rem;
}

.chip-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.hero-stats-mini {
  display: flex;
  gap: calc(var(--spacer) * 2);
  padding-top: calc(var(--spacer) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  position: relative;
  flex-wrap: wrap;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 120px;
}

.mini-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mini-stat-content {
  flex: 1;
}

.mini-stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.mini-stat-label {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================================
   KPI CARDS GRID
   ======================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
}

.kpi-card {
  background: white;
  border-radius: 24px;
  padding: calc(var(--spacer) * 2.5);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.kpi-card:hover::before {
  transform: translateX(0);
}

.kpi-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.kpi-icon-wrapper.orders {
  background: #e3f2e9;
  color: #2f6e4a;
}

.kpi-icon-wrapper.bookings {
  background: #fef3e2;
  color: #b45309;
}

.kpi-icon-wrapper.messages {
  background: #e1f0fa;
  color: #1e4a6b;
}

.kpi-icon-wrapper.notifications {
  background: #f2ebe3;
  color: var(--accent);
}

.kpi-content {
  flex: 1;
  min-width: 0;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.kpi-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.kpi-trend {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.kpi-trend.positive {
  background: #e3f2e9;
  color: #2f6e4a;
}

.kpi-trend.warning {
  background: #fef3e2;
  color: #b45309;
}

.kpi-trend.info {
  background: #e1f0fa;
  color: #1e4a6b;
}

.kpi-trend.neutral {
  background: var(--bg);
  color: var(--text-soft);
}

.kpi-subtext {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: block;
}

/* ========================================================================
   MAIN DASHBOARD GRID
   ======================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 3);
  margin-bottom: calc(var(--spacer) * 4);
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1.2fr 1.5fr 1.2fr;
  }
}

/* Section Cards */
.section-card {
  background: white;
  border-radius: 24px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  height: fit-content;
  transition: all 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 2);
  flex-wrap: wrap;
  gap: 10px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i {
  color: var(--accent);
  font-size: 1rem;
}

.section-badge {
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 30px;
}

.view-all-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 30px;
}

.view-all-link:hover {
  background: var(--bg);
  gap: 8px;
}

/* Timeline List */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.timeline-item:hover {
  background: white;
  border-color: var(--accent-light);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.timeline-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-status {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 30px;
  background: var(--bg);
  color: var(--text-soft);
  white-space: nowrap;
}

.timeline-status.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.timeline-status.in-progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.timeline-status.pending {
  background: #fef3e2;
  color: #b45309;
}

.timeline-desc {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-time {
  font-size: 0.6rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Schedule Timeline */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.schedule-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.schedule-time-badge {
  min-width: 70px;
  text-align: center;
}

.time {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.date {
  display: block;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.schedule-info {
  flex: 1;
  min-width: 0;
}

.schedule-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-provider {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-status-badge {
  font-size: 0.6rem;
  padding: 4px 8px;
  border-radius: 30px;
  white-space: nowrap;
}

.schedule-status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.schedule-status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-item {
  padding: 15px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.project-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.project-status {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 30px;
  background: var(--bg);
}

.project-status.in-progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.progress-container {
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
}

.project-deadline {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-deadline i {
  color: var(--accent);
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.quick-action-card {
  background: var(--bg);
  padding: 20px 12px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
}

.quick-action-card:hover {
  background: white;
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.quick-action-card span {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
}

.quick-action-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.activity-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.activity-desc {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.6rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Recommended Creators */
.recommended-creators {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.creator-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.creator-info {
  flex: 1;
  min-width: 0;
}

.creator-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-specialty {
  font-size: 0.65rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #fbbf24;
}

.creator-rating span {
  color: var(--text-soft);
  margin-left: 2px;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: calc(var(--spacer) * 2);
  background: white;
  border-radius: 24px;
  padding: calc(var(--spacer) * 2);
  margin-top: calc(var(--spacer) * 3);
  border: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.stat-item i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Loading States */
.timeline-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.loading-spinner-small {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-soft);
}

.empty-state > i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.3;
  color: var(--accent);
}

.empty-state p {
  font-size: 0.85rem;
}

/* ========================================================================
   RESPONSIVE BREAKPOINTS
   ======================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
  .overview-dashboard {
    padding: calc(var(--spacer) * 3);
  }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1399px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .overview-hero {
    padding: calc(var(--spacer) * 2.5);
  }

  .hero-stats-mini {
    flex-wrap: wrap;
  }

  .mini-stat {
    min-width: 100px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Landscape */
@media (min-width: 480px) and (max-width: 767px) {
  .overview-hero {
    padding: calc(var(--spacer) * 2);
  }

  .hero-quick-actions {
    flex-direction: column;
  }

  .action-chip {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-mini {
    flex-direction: column;
  }

  .mini-stat {
    width: 100%;
  }

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

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

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Portrait */
@media (max-width: 479px) {
  .overview-hero {
    padding: calc(var(--spacer) * 1.5);
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-quick-actions {
    flex-direction: column;
  }

  .action-chip {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-mini {
    flex-direction: column;
  }

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

  .kpi-value {
    font-size: 1.4rem;
  }

  .section-card {
    padding: calc(var(--spacer) * 1.5);
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 4px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 359px) {
  .hero-title {
    font-size: 1.4rem;
  }

  .kpi-value {
    font-size: 1.2rem;
  }

  .timeline-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline-icon {
    margin: 0 auto;
  }

  .schedule-item {
    flex-direction: column;
    text-align: center;
  }

  .schedule-time-badge {
    min-width: auto;
  }
}

/* ========================================================================
   CALENDAR VIEW - COMPLETE STYLES
   ======================================================================== */

.calendar-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
}

/* Calendar Header */
.calendar-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 3);
}

@media (min-width: 768px) {
  .calendar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.calendar-header .page-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calendar-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Calendar Navigation */
.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: calc(var(--spacer));
  background: var(--card-bg);
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .calendar-navigation {
    width: auto;
    gap: calc(var(--spacer) * 2);
    padding: 8px 16px;
  }
}

.calendar-navigation h2 {
  font-size: 1.2rem;
  font-weight: 500;
  min-width: 160px;
  text-align: center;
  margin: 0;
  padding: 0 calc(var(--spacer));
  color: var(--text-dark);
  font-family: var(--font-serif);
}

@media (max-width: 480px) {
  .calendar-navigation h2 {
    font-size: 1rem;
    min-width: 120px;
  }
}

.calendar-navigation .btn-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}

.calendar-navigation .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.05);
}

.calendar-navigation .btn-icon:active {
  transform: scale(0.95);
}

/* Calendar Actions */
.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-actions {
    flex-direction: row;
    width: auto;
    gap: calc(var(--spacer) * 1.5);
  }
}

.calendar-actions .btn-outline,
.calendar-actions .btn-primary {
  min-height: 44px;
  padding: 0 calc(var(--spacer) * 2.5);
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .calendar-actions .btn-outline,
  .calendar-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Calendar View Options */
.calendar-view-options {
  display: flex;
  gap: 6px;
  margin-bottom: calc(var(--spacer) * 2);
  overflow-x: auto;
  padding: 4px;
  background: var(--card-bg);
  border-radius: 40px;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  white-space: nowrap;
}

.calendar-view-options::-webkit-scrollbar {
  height: 3px;
}

.calendar-view-options::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.calendar-view-options::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.view-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.view-btn i {
  font-size: 1rem;
}

.view-btn:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.view-btn.active {
  background: var(--accent);
  color: white;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: calc(var(--spacer) * 2);
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.pending {
  background: #f59e0b;
}

.legend-color.confirmed {
  background: #10b981;
}

.legend-color.completed {
  background: #3b82f6;
}

.legend-color.today {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* Calendar Container */
.calendar-container {
  background: var(--card-bg);
  border-radius: 24px;
  padding: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  overflow-x: auto;
}

/* Month View */
.month-view {
  min-width: 700px;
  width: 100%;
}

@media (max-width: 768px) {
  .month-view {
    min-width: 600px;
  }
}

.month-view .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: var(--text-soft);
  padding: 12px 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.month-view .calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.month-view .calendar-day {
  min-height: 120px;
  padding: 8px;
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
}

.month-view .calendar-day:hover {
  background: var(--card-bg);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.month-view .calendar-day.today {
  border: 2px solid var(--accent);
  background: #f2ebe3;
}

.month-view .calendar-day.weekend {
  background: #f8fafc;
}

.month-view .calendar-day.empty {
  background: transparent;
  cursor: default;
  opacity: 0.5;
}

.month-view .calendar-day.empty:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-number {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.today .day-number {
  background: var(--accent);
  color: white;
}

.day-badges {
  display: flex;
  gap: 2px;
}

.booking-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.booking-badge.pending {
  background: #f59e0b;
}

.booking-badge.confirmed {
  background: #10b981;
}

.booking-badge.completed {
  background: #3b82f6;
}

.day-bookings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  overflow: hidden;
  flex: 1;
}

.day-booking {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  border: none;
  text-align: left;
  font-weight: 500;
}

.day-booking.pending {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.day-booking.confirmed {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.day-booking.completed {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.day-booking .booking-time {
  font-weight: 600;
  margin-right: 4px;
  opacity: 0.9;
}

.more-bookings {
  font-size: 0.65rem;
  color: var(--accent);
  text-align: center;
  margin-top: 2px;
  font-weight: 600;
  cursor: pointer;
}

/* Week View */
.week-view {
  min-width: 800px;
  width: 100%;
}

.week-view .week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.week-view .time-column {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-view .day-column {
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  border-radius: 8px;
}

.week-view .day-column:hover {
  background: var(--bg);
}

.week-view .day-column.today .day-name,
.week-view .day-column.today .day-date {
  color: var(--accent);
  font-weight: 600;
}

.week-view .day-name {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.week-view .day-date {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.week-view .week-body {
  display: flex;
  flex-direction: column;
}

.week-view .hour-row {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 2px;
  min-height: 60px;
  border-bottom: 1px solid var(--border-light);
}

.week-view .hour-label {
  padding: 4px;
  color: var(--text-soft);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.week-view .hour-cell {
  position: relative;
  padding: 2px;
  border-left: 1px solid var(--border-light);
  transition: background 0.2s;
}

.week-view .hour-cell:hover {
  background: var(--bg);
}

.week-view .hour-booking {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.65rem;
  cursor: pointer;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.week-view .hour-booking.pending {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.week-view .hour-booking.confirmed {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.week-view .hour-booking.completed {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* Day View */
.day-view {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.day-view .day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.back-to-week {
  background: var(--bg);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.back-to-week:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.day-view .day-header h3 {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.day-view .day-stats {
  display: flex;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.day-view .day-timeline {
  display: flex;
  flex-direction: column;
}

.day-view .timeline-hour {
  display: grid;
  grid-template-columns: 70px 1fr;
  min-height: 70px;
  border-bottom: 1px solid var(--border-light);
}

.day-view .hour-marker {
  padding: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
  border-right: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.day-view .hour-slot {
  position: relative;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 70px;
}

.day-view .slot-booking {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid;
  box-shadow: var(--shadow);
}

.day-view .slot-booking:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.day-view .slot-booking.pending {
  border-left-color: #f59e0b;
}

.day-view .slot-booking.confirmed {
  border-left-color: #10b981;
}

.day-view .slot-booking.completed {
  border-left-color: #3b82f6;
  opacity: 0.8;
}

.booking-time-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.booking-customer {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.booking-service {
  font-size: 0.7rem;
  color: var(--text-soft);
}

/* Agenda View */
.agenda-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .agenda-view {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.agenda-section {
  background: var(--bg);
  border-radius: 20px;
  padding: 20px;
}

.agenda-section h3 {
  margin-bottom: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.agenda-section h3 i {
  color: var(--accent);
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
}

.agenda-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}

.agenda-time {
  min-width: 100px;
}

.agenda-date {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.agenda-time-value {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.agenda-content {
  flex: 1;
  min-width: 0;
}

.agenda-customer {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-service {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agenda-status {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.agenda-status.pending {
  background: #fef3e2;
  color: #b45309;
}

.agenda-status.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.agenda-status.completed {
  background: #e1f0fa;
  color: #1e4a6b;
}

.empty-agenda {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
}

.empty-agenda i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.3;
  color: var(--accent);
}

/* Calendar Stats */
.calendar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.calendar-stats .stat-item {
  text-align: center;
}

.calendar-stats .stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-stats .stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

/* Upcoming Events */
.upcoming-events {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.upcoming-events h3 {
  margin-bottom: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.upcoming-events h3 i {
  color: var(--accent);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.upcoming-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.upcoming-time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  min-width: 60px;
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-provider {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-status {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 30px;
  white-space: nowrap;
}

.upcoming-status.pending {
  background: #fef3e2;
  color: #b45309;
}

.upcoming-status.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* Calendar Footer Note */
.calendar-footer-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 40px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-light);
}

.calendar-footer-note i {
  color: var(--accent);
  font-size: 1rem;
}

/* Booking Details Modal */
.booking-details-modal .modal-content {
  max-width: 500px;
}

.booking-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.booking-status-badge {
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.booking-status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.booking-status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-status-badge.completed {
  background: #e1f0fa;
  color: #1e4a6b;
}

.booking-date-time {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.time-row:last-child {
  border-bottom: none;
}

.time-label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.time-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Loading States */
.calendar-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-dashboard {
    padding: calc(var(--spacer) * 1.5);
  }

  .calendar-view-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .view-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .view-btn span {
    display: none;
  }

  .view-btn i {
    font-size: 1.1rem;
    margin: 0;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 12px;
  }

  .month-view .calendar-day {
    min-height: 80px;
    padding: 4px;
  }

  .day-number {
    font-size: 0.85rem;
    width: 24px;
    height: 24px;
  }

  .day-booking {
    font-size: 0.6rem;
    padding: 2px 4px;
  }

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

@media (max-width: 480px) {
  .month-view .calendar-day {
    min-height: 70px;
  }

  .day-bookings {
    display: none;
  }

  .day-badges {
    display: none;
  }

  .agenda-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .agenda-time {
    min-width: auto;
  }

  .calendar-stats .stat-value {
    font-size: 1.2rem;
  }
}

/* ========================================================================
   ENHANCED MESSAGES SECTION - COMPLETE REDESIGN
   ======================================================================== */

/* Messages Full Width Layout */
.messages-fullwidth {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Messages Header */
.messages-fullwidth .messages-header {
  background: white;
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
}

@media (max-width: 768px) {
  .messages-fullwidth .messages-header {
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--spacer) * 1.5);
  }
}

.messages-fullwidth .messages-header .header-left {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 3);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .messages-fullwidth .messages-header .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacer) * 1.5);
    width: 100%;
  }
}

.messages-fullwidth .messages-header .page-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Filter Tabs Wrapper */
.filter-tabs-wrapper {
  background: var(--bg);
  border-radius: 40px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  gap: 2px;
  min-width: min-content;
}

.filter-tab {
  background: transparent;
  border: none;
  padding: calc(var(--spacer) * 1) calc(var(--spacer) * 2);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.5);
  white-space: nowrap;
}

.filter-tab i {
  font-size: 0.9rem;
}

.filter-tab:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.02);
}

.filter-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 10px rgba(183, 140, 90, 0.3);
}

.filter-tab .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 6px;
  border-radius: 20px;
  font-size: 0.6rem;
  margin-left: 2px;
  min-width: 18px;
  text-align: center;
}

.filter-tab:not(.active) .tab-badge {
  background: var(--border-light);
  color: var(--text-soft);
}

/* Header Right Actions */
.messages-fullwidth .header-right {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
}

@media (max-width: 768px) {
  .messages-fullwidth .header-right {
    width: 100%;
    justify-content: space-between;
  }
}

.messages-fullwidth .search-box {
  position: relative;
  width: 260px;
}

@media (max-width: 768px) {
  .messages-fullwidth .search-box {
    width: 100%;
    flex: 1;
  }
}

.messages-fullwidth .search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.messages-fullwidth .search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.2s;
  min-height: 44px;
}

.messages-fullwidth .search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.messages-fullwidth .btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.messages-fullwidth .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.05);
}

.messages-fullwidth .btn-icon.small {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.messages-fullwidth .btn-primary {
  min-height: 44px;
  padding: 0 calc(var(--spacer) * 2.5);
  white-space: nowrap;
}

/* Messages Container - Split Layout */
.messages-fullwidth-container {
  display: flex;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 180px);
  background: white;
  overflow: hidden;
}

@media (max-width: 768px) {
  .messages-fullwidth-container {
    height: calc(100vh - 220px);
  }
}

/* Conversations Sidebar - Enhanced Design */
.messages-fullwidth-container .conversations-sidebar {
  width: 380px;
  border-right: 1px solid var(--border-light);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .messages-fullwidth-container .conversations-sidebar {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .messages-fullwidth-container .conversations-sidebar {
    width: 100%;
    border-right: none;
    display: block;
  }

  .messages-fullwidth-container .conversations-sidebar.hide-mobile {
    display: none;
  }
}

/* Conversations Header */
.conversations-header {
  padding: calc(var(--spacer) * 2);
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.conversations-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(var(--spacer));
}

.conversations-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
}

.conversation-count {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
}

.conversations-search {
  padding: 0 calc(var(--spacer) * 2) calc(var(--spacer) * 2);
  position: relative;
}

.conversations-search i {
  position: absolute;
  left: calc(var(--spacer) * 4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.conversations-search input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.2s;
  min-height: 44px;
}

.conversations-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

/* Conversations List */
.conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--spacer) * 1.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Conversation Item - Enhanced Design */
.conversation-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 1px solid transparent;
  background: white;
  margin-bottom: 2px;
}

.conversation-item:hover {
  background: var(--bg);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.conversation-item.active {
  background: linear-gradient(135deg, #fff9f5 0%, #fef3e9 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.1);
}

.conversation-item.unread {
  background: #f8fafc;
}

.conversation-item.unread .conversation-name {
  font-weight: 700;
  color: var(--accent);
}

.conversation-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
  text-transform: uppercase;
  position: relative;
}

.conversation-avatar .online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid white;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.conversation-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.conversation-time {
  font-size: 0.6rem;
  color: var(--text-soft);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.conversation-last-message {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.conversation-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
}

.conversation-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-soft);
  font-weight: 500;
}

.conversation-status i {
  font-size: 0.6rem;
}

.conversation-status.requests {
  background: #fef3e2;
  color: #b45309;
}

.conversation-status.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.conversation-status.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.conversation-status.booking {
  background: #e0e7ff;
  color: #1e3a8a;
}

.unread-badge {
  position: absolute;
  top: 50%;
  right: calc(var(--spacer) * 1.5);
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(183, 140, 90, 0.3);
  animation: pulse 2s infinite;
}

/* Message Thread - Enhanced Design */
.messages-fullwidth-container .message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-width: 0;
  position: relative;
}

.thread-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacer) * 4);
}

.placeholder-content {
  text-align: center;
  max-width: 400px;
}

.placeholder-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto calc(var(--spacer) * 3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.placeholder-icon i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
}

.thread-placeholder h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
  font-family: var(--font-serif);
}

.thread-placeholder p {
  margin-bottom: calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Thread Header */
.thread-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  z-index: 5;
}

@media (max-width: 768px) {
  .thread-header {
    padding: calc(var(--spacer) * 1.5);
  }
}

.back-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .back-btn {
    display: flex;
  }
}

.back-btn:hover {
  background: var(--bg);
  color: var(--accent);
}

.thread-user-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  flex: 1;
  min-width: 0;
}

.thread-user-info .user-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-status {
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status.online {
  color: #10b981;
}

.user-status.online::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 2s infinite;
}

.user-status.offline {
  color: var(--text-soft);
}

.user-status-row .status-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6rem;
  background: var(--bg);
  color: var(--text-soft);
}

.user-status-row .status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.user-status-row .status-badge.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.user-status-row .status-badge.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.thread-actions {
  display: flex;
  gap: 4px;
}

.thread-actions .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  transition: all 0.2s;
  font-size: 1rem;
}

.thread-actions .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Messages List - Enhanced */
.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: calc(var(--spacer) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (max-width: 768px) {
  .messages-list {
    padding: calc(var(--spacer) * 1.5);
  }
}

/* Date Divider */
.date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(var(--spacer) * 2) 0;
  position: relative;
}

.date-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.date-divider span {
  background: white;
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-light);
}

/* Message Items */
.message-item {
  display: flex;
  margin-bottom: 4px;
  animation: fadeIn 0.3s ease;
}

.message-item.sent {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 60%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .message-bubble {
    max-width: 80%;
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  }
}

.message-bubble:hover {
  transform: scale(1.01);
}

.message-item.received .message-bubble {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.message-item.sent .message-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border-bottom-right-radius: 4px;
}

.message-text {
  line-height: 1.5;
  margin-bottom: 4px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.message-text a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.9;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  opacity: 0.8;
}

.message-item.sent .message-footer {
  color: rgba(255, 255, 255, 0.9);
}

.message-time {
  font-size: 0.6rem;
}

.message-status {
  font-size: 0.65rem;
}

/* Message Attachments */
.message-attachment {
  margin-top: calc(var(--spacer));
  border-radius: 12px;
  overflow: hidden;
  max-width: 300px;
}

.message-attachment.image img {
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-attachment.image img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.message-attachment.file {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  min-width: 200px;
}

.message-item.sent .message-attachment.file {
  background: rgba(255, 255, 255, 0.15);
}

.message-attachment.file i {
  font-size: 1.5rem;
  color: inherit;
}

.file-info {
  flex: 1;
  min-width: 120px;
}

.file-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.file-size {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 140, 90, 0.05),
    transparent
  );
  animation: shimmer 2s infinite;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Message Input Area - Enhanced */
.message-input-container {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-top: 1px solid var(--border-light);
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
  .message-input-container {
    padding: calc(var(--spacer) * 1.5);
  }
}

.input-wrapper {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px 4px 4px calc(var(--spacer) * 2);
  transition: all 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.input-wrapper textarea {
  flex: 1;
  padding: calc(var(--spacer) * 1.5) 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  resize: none;
  max-height: 100px;
  line-height: 1.5;
  outline: none;
  font-family: var(--font-sans);
}

.input-wrapper textarea::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

.input-actions {
  display: flex;
  gap: 2px;
  padding: 2px;
}

.input-actions .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.input-actions .btn-icon:hover {
  background: var(--bg);
  color: var(--accent);
  transform: scale(1.1);
}

.send-btn {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
}

.send-btn:hover {
  background: var(--accent-light) !important;
  transform: scale(1.05) !important;
}

/* Attachment Preview */
.attachment-preview-area {
  margin-top: calc(var(--spacer) * 1.5);
  animation: slideUp 0.3s ease;
}

.attachment-preview {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  background: white;
  padding: calc(var(--spacer) * 1.5);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
}

.attachment-preview .attachment-type {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.attachment-preview img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.attachment-info {
  flex: 1;
  min-width: 0;
}

.attachment-info .attachment-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-info .attachment-size {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.remove-attachment {
  background: #fee2e2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.remove-attachment:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 80px;
  left: calc(var(--spacer) * 2);
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  width: 260px;
  z-index: 100;
  animation: slideUp 0.2s ease;
}

.emoji-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacer) * 1.5);
  border-bottom: 1px solid var(--border-light);
}

.emoji-picker-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.close-emoji-picker {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-emoji-picker:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: calc(var(--spacer) * 1.5);
}

.emoji {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.emoji:hover {
  background: var(--bg);
  transform: scale(1.2);
}

/* No Conversations / Empty States */
.no-conversations {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
  background: white;
  border-radius: 20px;
  margin: calc(var(--spacer) * 1.5);
}

.no-conversations i {
  font-size: 3rem;
  margin-bottom: calc(var(--spacer) * 2);
  opacity: 0.3;
  color: var(--accent);
}

.no-conversations h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
}

.no-conversations p {
  margin-bottom: calc(var(--spacer) * 2);
  font-size: 0.85rem;
}

/* No Messages */
.no-messages {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
  font-style: italic;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  margin: calc(var(--spacer) * 2) 0;
  font-size: 0.9rem;
}

/* Loading States */
.conversations-list .loading-spinner {
  text-align: center;
  padding: calc(var(--spacer) * 4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .messages-fullwidth-container .conversations-sidebar {
    display: block;
  }

  .messages-fullwidth-container .conversations-sidebar.hide-mobile {
    display: none;
  }

  .messages-fullwidth-container .message-thread {
    display: none;
  }

  .messages-fullwidth-container .message-thread.active-mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    animation: fadeIn 0.3s ease;
  }

  .conversation-name {
    max-width: 120px;
  }

  .conversation-last-message {
    max-width: 140px;
  }

  .unread-badge {
    min-width: 20px;
    height: 20px;
    font-size: 0.6rem;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .conversation-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .conversation-name {
    font-size: 0.85rem;
  }

  .conversation-last-message {
    font-size: 0.7rem;
    max-width: 120px;
  }

  .message-bubble {
    max-width: 85%;
  }

  .input-actions .btn-icon {
    width: 38px;
    height: 38px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Custom Scrollbar for Messages */
.messages-list::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar {
  width: 4px;
}

.messages-list::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb:hover,
.conversations-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Firefox scrollbar support */
.messages-list,
.conversations-list {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* ========================================================================
   SIMPLIFIED MESSAGES SECTION - WORKING VERSION
   ======================================================================== */

.messages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.messages-header .page-title {
  font-size: 1.5rem;
  margin: 0;
}

.messages-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.messages-filter-tabs .filter-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 20px;
  transition: all 0.2s;
}

.messages-filter-tabs .filter-tab:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.messages-filter-tabs .filter-tab.active {
  background: var(--accent);
  color: white;
}

.messages-search {
  position: relative;
  margin-bottom: 20px;
}

.messages-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}

.messages-search input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.messages-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

/* Conversations List */
.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.conversation-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.conversation-item.unread {
  background: #f2ebe3;
  border-left: 4px solid var(--accent);
}

.conversation-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.conversation-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.conversation-last-message {
  font-size: 0.85rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.conversation-status {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.conversation-status.requests {
  background: #fef3e2;
  color: #b45309;
}

.conversation-status.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.conversation-status.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.unread-badge {
  background: var(--accent);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  margin-left: 10px;
}

/* Message Thread */
.message-thread-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.thread-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-soft);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: var(--bg);
  color: var(--accent);
}

.thread-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.thread-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.thread-user-details h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.thread-user-status {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-item {
  display: flex;
  max-width: 70%;
}

.message-item.sent {
  margin-left: auto;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.message-item.sent .message-bubble {
  background: var(--accent);
  color: white;
}

.message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-time {
  font-size: 0.65rem;
  opacity: 0.7;
  text-align: right;
}

.message-input-area {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  background: white;
}

.message-input-area textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  font-size: 0.9rem;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  font-family: inherit;
}

.message-input-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
  background: #9a7a4e;
}

/* No Conversations */
.no-conversations {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  background: white;
  border-radius: 16px;
}

.no-conversations i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.no-conversations h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.no-conversations p {
  margin-bottom: 20px;
}

/* Providers List */
.providers-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.provider-item:hover {
  background: var(--bg);
  border-color: var(--border-light);
}

.provider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.provider-info {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-email {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: var(--text-soft);
}
.conversation-item[style*="display: none"] {
  display: none !important;
}

.conversation-item[style*="display: flex"] {
  display: flex !important;
}

/* Add to your dashboard-customer.css */

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.profile-tabs .tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-radius: 30px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-tabs .tab-btn:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.profile-tabs .tab-btn.active {
  background: var(--accent);
  color: white;
}

/* Tab Panes */
.tab-pane {
  animation: fadeIn 0.3s ease;
}

/* Password Requirements */
.password-requirements {
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
}

.password-requirements p {
  margin: 0 0 10px 0;
  font-weight: 600;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.invalid {
  color: var(--text-soft);
}

.password-requirements li i {
  width: 16px;
}

/* Password Match Error */
.password-match-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  padding-left: 5px;
}

/* Sessions */
.sessions-section {
  margin-top: 30px;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 10px;
}

.session-item.current {
  border: 1px solid var(--accent);
  background: #f2ebe3;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.session-info i {
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px;
}

.device-name {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.device-location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.session-status {
  padding: 4px 12px;
  background: #e3f2e9;
  color: #2f6e4a;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Message Alerts */
.message-alert {
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.message-alert.success {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #2f6e4a;
}

.message-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #991b1b;
}

.message-alert i {
  font-size: 1.2rem;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* frontend/public/css/dashboard-customer.css - COMPLETE ORGANIZED VERSION */
/* ========================================================================
   DASHBOARD CUSTOMER CSS - FULLY RESPONSIVE
   Matches provider dashboard design system
   ======================================================================== */

@import url("./styles.css");

/* ========================================================================
   SECTION 1: LAYOUT & CONTAINERS
   ======================================================================== */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  max-width: 100%;
  background: var(--bg);
  position: relative;
  /* overflow-x handled by body — removed so position:fixed sidebar works */
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  background: var(--bg);
}

.dashboard-content {
  width: 100%;
  padding: calc(var(--spacer) * 3);
  box-sizing: border-box;
}

.overview-dashboard,
.orders-dashboard,
.bookings-dashboard,
.calendar-dashboard,
.messages-dashboard,
.wishlist-dashboard,
.reviews-dashboard,
.profile-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-content {
    padding: calc(var(--spacer) * 2.5);
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .dashboard-main {
    margin-left: 0;
    width: 100%;
  }

  .dashboard-content {
    padding: calc(var(--spacer) * 2);
    padding-bottom: calc(var(--spacer) * 8);
  }
}

/* ========================================================================
   SECTION 2: SIDEBAR
   ======================================================================== */

.dashboard-sidebar {
  width: 280px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-light);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header .logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

.sidebar-header .logo span {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: var(--bg);
  color: var(--accent);
}

.sidebar-user {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.3);
  text-transform: uppercase;
  flex-shrink: 0;
  position: relative;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: calc(var(--spacer) * 1.5) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 48px;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-item i {
  width: 20px;
  font-size: 1rem;
  color: currentColor;
  flex-shrink: 0;
}

.nav-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 30px;
  font-size: 0.6rem;
  min-width: 18px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-item.active {
  background: #f2ebe3;
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-section {
  margin: calc(var(--spacer) * 0.5) 0;
}

.nav-section-header {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.nav-section-header i:first-child {
  width: 20px;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-section-header span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-section-header .dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-soft);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-section-header .dropdown-icon.rotated {
  transform: rotate(180deg);
}

.nav-section-header:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-section-header.active {
  background: #f2ebe3;
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-section-header.active .dropdown-icon {
  color: var(--accent);
}

.nav-submenu {
  display: none;
  padding-left: calc(var(--spacer) * 2);
  margin-left: calc(var(--spacer) * 2.5);
  border-left: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.nav-submenu.expanded {
  display: block;
  animation: slideDown 0.3s ease;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
  min-height: 40px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-subitem i {
  width: 18px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-subitem span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-subitem .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 2px 5px;
  border-radius: 30px;
  font-size: 0.55rem;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-subitem:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-subitem.active {
  color: var(--accent);
  background: #f2ebe3;
}

.nav-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Desktop Sidebar */
@media (min-width: 1025px) {
  .dashboard-sidebar {
    transform: translateX(0);
  }
  .sidebar-close,
  .mobile-menu-toggle {
    display: none;
  }
  .sidebar-overlay {
    display: none !important;
  }
}

/* Tablet Sidebar */
@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-sidebar {
    width: 260px;
    transform: translateX(-100%);
  }
  .dashboard-sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
  }
  .sidebar-close {
    display: flex;
  }
  .sidebar-overlay.active {
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
  }
}

/* Mobile Sidebar */
@media (max-width: 767px) {
  .dashboard-sidebar {
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
  }
  .dashboard-sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
  }
  .sidebar-close {
    display: flex;
  }
  .sidebar-overlay.active {
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
  }
}

/* ========================================================================
   SECTION 3: HEADER & TOP BAR
   ======================================================================== */

.dashboard-header {
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.header-left {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.2rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  width: 240px;
  transition: all 0.2s;
  background: var(--bg);
  min-height: 44px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

@media (max-width: 1024px) {
  .search-container {
    display: none;
  }
}

.mobile-search {
  display: none;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.mobile-search i {
  position: absolute;
  left: calc(var(--spacer) * 4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  z-index: 1;
}

.mobile-search input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 6);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 1rem;
  min-height: 48px;
}

@media (max-width: 767px) {
  .mobile-search {
    display: block;
  }
}

/* ========================================================================
   SECTION 4: ICONS & DROPDOWNS
   ======================================================================== */

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  min-width: 18px;
  height: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.3);
}

.notifications-dropdown {
  position: relative;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notifications-panel.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.panel-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  padding: calc(var(--spacer)) calc(var(--spacer) * 1.5);
  border-radius: 30px;
  transition: all 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.5);
}

.btn-text:hover {
  background: var(--bg);
  text-decoration: underline;
}

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

.notification-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.notification-item:hover {
  background: var(--bg);
}

.notification-item.unread {
  background: #f2ebe3;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.85rem;
}

.notification-body {
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-bottom: 2px;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 2px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  right: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
}

.empty-notifications {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
}

.empty-notifications i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(var(--spacer));
  border-radius: 40px;
  transition: all 0.2s;
  min-height: 44px;
}

.profile-btn:hover {
  background: var(--bg);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.profile-header {
  padding: calc(var(--spacer) * 3);
  display: flex;
  gap: calc(var(--spacer) * 2);
  align-items: center;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer)) 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.menu-item i {
  width: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.menu-item:hover {
  background: var(--bg);
}

/* ========================================================================
   SECTION 5: BUTTONS & INTERACTIVE ELEMENTS
   ======================================================================== */

.btn-primary {
  background: var(--text-dark);
  color: #fff;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-weight: 500;
  width: auto;
}

.btn-primary:hover {
  background: #4a3f3a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 1px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-weight: 500;
  width: auto;
}

.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline.btn-sm {
  padding: calc(var(--spacer) * 0.8) calc(var(--spacer) * 1.5);
  font-size: 0.75rem;
  min-height: 36px;
  gap: calc(var(--spacer) * 0.5);
}

.btn-outline.danger {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-outline.danger:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger {
  background: #ef4444;
  color: white;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 3);
  border-radius: 40px;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-weight: 500;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ========================================================================
   SECTION 6: STATUS BADGES
   ======================================================================== */

.status-badge {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .status-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

.status-badge.pending_quote,
.status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.status-badge.quoted {
  background: #e6e9f0;
  color: #4b5563;
}

.status-badge.approved {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge.in_progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.cancelled,
.status-badge.declined,
.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.closed {
  background: #f1f5f9;
  color: #475569;
}

.status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge.modified {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

/* ========================================================================
   SECTION 7: OVERVIEW DASHBOARD
   ======================================================================== */

.welcome-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 640px) {
  .welcome-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 4);
  }
}

.welcome-text {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.8);
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  word-break: break-word;
}

.welcome-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.quote-card {
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 2.5);
  border-radius: 16px;
  color: white;
  width: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .quote-card {
    max-width: 350px;
    padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 3);
  }
}

@media (min-width: 768px) {
  .quote-card {
    max-width: 400px;
    padding: calc(var(--spacer) * 3) calc(var(--spacer) * 4);
    border-radius: 20px;
  }
}

.quote-card i {
  font-size: 1.2rem;
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 0.8);
}

.quote-card p {
  font-style: italic;
  margin-bottom: calc(var(--spacer) * 0.8);
  line-height: 1.5;
  font-size: 0.9rem;
  word-break: break-word;
}

.quote-card span {
  font-size: 0.8rem;
  opacity: 0.9;
  display: block;
  word-break: break-word;
}

.quote-card::after {
  content: "✦";
  position: absolute;
  bottom: -15px;
  right: -15px;
  font-size: 6rem;
  opacity: 0.1;
  color: white;
}

.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

.stat-card-modern {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

.stat-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card-modern.orders .stat-icon-wrapper {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-card-modern.bookings .stat-icon-wrapper {
  background: #fef3e2;
  color: #b45309;
}

.stat-card-modern.messages .stat-icon-wrapper {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-card-modern.notifications .stat-icon-wrapper {
  background: #f2ebe3;
  color: var(--accent);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.6rem;
  }
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: calc(var(--spacer) * 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value-row {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .stat-value {
    font-size: 1.6rem;
  }
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.8rem;
  }
}

.stat-subtitle {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacer) * 3);
  }
}

.activity-feed,
.insights-panel,
.schedule-panel {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 2);
  flex-wrap: wrap;
  gap: calc(var(--spacer));
}

.feed-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  word-break: break-word;
}

.feed-header h3 i {
  color: var(--accent);
  flex-shrink: 0;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 calc(var(--spacer));
  white-space: nowrap;
}

.view-all:hover {
  text-decoration: underline;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}

.activity-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.85rem;
  word-break: break-word;
  line-height: 1.4;
}

.activity-description {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.activity-empty {
  text-align: center;
  padding: calc(var(--spacer) * 3);
  color: var(--text-soft);
  width: 100%;
}

.activity-empty i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

.insight-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.insight-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.insight-content {
  flex: 1;
  min-width: 0;
}

.insight-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.insight-content p {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.insight-action {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  word-break: break-word;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 1.5);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  flex-wrap: wrap;
}

.schedule-item:hover {
  transform: translateX(4px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.schedule-time {
  min-width: 70px;
  flex-shrink: 0;
}

.time-badge {
  background: var(--card-bg);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dark);
  display: inline-block;
  white-space: nowrap;
}

.schedule-info {
  flex: 1;
  min-width: 0;
}

.schedule-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 2px;
  word-break: break-word;
  line-height: 1.4;
}

.schedule-client {
  font-size: 0.7rem;
  color: var(--text-soft);
  word-break: break-word;
  line-height: 1.4;
}

.schedule-status {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-empty {
  text-align: center;
  padding: calc(var(--spacer) * 3);
  color: var(--text-soft);
}

.schedule-empty i {
  font-size: 2rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  opacity: 0.3;
}

.bottom-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 1.5);
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  margin-top: calc(var(--spacer) * 2);
  width: 100%;
  box-sizing: border-box;
}

.bottom-stat-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.2);
  min-width: 0;
}

.bottom-stat-item i {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

.bottom-stat-content {
  flex: 1;
  min-width: 0;
}

.bottom-stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .bottom-stat-value {
    font-size: 1rem;
  }
}

/* ========================================================================
   SECTION 8: ORDERS DASHBOARD
   ======================================================================== */

.orders-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 640px) {
  .orders-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.orders-header .page-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.orders-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: calc(var(--spacer) * 0.5);
  word-break: break-word;
}

.orders-actions {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .orders-actions {
    width: auto;
  }
}

.order-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

.stat-card.compact {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 0;
}

.stat-card.compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

.stat-icon.pending {
  background: #fef3e2;
  color: #b45309;
}

.stat-icon.warning {
  background: #fef3e2;
  color: #b45309;
}

.stat-icon.active {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-icon.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-content .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
  word-break: break-word;
}

.stat-content .stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
}

.filters-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .filters-section {
    flex-direction: row;
    align-items: center;
    padding: calc(var(--spacer) * 2.5) calc(var(--spacer) * 3);
    gap: calc(var(--spacer) * 3);
  }
}

.orders-search-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
}

.orders-search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.orders-search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  min-height: 44px;
  box-sizing: border-box;
}

.orders-search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .filter-group {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: calc(var(--spacer) * 2);
  }
}

.filter-select {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 3)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 2.5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  width: 100%;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(var(--spacer) * 2) center;
  background-size: 14px;
  padding-right: calc(var(--spacer) * 5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-select:hover,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-group .btn-outline {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin: 0;
}

@media (min-width: 640px) {
  .filter-group .btn-outline {
    width: auto;
    min-width: 100px;
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  }
}

.filter-group .btn-outline:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

.order-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  width: 100%;
  box-sizing: border-box;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.order-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.2);
  margin-bottom: calc(var(--spacer) * 2);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .order-card-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 1.5);
  }
}

.order-badges {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 480px) {
  .order-badges {
    width: auto;
  }
}

.order-id {
  font-family: monospace;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.order-date {
  color: var(--text-soft);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.order-card-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2);
}

@media (min-width: 640px) {
  .order-card-body {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.customer-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  min-width: 0;
  flex: 1;
}

.customer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.customer-details {
  min-width: 0;
  flex: 1;
}

.customer-details h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-title {
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-meta {
  display: flex;
  gap: calc(var(--spacer) * 2);
  flex-wrap: wrap;
  min-width: 0;
}

.meta-item {
  min-width: 0;
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-soft);
  margin-bottom: 2px;
  white-space: nowrap;
}

.meta-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.meta-value.has-amount {
  color: var(--accent);
}

.order-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.5);
  padding-top: calc(var(--spacer) * 1.5);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

@media (min-width: 480px) {
  .order-card-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 2);
  }
}

.order-card-footer .btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  border-radius: 30px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.8);
  min-height: 44px;
  width: 100%;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border-light);
}

@media (min-width: 480px) {
  .order-card-footer .btn-text {
    width: auto;
    min-width: 140px;
    padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2.5);
    font-size: 0.95rem;
  }
}

.order-card-footer .btn-text i {
  font-size: 0.8rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.order-card-footer .btn-text:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.order-card-footer .btn-text:hover i {
  transform: translateX(4px);
}

.empty-orders {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  background: var(--card-bg);
  border-radius: 20px;
  width: 100%;
}

.empty-illustration i {
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 3);
}

.empty-orders h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 1.5);
  word-break: break-word;
}

.empty-orders p {
  color: var(--text-soft);
  margin-bottom: calc(var(--spacer) * 3);
  font-size: 0.95rem;
  word-break: break-word;
}

.empty-orders .btn-primary {
  display: inline-flex;
  width: auto;
  min-width: 180px;
}

/* ========================================================================
   SECTION 9: ORDER DETAIL VIEW
   ======================================================================== */

.order-detail-view {
  width: 100%;
  padding: calc(var(--spacer) * 2);
}

.detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 3);
}

@media (min-width: 640px) {
  .detail-header {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.detail-header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-word;
  flex: 1;
}

@media (min-width: 768px) {
  .detail-header h1 {
    font-size: 1.5rem;
  }
}

.header-actions {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .header-actions {
    width: auto;
    gap: calc(var(--spacer) * 2);
  }
}

.header-actions .btn-outline {
  min-width: 120px;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  font-size: 0.85rem;
}

.status-bar {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  margin-bottom: calc(var(--spacer) * 4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
}

@media (min-width: 768px) {
  .status-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
    padding: calc(var(--spacer) * 3);
  }
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  word-break: break-word;
}

.status-value {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  word-break: break-word;
  flex-wrap: wrap;
}

.status-progress {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.5;
  transition: all 0.3s ease;
  min-width: 50px;
}

.progress-step.complete {
  opacity: 1;
  color: var(--accent);
}

.progress-step i {
  font-size: 1rem;
}

.progress-step span {
  font-size: 0.6rem;
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 3);
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacer) * 4);
  }
}

.info-card,
.milestones-card,
.updates-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
}

.info-card h3,
.milestones-card h3,
.updates-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  color: var(--text-dark);
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--spacer) * 1.2) 0;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 480px) {
  .info-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 2);
  }
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  word-break: break-word;
}

.info-value {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
  word-break: break-word;
}

.quote-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  border-left: 4px solid var(--accent);
}

.quote-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: calc(var(--spacer) * 2);
}

@media (min-width: 480px) {
  .quote-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacer) * 2.5);
  }
}

.quote-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-meta-item .meta-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-meta-item .meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  word-break: break-word;
}

.quote-actions {
  display: flex;
  gap: calc(var(--spacer));
  flex-wrap: wrap;
}

.quote-actions .btn-primary,
.quote-actions .btn-outline,
.quote-actions .btn-danger {
  flex: 1;
  min-width: 120px;
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.2);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.milestone-item.completed {
  opacity: 0.8;
  background: #e3f2e9;
}

.milestone-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer));
}

@media (min-width: 480px) {
  .milestone-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.milestone-title {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 0.8);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
  flex: 1;
}

.milestone-title i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.milestone-amount {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}

.milestone-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-soft);
  width: fit-content;
}

.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  max-height: 400px;
  overflow-y: auto;
  padding-right: calc(var(--spacer));
}

.update-item {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  padding: calc(var(--spacer) * 2);
  background: var(--bg);
  border-radius: 14px;
}

.update-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.update-content {
  flex: 1;
  min-width: 0;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: calc(var(--spacer));
}

.update-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.update-time {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.update-text {
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 0.85rem;
  word-break: break-word;
}

.update-media img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: calc(var(--spacer));
}

.order-actions-footer {
  margin-top: calc(var(--spacer) * 4);
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacer) * 2);
  justify-content: flex-end;
}

.order-actions-footer .btn-primary,
.order-actions-footer .btn-outline,
.order-actions-footer .btn-danger {
  min-width: 160px;
}

/* ========================================================================
   SECTION 10: BOOKINGS DASHBOARD
   ======================================================================== */

.bookings-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 640px) {
  .bookings-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.bookings-header .page-title {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.bookings-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: calc(var(--spacer) * 0.5);
  word-break: break-word;
}

.booking-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

.stat-card.booking-stat {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-card.booking-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card.booking-stat.pending {
  background: linear-gradient(135deg, #fef3e2, #ffe4cc);
}

.stat-card.booking-stat.confirmed {
  background: linear-gradient(135deg, #e3f2e9, #c8e6d9);
}

.stat-card.booking-stat.modified {
  background: linear-gradient(135deg, #fef3e2, #ffd8b2);
}

.stat-card.booking-stat.completed {
  background: linear-gradient(135deg, #e1f0fa, #c2e0f5);
}

.stat-card.booking-stat .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacer) * 1.2);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
}

.stat-card.booking-stat .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
  word-break: break-word;
}

.stat-card.booking-stat .stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  white-space: normal;
  line-height: 1.3;
  word-break: break-word;
}

.bookings-filters {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.filter-tabs {
  display: flex;
  gap: calc(var(--spacer) * 0.8);
  margin-bottom: calc(var(--spacer) * 2);
  overflow-x: auto;
  padding-bottom: calc(var(--spacer));
  white-space: nowrap;
  width: 100%;
}

.filter-tabs::-webkit-scrollbar {
  height: 2px;
}

.filter-tabs::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 2px;
}

.filter-tabs::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.filter-tab {
  background: none;
  border: none;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 40px;
  flex-shrink: 0;
}

.filter-tab:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.filter-tab.active {
  background: var(--accent);
  color: white;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

@media (min-width: 640px) {
  .filter-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--spacer) * 2.5);
  }
}

.filter-actions .search-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
}

.filter-actions .search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.filter-actions .search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  min-height: 44px;
}

.filter-actions .search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-actions .btn-outline {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2.5);
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer));
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin: 0;
}

@media (min-width: 640px) {
  .filter-actions .btn-outline {
    width: auto;
    min-width: 100px;
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  }
}

.filter-actions .btn-outline:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

/* ========================================================================
   SECTION 11: BOOKING MODAL
   ======================================================================== */

.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

@media (min-width: 480px) {
  .booking-modal {
    align-items: center;
  }
}

.booking-modal .modal-content {
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@media (min-width: 480px) {
  .booking-modal .modal-content {
    border-radius: 24px;
    width: 90%;
  }
}

.booking-modal .modal-header {
  padding: calc(var(--spacer) * 2.5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
}

.booking-modal .modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.booking-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.booking-modal .modal-close:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.booking-modal .modal-body {
  padding: calc(var(--spacer) * 2.5);
}

.booking-modal .modal-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: calc(var(--spacer) * 2) 0 calc(var(--spacer));
}

.booking-modal .modal-footer {
  padding: calc(var(--spacer) * 2.5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  background: var(--bg);
  border-radius: 0 0 24px 24px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

@media (min-width: 480px) {
  .booking-modal .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: calc(var(--spacer) * 2);
  }
}

.booking-modal .modal-footer .btn-primary,
.booking-modal .modal-footer .btn-outline,
.booking-modal .modal-footer .btn-danger {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .booking-modal .modal-footer .btn-primary,
  .booking-modal .modal-footer .btn-outline,
  .booking-modal .modal-footer .btn-danger {
    width: auto;
    min-width: 120px;
  }
}

/* ========================================================================
   SECTION 12: CALENDAR VIEW
   ======================================================================== */

.calendar-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
  overflow-x: hidden;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 2.5);
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
  }
}

.calendar-header .page-title {
  font-size: 1.4rem;
  margin: 0;
  word-break: break-word;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: calc(var(--spacer));
  background: var(--card-bg);
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .calendar-navigation {
    width: auto;
    gap: calc(var(--spacer) * 2);
    padding: 8px 16px;
  }
}

.calendar-navigation h2 {
  font-size: 1.2rem;
  font-weight: 500;
  min-width: 160px;
  text-align: center;
  margin: 0;
  padding: 0 calc(var(--spacer));
  color: var(--text-dark);
  font-family: var(--font-serif);
}

@media (max-width: 480px) {
  .calendar-navigation h2 {
    font-size: 1rem;
    min-width: 120px;
  }
}

.calendar-navigation .btn-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}

.calendar-navigation .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.05);
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-actions {
    flex-direction: row;
    width: auto;
    gap: calc(var(--spacer) * 1.5);
  }
}

.calendar-actions .btn-outline,
.calendar-actions .btn-primary {
  min-height: 44px;
  padding: 0 calc(var(--spacer) * 2.5);
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .calendar-actions .btn-outline,
  .calendar-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

.calendar-view-options {
  display: flex;
  gap: 6px;
  margin-bottom: calc(var(--spacer) * 2);
  overflow-x: auto;
  padding: 4px;
  background: var(--card-bg);
  border-radius: 40px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.calendar-view-options::-webkit-scrollbar {
  height: 3px;
}

.calendar-view-options::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.calendar-view-options::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.view-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.view-btn i {
  font-size: 1rem;
}

.view-btn:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.view-btn.active {
  background: var(--accent);
  color: white;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: calc(var(--spacer) * 2);
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.pending {
  background: #f59e0b;
}

.legend-color.confirmed {
  background: #10b981;
}

.legend-color.completed {
  background: #3b82f6;
}

.legend-color.today {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.calendar-container {
  background: var(--card-bg);
  border-radius: 24px;
  padding: calc(var(--spacer) * 2);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}

.month-view {
  min-width: 700px;
  width: 100%;
}

@media (max-width: 768px) {
  .month-view {
    min-width: 600px;
  }
}

.month-view .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.weekday {
  text-align: center;
  font-weight: 600;
  color: var(--text-soft);
  padding: 12px 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.month-view .calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
}

.month-view .calendar-day {
  min-height: 120px;
  padding: 8px;
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.month-view .calendar-day:hover {
  background: var(--card-bg);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.month-view .calendar-day.today {
  border: 2px solid var(--accent);
  background: #f2ebe3;
}

.month-view .calendar-day.empty {
  background: transparent;
  cursor: default;
  opacity: 0.5;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-number {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.today .day-number {
  background: var(--accent);
  color: white;
}

.day-badges {
  display: flex;
  gap: 2px;
}

.booking-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.booking-badge.pending {
  background: #f59e0b;
}

.booking-badge.confirmed {
  background: #10b981;
}

.booking-badge.completed {
  background: #3b82f6;
}

.day-bookings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  overflow: hidden;
  flex: 1;
}

.day-booking {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
  border: none;
  text-align: left;
  font-weight: 500;
}

.day-booking.pending {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.day-booking.confirmed {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.day-booking.completed {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.day-booking .booking-time {
  font-weight: 600;
  margin-right: 4px;
  opacity: 0.9;
}

.more-bookings {
  font-size: 0.65rem;
  color: var(--accent);
  text-align: center;
  margin-top: 2px;
  font-weight: 600;
  cursor: pointer;
}

.week-view {
  min-width: 800px;
  width: 100%;
}

.calendar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.calendar-stats .stat-item {
  text-align: center;
}

.calendar-stats .stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-stats .stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.upcoming-events {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.upcoming-events h3 {
  margin-bottom: 16px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.upcoming-events h3 i {
  color: var(--accent);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.upcoming-item:hover {
  background: white;
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.upcoming-time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  min-width: 60px;
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-provider {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-status {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 30px;
  white-space: nowrap;
}

.upcoming-status.pending {
  background: #fef3e2;
  color: #b45309;
}

.upcoming-status.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.calendar-footer-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 40px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-light);
}

.calendar-footer-note i {
  color: var(--accent);
  font-size: 1rem;
}

/* ========================================================================
   SECTION 13: MESSAGES SECTION
   ======================================================================== */

.messages-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.messages-header .page-title {
  font-size: 1.5rem;
  margin: 0;
}

.messages-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.messages-filter-tabs .filter-tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 20px;
  transition: all 0.2s;
}

.messages-filter-tabs .filter-tab:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.messages-filter-tabs .filter-tab.active {
  background: var(--accent);
  color: white;
}

.messages-search {
  position: relative;
  margin-bottom: 20px;
}

.messages-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}

.messages-search input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.messages-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.conversation-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.conversation-item.unread {
  background: #f2ebe3;
  border-left: 4px solid var(--accent);
}

.conversation-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.conversation-info {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.conversation-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.conversation-last-message {
  font-size: 0.85rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.conversation-status {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.65rem;
  color: var(--text-soft);
}

.conversation-status.requests {
  background: #fef3e2;
  color: #b45309;
}

.conversation-status.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.conversation-status.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.unread-badge {
  background: var(--accent);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  margin-left: 10px;
}

.message-thread-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.thread-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-soft);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: var(--bg);
  color: var(--accent);
}

.thread-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.thread-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.thread-user-details h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.thread-user-status {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-item {
  display: flex;
  max-width: 70%;
}

.message-item.sent {
  margin-left: auto;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.message-item.sent .message-bubble {
  background: var(--accent);
  color: white;
}

.message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.message-time {
  font-size: 0.65rem;
  opacity: 0.7;
  text-align: right;
}

.message-input-area {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--border-light);
  background: white;
}

.message-input-area textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  font-size: 0.9rem;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  font-family: inherit;
}

.message-input-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
  background: #9a7a4e;
}

.no-conversations {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  background: white;
  border-radius: 16px;
}

.no-conversations i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.no-conversations h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.no-conversations p {
  margin-bottom: 20px;
}

.providers-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.provider-item:hover {
  background: var(--bg);
  border-color: var(--border-light);
}

.provider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.provider-info {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-email {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: var(--text-soft);
}

.conversation-item[style*="display: none"] {
  display: none !important;
}

.conversation-item[style*="display: flex"] {
  display: flex !important;
}

/* ========================================================================
   SECTION 14: WISHLIST DASHBOARD
   ======================================================================== */

.wishlist-header {
  margin-bottom: calc(var(--spacer) * 3);
}

.wishlist-header .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.wishlist-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.wishlist-filters {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  margin-bottom: calc(var(--spacer) * 4);
  background: var(--card-bg);
  padding: calc(var(--spacer) * 2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .wishlist-filters {
    flex-direction: row;
    align-items: center;
    gap: calc(var(--spacer) * 2);
    padding: calc(var(--spacer) * 2.5);
  }
}

.wishlist-filters .search-box {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
}

.wishlist-filters .search-box i {
  position: absolute;
  left: calc(var(--spacer) * 2);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  z-index: 1;
}

.wishlist-filters .search-box input {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2)
    calc(var(--spacer) * 1.5) calc(var(--spacer) * 5);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  min-height: 44px;
}

.wishlist-filters .filter-select {
  min-width: 140px;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  width: 100%;
}

@media (min-width: 640px) {
  .wishlist-filters .filter-select {
    width: auto;
  }
}

.wishlist-filters .btn-outline {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.9rem;
  white-space: nowrap;
  width: 100%;
}

@media (min-width: 640px) {
  .wishlist-filters .btn-outline {
    width: auto;
  }
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacer) * 2.5);
  width: 100%;
}

.wishlist-item {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.wishlist-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.wishlist-item-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wishlist-item:hover .wishlist-item-image img {
  transform: scale(1.05);
}

.remove-wishlist {
  position: absolute;
  top: calc(var(--spacer) * 1.5);
  right: calc(var(--spacer) * 1.5);
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-size: 0.9rem;
  z-index: 2;
}

.remove-wishlist:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.wishlist-item-content {
  padding: calc(var(--spacer) * 2);
}

.wishlist-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-item-provider {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-item-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.empty-wishlist {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  background: var(--card-bg);
  border-radius: 24px;
  color: var(--text-soft);
  grid-column: 1 / -1;
}

.empty-wishlist i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 2);
}

.empty-wishlist h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer));
}

.empty-wishlist p {
  margin-bottom: calc(var(--spacer) * 2);
  font-size: 0.95rem;
}

.empty-wishlist .btn-primary {
  display: inline-flex;
  min-width: 180px;
}

/* ========================================================================
   SECTION 15: REVIEWS DASHBOARD
   ======================================================================== */

.reviews-header {
  margin-bottom: calc(var(--spacer) * 3);
}

.reviews-header .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.reviews-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
}

.reviews-stats .stat-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: calc(var(--spacer) * 2);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  box-shadow: var(--shadow);
}

.reviews-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.reviews-stats .stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.reviews-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reviews-tabs {
  display: flex;
  gap: calc(var(--spacer));
  border-bottom: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 3);
  overflow-x: auto;
  padding-bottom: 2px;
  white-space: nowrap;
}

.reviews-tabs .tab-btn {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
}

.reviews-tabs .tab-btn:hover {
  color: var(--text-dark);
}

.reviews-tabs .tab-btn.active {
  color: var(--accent);
}

.reviews-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.reviews-container {
  min-height: 300px;
}

.pending-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2.5);
}

.review-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
}

.review-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.review-info p {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin-bottom: calc(var(--spacer) * 0.5);
}

.review-date {
  font-size: 0.7rem;
  color: var(--accent);
}

.review-card .btn-primary {
  width: 100%;
}

.written-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: calc(var(--spacer) * 2.5);
}

.written-review-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 2.5);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.review-provider {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
}

.review-service {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: calc(var(--spacer) * 1.2);
}

.review-text {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: calc(var(--spacer) * 1.2);
  border-top: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-soft);
}

.star-rating {
  display: flex;
  gap: calc(var(--spacer) * 0.5);
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
}

.star-rating i {
  transition: all 0.2s;
}

.star-rating i.active,
.star-rating i.fas.fa-star {
  color: #fbbf24;
}

.star-rating i:hover {
  transform: scale(1.1);
}

/* ========================================================================
   SECTION 16: GALLERY DASHBOARD
   ======================================================================== */

.gallery-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 1.5);
  margin-bottom: calc(var(--spacer) * 3);
  width: 100%;
}

@media (min-width: 640px) {
  .gallery-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.gallery-header .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.gallery-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: calc(var(--spacer) * 0.5);
}

.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: 24px;
  padding: calc(var(--spacer) * 4);
  text-align: center;
  cursor: pointer;
  margin-bottom: calc(var(--spacer) * 4);
  transition: all 0.3s ease;
  background: var(--card-bg);
  width: 100%;
  box-sizing: border-box;
}

.upload-area:hover {
  border-color: var(--accent);
  background: #f2ebe3;
}

.upload-area i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: calc(var(--spacer) * 2);
}

.upload-area p {
  margin-bottom: calc(var(--spacer) * 0.5);
  color: var(--text-dark);
  font-size: 1rem;
}

.upload-area small {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: calc(var(--spacer) * 2);
  width: 100%;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-actions {
  display: flex;
  gap: calc(var(--spacer));
}

.gallery-item-actions button {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-size: 1rem;
}

.gallery-item-actions button:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.empty-gallery {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  background: var(--card-bg);
  border-radius: 24px;
  color: var(--text-soft);
  grid-column: 1 / -1;
}

.empty-gallery i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: calc(var(--spacer) * 2);
}

.empty-gallery h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer));
}

.empty-gallery p {
  margin-bottom: calc(var(--spacer) * 2);
  font-size: 0.95rem;
}

/* ========================================================================
   SECTION 17: PROFILE SETTINGS
   ======================================================================== */

.profile-dashboard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: calc(var(--spacer) * 3);
}

.profile-header .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.profile-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.profile-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.profile-tabs .tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-radius: 30px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-tabs .tab-btn:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.profile-tabs .tab-btn.active {
  background: var(--accent);
  color: white;
}

.profile-content {
  animation: fadeIn 0.3s ease;
  min-height: 400px;
  width: 100%;
}

.tab-pane {
  animation: fadeIn 0.3s ease;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 2);
  align-items: center;
  margin: calc(var(--spacer) * 3) 0;
  padding: calc(var(--spacer) * 2.5);
  background: var(--bg);
  border-radius: 20px;
}

@media (min-width: 640px) {
  .profile-avatar-section {
    flex-direction: row;
    gap: calc(var(--spacer) * 3);
    align-items: center;
    text-align: left;
  }
}

.avatar-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--border-light);
  transition: all 0.2s;
  flex-shrink: 0;
}

.avatar-preview:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  gap: 4px;
}

.avatar-preview:hover .avatar-overlay {
  opacity: 1;
}

.avatar-overlay i {
  font-size: 1.2rem;
}

.avatar-overlay span {
  font-size: 0.7rem;
}

.avatar-info {
  flex: 1;
  min-width: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .avatar-info {
    text-align: left;
  }
}

.avatar-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.avatar-info p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: calc(var(--spacer) * 1.5);
  line-height: 1.5;
}

.avatar-info .btn-outline,
.avatar-info .btn-text {
  margin-right: calc(var(--spacer));
  margin-bottom: calc(var(--spacer) * 0.5);
}

@media (max-width: 480px) {
  .avatar-info .btn-outline,
  .avatar-info .btn-text {
    width: 100%;
    margin-right: 0;
  }
}

.profile-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: calc(var(--spacer) * 3);
  box-shadow: var(--shadow);
  margin-bottom: calc(var(--spacer) * 3);
  width: 100%;
  box-sizing: border-box;
}

.profile-card-header {
  margin-bottom: calc(var(--spacer) * 2);
}

.profile-card-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacer) * 0.5);
}

.profile-form {
  max-width: 800px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacer) * 1.5);
  margin-bottom: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 480px) {
  .form-row {
    gap: calc(var(--spacer) * 2);
    margin-bottom: calc(var(--spacer) * 2);
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: calc(var(--spacer) * 1.5);
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: calc(var(--spacer) * 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.9rem;
  min-height: 44px;
  background: var(--bg);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.form-control:disabled {
  background: var(--bg);
  color: var(--text-soft);
  cursor: not-allowed;
  opacity: 0.7;
}

.field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  margin-top: calc(var(--spacer) * 2);
}

@media (min-width: 480px) {
  .form-actions {
    flex-direction: row;
    gap: calc(var(--spacer) * 1.5);
    margin-top: calc(var(--spacer) * 2.5);
  }
}

.form-actions .btn-primary {
  min-width: 160px;
  width: 100%;
}

@media (min-width: 480px) {
  .form-actions .btn-primary {
    width: auto;
  }
}

.message-alert {
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.message-alert.success {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #2f6e4a;
}

.message-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #991b1b;
}

.message-alert i {
  font-size: 1.2rem;
}

.password-strength {
  margin-top: calc(var(--spacer));
}

.strength-meter {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
  width: 100%;
}

.strength-fill {
  height: 100%;
  transition:
    width 0.3s,
    background-color 0.3s;
}

.strength-fill.weak {
  background: #ef4444;
}

.strength-fill.medium {
  background: #f59e0b;
}

.strength-fill.strong {
  background: #10b981;
}

.strength-text {
  font-size: 0.7rem;
  color: var(--text-soft);
}

.password-requirements {
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
}

.password-requirements p {
  margin: 0 0 10px 0;
  font-weight: 600;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.password-requirements li.valid {
  color: #10b981;
}

.password-requirements li.invalid {
  color: var(--text-soft);
}

.password-requirements li i {
  width: 16px;
}

.password-match-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  padding-left: 5px;
}

.security-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer) * 3) 0;
}

.sessions-section {
  margin-top: 30px;
}

.sessions-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacer) * 0.5);
  color: var(--text-dark);
}

.sessions-section p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: calc(var(--spacer) * 1.5);
}

.sessions-list {
  margin: calc(var(--spacer) * 1.5) 0;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: calc(var(--spacer));
}

.session-item.current {
  border: 1px solid var(--accent);
  background: #f2ebe3;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 200px;
}

.session-info i {
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px;
}

.device-name {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.device-location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.session-status {
  padding: 4px 12px;
  background: #e3f2e9;
  color: #2f6e4a;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.sessions-section .btn-text {
  color: var(--text-soft);
  font-size: 0.85rem;
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  min-height: 40px;
}

.sessions-section .btn-text:hover {
  color: var(--accent);
  background: var(--bg);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ========================================================================
   SECTION 18: MODALS
   ======================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: calc(var(--spacer));
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.3s ease;
  position: relative;
  margin: auto;
}

@media (min-width: 480px) {
  .modal-content {
    width: 90%;
    border-radius: 28px;
  }
}

.modal-header {
  padding: calc(var(--spacer) * 2.5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.modal-body {
  padding: calc(var(--spacer) * 2.5);
}

.modal-footer {
  padding: calc(var(--spacer) * 2.5);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
  background: var(--bg);
  border-radius: 0 0 24px 24px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

@media (min-width: 480px) {
  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: calc(var(--spacer) * 2);
  }
}

.modal-footer .btn-outline,
.modal-footer .btn-primary,
.modal-footer .btn-danger {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .modal-footer .btn-outline,
  .modal-footer .btn-primary,
  .modal-footer .btn-danger {
    width: auto;
    min-width: 120px;
  }
}

.users-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: calc(var(--spacer) * 2);
}

.user-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  padding: calc(var(--spacer) * 1.5);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.user-item:hover {
  background: var(--bg);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.user-item .user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================
   SECTION 19: LOADING STATES
   ======================================================================== */

.loading-state {
  text-align: center;
  padding: calc(var(--spacer) * 6);
  color: var(--text-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: calc(var(--spacer) * 2);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  height: 80px;
  margin: calc(var(--spacer) * 2);
}

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

/* ========================================================================
   SECTION 20: TOAST NOTIFICATIONS
   ======================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer));
}

@media (max-width: 480px) {
  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

.toast-notification {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer));
  min-width: 280px;
  max-width: 350px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .toast-notification {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
}

.toast-notification.success {
  border-left-color: #10b981;
}

.toast-notification.error {
  border-left-color: #ef4444;
}

.toast-notification.info {
  border-left-color: var(--accent);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-notification i {
  font-size: 1rem;
}

.toast-notification.success i {
  color: #10b981;
}

.toast-notification.error i {
  color: #ef4444;
}

.toast-notification.info i {
  color: var(--accent);
}

/* ========================================================================
   SECTION 21: ANIMATIONS
   ======================================================================== */

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* ========================================================================
   SECTION 22: RESPONSIVE UTILITIES
   ======================================================================== */

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }

  .show-mobile {
    display: none;
  }
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: calc(var(--spacer) * 0.5) 0;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.6rem;
  padding: calc(var(--spacer) * 0.5) 0;
  min-height: 48px;
  transition: all 0.2s;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.bottom-nav-item span {
  font-size: 0.6rem;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item .badge {
  position: absolute;
  top: 2px;
  right: 15px;
  background: var(--accent);
  color: white;
  font-size: 0.55rem;
  min-width: 16px;
  height: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item,
.nav-section-header,
.nav-subitem,
.icon-btn,
.profile-btn,
.mobile-menu-toggle,
.sidebar-close,
.bottom-nav-item,
.btn-primary,
.btn-outline,
.btn-text,
.btn-icon,
.filter-tab,
.tab-btn,
.modal-close {
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  font-size: 16px;
}

.dashboard-content,
.messages-list,
.conversations-list,
.notifications-list,
.profile-content,
.modal-body,
.users-list {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================================
   SECTION 23: CUSTOM SCROLLBAR
   ======================================================================== */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* ========================================================================
   SECTION 24: PRINT STYLES
   ======================================================================== */

@media print {
  .dashboard-sidebar,
  .dashboard-header,
  .mobile-bottom-nav,
  .icon-btn,
  .profile-btn,
  .btn-primary,
  .btn-outline,
  .btn-text,
  .btn-icon,
  .filter-tabs,
  .filter-actions,
  .calendar-actions,
  .calendar-navigation .btn-icon,
  .view-btn,
  .modal-close,
  .modal-footer {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  .dashboard-content,
  .overview-dashboard,
  .orders-dashboard,
  .bookings-dashboard,
  .calendar-dashboard {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .order-card,
  .booking-card,
  .wishlist-item,
  .profile-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  body * {
    visibility: hidden;
  }

  .dashboard-main,
  .dashboard-main * {
    visibility: visible;
  }

  .dashboard-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ========================================================================
   REDESIGNED ORDERS SECTION STYLES
   ======================================================================== */

/* Order Card Modern */
.order-card-modern {
  transition: all 0.3s ease;
  border: 1px solid #ece9e5;
}

.order-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Status Badges */
.status-badge-modern {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Progress Bar Animation */
.progress-bar-fill {
  transition: width 0.5s ease;
}

/* Order Detail Modern */
.order-detail-modern {
  animation: fadeIn 0.3s ease;
}

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

/* Update Item Animation */
.update-item {
  animation: slideIn 0.3s ease;
}

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

/* Stat Card Hover Effect */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Milestone Item */
.milestone-item {
  transition: all 0.2s ease;
}

.milestone-item:hover {
  background: #f1f5f9 !important;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .orders-dashboard {
    padding: 10px;
  }

  .order-detail-modern {
    padding: 10px;
  }

  .stat-card {
    padding: 15px !important;
  }

  .stat-card div[style*="48px"] {
    width: 40px !important;
    height: 40px !important;
  }

  .stat-card span[style*="1.8rem"] {
    font-size: 1.4rem !important;
  }
}

/* ========================================================================
   REDESIGNED CUSTOMER ORDERS SECTION STYLES
   ======================================================================== */

/* Order Card Modern */
.order-card-modern {
  transition: all 0.3s ease;
  border: 1px solid #ece9e5;
}

.order-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Status Badges */
.status-badge-modern {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Progress Bar Animation */
.progress-bar-fill {
  transition: width 0.5s ease;
}

/* Order Detail Modern */
.order-detail-modern {
  animation: fadeIn 0.3s ease;
}

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

/* Update Item Animation */
.update-item {
  animation: slideIn 0.3s ease;
}

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

/* Stat Card Hover Effect */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Action Buttons */
.pay-deposit-btn,
.pay-first-payment-btn,
.pay-final-btn,
.accept-quote-btn,
.reject-quote-btn {
  transition: all 0.2s ease;
}

.pay-deposit-btn:hover,
.pay-first-payment-btn:hover,
.pay-final-btn:hover,
.accept-quote-btn:hover {
  transform: scale(1.02);
}

.reject-quote-btn:hover {
  background: #ef4444 !important;
  color: white !important;
  border-color: #ef4444 !important;
}

/* Quote Details Card */
.quote-details-card {
  border: 2px solid #f2ebe3;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .orders-dashboard {
    padding: 10px;
  }

  .order-detail-modern {
    padding: 10px;
  }

  .stat-card {
    padding: 15px !important;
  }

  .stat-card div[style*="48px"] {
    width: 40px !important;
    height: 40px !important;
  }

  .stat-card span[style*="1.8rem"] {
    font-size: 1.4rem !important;
  }

  .order-card-modern {
    margin-bottom: 15px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f2ebe3;
  border-top-color: #b78c5a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: var(--z-toast, 1100);
  animation: slideInRight 0.3s ease;
}

.toast-notification.success {
  background: #10b981;
}

.toast-notification.error {
  background: #ef4444;
}

.toast-notification.info {
  background: #b78c5a;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.order-card-modern {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.order-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(183, 140, 90, 0.2);
  border-color: var(--accent-light);
}

.order-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.order-card-modern:hover::before {
  transform: scaleX(1);
}

.order-card-header {
  padding: 20px 20px 15px;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-badge-modern {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-card-body {
  padding: 20px;
  flex: 1;
}

.provider-info-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.provider-avatar-modern {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 8px 16px -8px var(--accent);
}

.order-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.metric-item-compact {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.metric-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2e2a28;
}

.progress-bar-modern {
  height: 6px;
  background: #ece9e5;
  border-radius: 3px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill-modern {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.order-card-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-reference {
  font-family: monospace;
  color: #64748b;
  font-size: 0.75rem;
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 30px;
}

.action-button-modern {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.2s;
}

.action-button-modern:hover {
  background: #f2ebe3;
}

.product-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -12px rgba(183, 140, 90, 0.15);
  border-color: var(--accent-light);
}

.product-image {
  height: 160px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.product-badge.pending {
  background: #fef3e2;
  color: #b45309;
}
.product-badge.accepted {
  background: #e3f2e9;
  color: #2f6e4a;
}
.product-badge.shipped {
  background: #e1f0fa;
  color: #1e4a6b;
}
.product-badge.delivered {
  background: #e3f2e9;
  color: #2f6e4a;
}

.product-content {
  padding: 16px;
  flex: 1;
}

.product-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #2e2a28;
}

.product-provider {
  font-size: 0.8rem;
  color: #b78c5a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 12px;
}

.product-quantity {
  display: flex;
  flex-direction: column;
}

.quantity-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
}

.quantity-value {
  font-weight: 600;
  font-size: 1rem;
}

.product-total {
  text-align: right;
}

.total-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
}

.total-value {
  font-weight: 700;
  color: #b78c5a;
  font-size: 1rem;
}

.product-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracking-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.booking-card-premium {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: relative;
}

.booking-card-premium.modified {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px -12px rgba(183, 140, 90, 0.2);
}

.booking-card-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge-premium {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-offer-badge {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
}

.booking-date-badge {
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.booking-card-body {
  padding: 20px;
}

.provider-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.provider-avatar-booking {
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: 0 8px 16px -8px var(--accent);
}

.provider-details-compact h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e2a28;
}

.service-type {
  color: var(--accent);
  font-size: 0.9rem;
}

.booking-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-icon {
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.meta-label-small {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.meta-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2e2a28;
}

.location-preview,
.zones-preview {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #2e2a28;
}

.location-preview i,
.zones-preview i {
  color: var(--accent);
  width: 20px;
}

.booking-note-preview {
  background: #fef3e2;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  font-style: italic;
  color: #2e2a28;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.booking-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-reference {
  font-family: monospace;
  color: #64748b;
  font-size: 0.75rem;
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 30px;
}

.view-details-btn {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.2s;
}

.view-details-btn:hover {
  background: #f2ebe3;
}

.action-buttons-booking {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-booking-primary {
  background: #2f6e4a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
}

.btn-booking-primary:hover {
  background: #235336;
}

.btn-booking-outline {
  background: white;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
}

.btn-booking-outline:hover {
  background: #f2ebe3;
}

.btn-booking-danger {
  background: white;
  border: 2px solid #ef4444;
  color: #ef4444;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
}

.btn-booking-danger:hover {
  background: #fee2e2;
}

/* ========================================================================
   CUSTOMER DASHBOARD - MODERN REDESIGN STYLES
   ======================================================================== */

/* Modern Stats Grid */
.order-stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card-modern {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.stat-card-modern.pending::before {
  background: #b45309;
}
.stat-card-modern.quoted::before {
  background: #b78c5a;
}
.stat-card-modern.in-progress::before {
  background: #1e4a6b;
}
.stat-card-modern.completed::before {
  background: #2f6e4a;
}

.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -12px rgba(183, 140, 90, 0.15);
}

.stat-card-modern:hover::before {
  width: 6px;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-modern.pending .stat-icon-wrapper {
  background: #fef3e2;
  color: #b45309;
}
.stat-card-modern.quoted .stat-icon-wrapper {
  background: #f2ebe3;
  color: #b78c5a;
}
.stat-card-modern.in-progress .stat-icon-wrapper {
  background: #e1f0fa;
  color: #1e4a6b;
}
.stat-card-modern.completed .stat-icon-wrapper {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 4px;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e2a28;
  line-height: 1;
}

.stat-trend {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Filters Panel */
.filters-panel-modern {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
}

.search-box-large {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box-large i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-box-large input {
  width: 100%;
  padding: 12px 12px 12px 45px;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.search-box-large input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.filter-select-premium {
  padding: 12px 40px 12px 20px;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  min-width: 180px;
}

.filter-select-premium:focus {
  outline: none;
  border-color: var(--accent);
}

/* Orders Grid */
.orders-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

/* Order Detail Premium Styles */
.order-detail-container-modern {
  max-width: 1400px;
  margin: 0 auto;
}

.detail-header-premium {
  position: relative;
  margin-bottom: 30px;
  padding: 30px 0;
  overflow: hidden;
  border-radius: 30px;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-icon-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2e2a28;
  transition: all 0.3s;
}

.btn-icon-back:hover {
  background: var(--accent);
  color: white;
}

.header-title-section h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 8px 0;
  color: #2e2a28;
}

.order-id-highlight {
  color: var(--accent);
  font-weight: 500;
}

.order-meta-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.date-tag,
.booking-tag {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.3;
}

/* Status Timeline */
.status-timeline-premium {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #94a3b8;
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-step.active .step-marker {
  background: var(--accent);
  color: white;
}

.timeline-step.current .step-marker {
  border-color: var(--accent);
  transform: scale(1.1);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e2a28;
  display: block;
  margin-bottom: 4px;
}

.step-connector {
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-step.active .step-connector {
  background: var(--accent);
}

/* Provider Card Premium */
.provider-card-premium {
  background: linear-gradient(135deg, #f8fafc, white);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.provider-avatar-large {
  width: 70px;
  height: 70px;
  background: var(--accent-gradient);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 10px 20px -8px var(--accent);
}

.provider-info-large {
  flex: 1;
}

.provider-info-large h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: #2e2a28;
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.provider-contact span {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-contact i {
  color: var(--accent);
  width: 18px;
}

.btn-contact {
  padding: 12px 24px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-contact:hover {
  background: var(--accent);
  color: white;
}

/* Service Details Card */
.service-details-card,
.quote-details-card,
.action-center-card,
.updates-timeline-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
}

.card-title {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  color: #2e2a28;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--accent);
}

.service-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.info-item.full-width {
  grid-column: span 2;
}

.info-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 4px;
}

.info-value {
  font-weight: 600;
  color: #2e2a28;
}

.info-description {
  margin: 0;
  color: #5e5a58;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Payment Schedule */
.payment-schedule {
  margin-top: 20px;
}

.payment-schedule h5 {
  margin: 0 0 15px 0;
  color: #2e2a28;
}

.schedule-timeline {
  position: relative;
  padding-left: 30px;
}

.schedule-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #ece9e5;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.schedule-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  z-index: 2;
}

.schedule-item.completed .schedule-marker {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.schedule-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-label {
  font-weight: 500;
  color: #2e2a28;
  min-width: 140px;
}

.schedule-amount {
  font-weight: 600;
  color: var(--accent);
}

.schedule-status {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 30px;
  background: #f1f5f9;
  color: #64748b;
}

.schedule-item.completed .schedule-status {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* Updates Timeline */
.updates-list-premium {
  max-height: 400px;
  overflow-y: auto;
}

.update-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 10px;
}

.update-avatar i {
  font-size: 2rem;
  color: var(--accent);
}

.update-content {
  flex: 1;
}

.update-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.update-author {
  font-weight: 600;
  color: #2e2a28;
}

.update-time {
  font-size: 0.75rem;
  color: #64748b;
}

.update-text {
  margin: 0 0 10px 0;
  color: #5e5a58;
  line-height: 1.5;
}

.update-media {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
}

.empty-updates {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.empty-updates i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.3;
}

.empty-updates p {
  margin: 0 0 5px 0;
  font-weight: 600;
}

.empty-updates span {
  font-size: 0.85rem;
}

/* Action Buttons Container */
.action-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Product Orders Dashboard */
.product-orders-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-grid-minimal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-minimal-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
}

.stat-minimal-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.stat-minimal-card .stat-content {
  flex: 1;
}

.stat-minimal-card .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2e2a28;
  display: block;
  line-height: 1.2;
}

.stat-minimal-card .stat-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filters-bar {
  background: white;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--border-light);
}

.filter-select-minimal {
  padding: 10px 35px 10px 15px;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
}

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

/* ========================================================================
   NESTED SUBMENU STYLES
   ======================================================================== */

/* Nested submenu container */
.nav-submenu.nested {
  padding-left: calc(var(--spacer) * 1.5);
  margin-left: calc(var(--spacer) * 3);
  border-left: 1px solid var(--border-light);
  margin-bottom: calc(var(--spacer) * 0.5);
}

/* Nested section header */
.nav-section.nested {
  margin: calc(var(--spacer) * 0.5) 0;
}

.nav-section.nested .nav-section-header {
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 1.5);
  min-height: 40px;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
}

.nav-section.nested .nav-section-header i:first-child {
  width: 18px;
  font-size: 0.9rem;
}

.nav-section.nested .nav-section-header .dropdown-icon {
  font-size: 0.7rem;
}

.nav-section.nested .nav-section-header:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.nav-section.nested .nav-section-header.active {
  background: #f2ebe3;
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Submenu divider */
.nav-submenu-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer) * 1) calc(var(--spacer) * 2);
}

/* Ensure proper spacing for nested items */
.nav-submenu.nested .nav-subitem {
  padding: calc(var(--spacer) * 1) calc(var(--spacer) * 1.2);
  min-height: 36px;
  font-size: 0.8rem;
}

.nav-submenu.nested .nav-subitem i {
  width: 16px;
  font-size: 0.8rem;
}

.nav-submenu.nested .nav-subitem .badge {
  font-size: 0.55rem;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .nav-submenu.nested {
    padding-left: calc(var(--spacer) * 1.2);
    margin-left: calc(var(--spacer) * 2.5);
  }

  .nav-section.nested .nav-section-header {
    padding: calc(var(--spacer) * 1) calc(var(--spacer) * 1.2);
    font-size: 0.8rem;
    min-height: 40px;
  }

  .nav-section.nested .nav-section-header i:first-child {
    width: 16px;
    font-size: 0.8rem;
  }

  .nav-submenu.nested .nav-subitem {
    padding: calc(var(--spacer) * 0.8) calc(var(--spacer) * 1);
    font-size: 0.75rem;
    min-height: 34px;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .nav-submenu.nested {
    padding-left: calc(var(--spacer));
    margin-left: calc(var(--spacer) * 2);
  }
}

/* Add to your existing CSS */
.nav-submenu-mini-divider {
  height: 1px;
  background: var(--border-light);
  margin: calc(var(--spacer) * 0.5) calc(var(--spacer) * 2);
  opacity: 0.5;
}

/* Style for "All" items to make them stand out slightly */
.nav-submenu.nested .nav-subitem:first-of-type {
  font-weight: 500;
}

.nav-submenu.nested .nav-subitem:first-of-type i {
  color: var(--accent);
}

/* ========================================================================
   ENHANCED ORDERS SECTION - MATCHING PROVIDER DESIGN
   ======================================================================== */

.orders-dashboard-enhanced {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacer) * 2);
  width: 100%;
}

@media (min-width: 768px) {
  .orders-dashboard-enhanced {
    padding: calc(var(--spacer) * 3);
  }
}

.orders-header-enhanced {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 3);
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .orders-header-enhanced {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacer) * 3);
    margin-bottom: calc(var(--spacer) * 4);
  }
}

.orders-header-enhanced .page-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.orders-header-enhanced .page-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.orders-header-enhanced .page-subtitle {
  padding-top: 10px;
}

.orders-header-actions {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  width: 100%;
}

@media (min-width: 640px) {
  .orders-header-actions {
    width: auto;
  }
}

.orders-header-actions .btn-outline,
.orders-header-actions .btn-primary {
  padding: calc(var(--spacer) * 1.2) calc(var(--spacer) * 2);
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacer) * 0.8);
  white-space: nowrap;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary {
    padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2.5);
    font-size: 0.9rem;
    gap: calc(var(--spacer));
    min-height: 48px;
  }
}

.orders-header-actions .btn-primary {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
  text-decoration: none;
}

.orders-header-actions .btn-primary:hover {
  background: #4a3f3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.15);
}

.category-tab {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
}

.category-tab i {
  font-size: 0.75rem;
  color: currentColor;
  opacity: 0.7;
}

.category-tab .tab-badge {
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.65rem;
  margin-left: 2px;
  color: var(--text-soft);
}

.category-tab:hover {
  color: var(--accent);
  background: var(--bg);
  border-color: var(--border-light);
}

.category-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.15);
}

.category-tab.active i {
  opacity: 1;
}

.category-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card-enhanced {
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-light);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.orders-filters-bar {
  background: white;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 768px) {
  .orders-filters-bar {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
  }
}

.search-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
}

.search-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  background: var(--bg);
  transition: all 0.2s;
  min-height: 44px;
  line-height: 1.5;
  color: var(--text-dark);
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .filter-group {
    width: auto;
    gap: 15px;
  }
}

.filter-select-enhanced {
  padding: 12px 35px 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: var(--bg);
  min-height: 44px;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5a58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 40px;
  flex: 1;
  min-width: 150px;
}

@media (min-width: 768px) {
  .filter-select-enhanced {
    flex: 0 1 auto;
    min-width: 160px;
  }
}

.filter-select-enhanced:hover {
  border-color: var(--accent);
}

.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
}

@media (min-width: 768px) {
  .clear-filters-btn {
    flex: 0 1 auto;
    min-width: 100px;
    padding: 12px 16px;
  }
}

.clear-filters-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

.orders-grid-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .orders-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .orders-grid-enhanced {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

.order-card-enhanced {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.order-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.order-card-enhanced:hover .view-details-indicator i {
  transform: translateX(4px);
}

.order-card-enhanced:active {
  transform: translateY(-2px);
}

.order-card-header-enhanced {
  padding: 15px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status-badge {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: capitalize;
  pointer-events: none; /* Prevents interfering with card click */
}

.order-status-badge.awaiting-deposit {
  background: #fef3e2;
  color: #b45309;
}

.order-status-badge.awaiting-visit {
  background: #e3f2e9;
  color: #2f6e4a;
}

.order-status-badge.awaiting-quote {
  background: #fef3e2;
  color: #b78c5a;
}

.order-status-badge.quoted {
  background: #f2ebe3;
  color: #b78c5a;
}

.order-status-badge.approved {
  background: #e3f2e9;
  color: #2f6e4a;
}

.order-status-badge.in-progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.order-status-badge.final-payment {
  background: #fef3e2;
  color: #b45309;
}

.order-status-badge.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.order-status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-status-badge.pending {
  background: var(--accent);
  color: white;
}

.order-status-badge.shipped {
  background: #10b981;
  color: white;
}

/* ========================================================================
   REVIEW MODAL STYLES
   ======================================================================== */

.star-rating {
  display: flex;
  gap: 8px;
  font-size: 1.8rem;
  color: #d1d5db;
  cursor: pointer;
  margin: 10px 0;
}

.star-rating i {
  transition: all 0.2s;
}

.star-rating i.fas.fa-star {
  color: #fbbf24;
}

.star-rating i:hover {
  transform: scale(1.1);
}

.star-rating i:hover ~ i {
  color: #d1d5db;
}

#reviewModalOverlay .modal-content {
  animation: slideUp 0.3s ease;
}

#reviewModalOverlay .form-group {
  margin-bottom: 20px;
}

#reviewModalOverlay label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

#reviewModalOverlay .required {
  color: #ef4444;
}

#reviewModalOverlay .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}

#reviewModalOverlay .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

#reviewModalOverlay textarea {
  resize: vertical;
  min-height: 120px;
}

#reviewModalOverlay .modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#reviewModalOverlay .btn-outline,
#reviewModalOverlay .btn-primary {
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.9rem;
}

#reviewModalOverlay .btn-outline {
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-dark);
}

#reviewModalOverlay .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#reviewModalOverlay .btn-primary {
  background: var(--accent);
  color: white;
}

#reviewModalOverlay .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(183, 140, 90, 0.3);
}

#reviewModalOverlay .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================================================
   WRITTEN REVIEWS STYLES
   ======================================================================== */

.written-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.written-review-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.written-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.written-review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #d4a5a5);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.written-review-card:hover::before {
  transform: scaleX(1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.review-provider-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-provider {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.review-type-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.review-type-badge.service {
  background: #e1f0fa;
  color: #1e4a6b;
}

.review-type-badge.product {
  background: #f2ebe3;
  color: var(--accent);
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
  white-space: nowrap;
}

.review-item-title {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.review-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.review-text {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.review-date {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-rating-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 30px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .written-reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ========================================================================
   REVIEW CARD STYLES - COMPLETE REDESIGN
   ======================================================================== */

/* Reviews Container */
.reviews-container {
  padding: 20px 0;
}

/* Pending Reviews Grid */
.pending-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* Written Reviews Grid */
.written-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* ========================================================================
   REVIEW CARD BASE STYLES
   ======================================================================== */

.review-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cardAppear 0.4s ease forwards;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(183, 140, 90, 0.15);
  border-color: var(--accent-light);
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
}

.review-card:hover::before {
  transform: scaleX(1);
}

/* ========================================================================
   PENDING REVIEW CARD
   ======================================================================== */

.review-card.pending {
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
  border-left: 4px solid #f59e0b;
}

.review-card .review-info {
  flex: 1;
}

.review-card .review-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card .review-info p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-card .review-info p i {
  color: var(--accent);
  font-size: 0.8rem;
}

.review-card .review-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.review-card .review-date i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* Order Type Badge */
.order-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 8px;
}

.order-type-badge.service {
  background: #e1f0fa;
  color: #1e4a6b;
}

.order-type-badge.product {
  background: #f2ebe3;
  color: var(--accent);
}

/* Provider Avatar */
.review-provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(183, 140, 90, 0.3);
}

/* Action Buttons */
.review-card .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.review-card .btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.review-card .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(183, 140, 90, 0.4);
}

.review-card .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.review-card .btn-primary i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.review-card .btn-primary:hover i {
  transform: translateX(4px);
}

/* ========================================================================
   WRITTEN REVIEW CARD
   ======================================================================== */

.written-review-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.written-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(183, 140, 90, 0.15);
}

.written-review-card::after {
  content: '"';
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.05;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Review Header */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.review-provider {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-provider i {
  color: var(--accent);
  font-size: 0.9rem;
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
  display: flex;
  gap: 2px;
}

.review-rating i {
  transition: transform 0.2s ease;
}

.written-review-card:hover .review-rating i {
  transform: scale(1.1);
}

.review-rating i:nth-child(2) {
  transition-delay: 0.05s;
}
.review-rating i:nth-child(3) {
  transition-delay: 0.1s;
}
.review-rating i:nth-child(4) {
  transition-delay: 0.15s;
}
.review-rating i:nth-child(5) {
  transition-delay: 0.2s;
}

/* Review Service */
.review-service {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f2ebe3;
  padding: 6px 12px;
  border-radius: 30px;
  width: fit-content;
}

.review-service i {
  font-size: 0.75rem;
}

/* Review Title */
.review-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* Review Text */
.review-text {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  padding-left: 12px;
  border-left: 3px solid var(--accent-light);
}

/* Review Footer */
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.review-footer .review-date {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-footer .review-date i {
  color: var(--accent);
  font-size: 0.7rem;
}

.review-footer .review-type-badge {
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-footer .review-type-badge.service {
  background: #e1f0fa;
  color: #1e4a6b;
}

.review-footer .review-type-badge.product {
  background: #f2ebe3;
  color: var(--accent);
}

/* Review Actions */
.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.review-actions .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.review-actions .btn-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========================================================================
   REVIEW STATS CARDS
   ======================================================================== */

.reviews-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.reviews-stats .stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.reviews-stats .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -10px rgba(183, 140, 90, 0.15);
  border-color: var(--accent-light);
}

.reviews-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.reviews-stats .stat-content {
  flex: 1;
}

.reviews-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2px;
}

.reviews-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================================
   REVIEW TABS
   ======================================================================== */

.reviews-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
  padding-bottom: 2px;
}

.reviews-tabs .tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  border-radius: 30px 30px 0 0;
}

.reviews-tabs .tab-btn:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.reviews-tabs .tab-btn.active {
  color: var(--accent);
  background: #f2ebe3;
}

.reviews-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* ========================================================================
   EMPTY STATES
   ======================================================================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  grid-column: 1 / -1;
}

.empty-state > i {
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    color: #fbbf24;
  }
}

.review-rating i {
  animation: starPulse 2s ease infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 768px) {
  .pending-reviews,
  .written-reviews {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 20px;
  }

  .written-review-card {
    padding: 20px;
  }

  .reviews-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .reviews-tabs {
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .reviews-tabs .tab-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

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

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .written-review-card::after {
    font-size: 4rem;
    bottom: 5px;
    right: 10px;
  }
}

/* ========================================================================
   PRODUCT ORDER DETAIL MODERN STYLES
   ======================================================================== */

.order-detail-modern.product-order-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .order-detail-modern.product-order-detail {
    padding: 30px;
  }
}

/* ========================================================================
   HEADER SECTION
   ======================================================================== */

.detail-header-enhanced {
  margin-bottom: 30px;
  position: relative;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.back-button:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.15);
}

.back-button i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-2px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  border-radius: 24px;
  padding: 25px 30px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.header-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
}

.title-section {
  flex: 1;
}

.order-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: var(--text-dark);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-id {
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  background: rgba(183, 140, 90, 0.1);
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-left: 10px;
  -webkit-text-fill-color: var(--accent);
}

.order-meta-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.meta-tag i {
  color: var(--accent);
  font-size: 0.8rem;
}

.meta-tag:hover {
  background: white;
  border-color: var(--accent);
  color: var(--text-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.status-badge-large {
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-badge-large.pending {
  background: #fef3e2;
  color: #b45309;
  border: 1px solid #fde6c9;
}

.status-badge-large.accepted {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #c8e6d9;
}

.status-badge-large.in-progress {
  background: #e1f0fa;
  color: #1e4a6b;
  border: 1px solid #b8d9f0;
}

.status-badge-large.shipped {
  background: #e1f0fa;
  color: #1e4a6b;
  border: 1px solid #b8d9f0;
}

.status-badge-large.delivered {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #c8e6d9;
}

.status-badge-large.completed {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #c8e6d9;
}

.status-badge-large.cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.header-gradient-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 24px 24px;
  opacity: 0.3;
}

/* ========================================================================
   PROVIDER CARD
   ======================================================================== */

.provider-section {
  margin-bottom: 30px;
}

.provider-card-premium {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.provider-card-premium::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.provider-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 10px 20px -5px rgba(183, 140, 90, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.provider-info-large {
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 2;
}

.provider-info-large h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.provider-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.provider-contact span:hover {
  color: var(--accent);
}

.provider-contact i {
  color: var(--accent);
  width: 18px;
  font-size: 0.9rem;
}

.btn-contact {
  padding: 12px 28px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px -2px rgba(183, 140, 90, 0.1);
}

.btn-contact:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(183, 140, 90, 0.3);
}

.btn-contact i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.btn-contact:hover i {
  transform: scale(1.1);
}

/* ========================================================================
   STATUS TIMELINE
   ======================================================================== */

.status-timeline-premium {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.section-title {
  margin: 0 0 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.section-title i {
  color: var(--accent);
  font-size: 1rem;
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  overflow-x: auto;
  padding: 10px 0;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-light);
}

.timeline-container::-webkit-scrollbar {
  height: 4px;
}

.timeline-container::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tracking-step:hover {
  background: white;
  border-color: var(--border-light);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tracking-step.completed {
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
  border-left: 4px solid var(--accent);
}

.tracking-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.tracking-step.completed .tracking-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 10px -2px rgba(183, 140, 90, 0.3);
}

.tracking-content {
  flex: 1;
}

.tracking-label {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.tracking-date {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tracking-step.completed .tracking-date {
  color: var(--accent);
}

.status-explanation {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--bg);
  border-radius: 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
}

.status-explanation i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2px;
}

.status-explanation strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.status-explanation p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ========================================================================
   DETAIL GRID
   ======================================================================== */

.detail-grid-enhanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .detail-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Left Column */
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info Cards */
.info-card,
.action-card {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.info-card:hover,
.action-card:hover {
  box-shadow: 0 12px 30px -12px rgba(183, 140, 90, 0.15);
  border-color: var(--accent-light);
}

.card-title {
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.card-title i {
  color: var(--accent);
  font-size: 0.95rem;
}

/* Product Details */
.product-details,
.address-details,
.additional-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.detail-label {
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.detail-value.highlight {
  color: var(--accent);
  font-size: 1.1rem;
}

.detail-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--bg);
  padding: 12px;
  border-radius: 12px;
  width: 100%;
}

/* Address Actions */
.address-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-text.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: var(--bg);
  border-radius: 30px;
  color: var(--text-soft);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-text.btn-sm:hover {
  background: var(--accent);
  color: white;
}

.btn-text.btn-sm i {
  font-size: 0.7rem;
}

/* Action Center */
.action-status-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid #fde6c9;
}

.action-status-info i {
  font-size: 2rem;
  color: #b45309;
}

.action-status-info h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #b45309;
}

.action-status-info p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.cancel-order-btn {
  width: 100%;
  padding: 14px;
  border: 2px solid #ef4444;
  background: white;
  color: #ef4444;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cancel-order-btn:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(239, 68, 68, 0.3);
}

/* Estimated Delivery */
.estimated-delivery {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #e1f0fa 0%, #ffffff 100%);
  border-radius: 40px;
  border: 1px solid #b8d9f0;
}

.estimated-delivery i {
  color: #1e4a6b;
  font-size: 1rem;
}

.estimated-delivery span {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.estimated-delivery strong {
  color: #1e4a6b;
  font-weight: 700;
}

/* Review Card */
#reviewCard {
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
  border: 2px solid var(--accent-light);
}

#reviewCard p {
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-block {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-block:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(183, 140, 90, 0.3);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 768px) {
  .order-detail-modern.product-order-detail {
    padding: 15px;
  }

  .header-content {
    flex-direction: column;
    padding: 20px;
  }

  .order-title {
    font-size: 1.6rem;
  }

  .order-id {
    font-size: 0.9rem;
    margin-left: 5px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-badge-large {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .provider-card-premium {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .provider-contact {
    align-items: center;
  }

  .btn-contact {
    width: 100%;
  }

  .tracking-step {
    padding: 12px;
  }

  .tracking-marker {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .status-explanation {
    flex-direction: column;
    gap: 10px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail-value {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .order-title {
    font-size: 1.4rem;
  }

  .meta-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-badge-large {
    justify-content: center;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .provider-avatar-large {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .provider-info-large h3 {
    font-size: 1.1rem;
  }

  .provider-contact span {
    font-size: 0.8rem;
  }

  .info-card,
  .action-card {
    padding: 20px;
  }

  .action-status-info {
    flex-direction: column;
    text-align: center;
  }

  .action-status-info i {
    font-size: 2.5rem;
  }

  .estimated-delivery {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.tracking-step.completed {
  animation: slideInRight 0.3s ease;
}

.status-badge-large.pending {
  animation: pulse 2s infinite;
}

/* ========================================================================
   PRINT STYLES
   ======================================================================== */

@media print {
  .order-detail-modern.product-order-detail {
    padding: 0;
  }

  .back-button,
  .btn-contact,
  .cancel-order-btn,
  .btn-block,
  .address-actions {
    display: none !important;
  }

  .header-content {
    box-shadow: none;
    border: 1px solid #000;
  }

  .provider-card-premium {
    box-shadow: none;
    border: 1px solid #000;
  }

  .info-card,
  .action-card {
    box-shadow: none;
    border: 1px solid #000;
    break-inside: avoid;
  }

  .status-badge-large {
    border: 1px solid #000;
    background: none !important;
    color: #000 !important;
  }
}
/* ========================================================================
   ALL ORDERS STATS GRID - SEPARATE SECTIONS
   ======================================================================== */

.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
}

.stats-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px 0;
  padding: 10px 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
}

.stats-section-header:first-of-type {
  margin-top: 0;
}

.stats-section-header i {
  font-size: 1rem;
  color: var(--accent);
  background: rgba(183, 140, 90, 0.1);
  padding: 8px;
  border-radius: 50%;
}

.stats-section-header h3 {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.stats-section-header .count-badge {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

/* Stat Card Enhancements */
.stat-card-enhanced {
  background: white;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
  border-color: var(--accent);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-card-enhanced:hover .stat-icon-wrapper {
  transform: scale(1.05);
}

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
}

/* Service-specific stat cards */
.stat-card-enhanced.awaiting-deposit .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.awaiting-visit .stat-icon-wrapper {
  background: rgba(47, 110, 74, 0.1);
  color: #2f6e4a;
}

.stat-card-enhanced.awaiting-quote .stat-icon-wrapper,
.stat-card-enhanced.quoted .stat-icon-wrapper {
  background: rgba(183, 140, 90, 0.1);
  color: #b78c5a;
}

.stat-card-enhanced.approved .stat-icon-wrapper,
.stat-card-enhanced.completed .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.in-progress .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.final-payment .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.cancelled .stat-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Product-specific stat cards */
.stat-card-enhanced.product-pending .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.product-accepted .stat-icon-wrapper,
.stat-card-enhanced.product-completed .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.product-in-progress .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.product-shipped .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.product-delivered .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.product-cancelled .stat-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-card-enhanced.service-all .stat-icon-wrapper,
.stat-card-enhanced.product-all .stat-icon-wrapper {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

/* Active state for stat cards */
.stat-card-enhanced.active {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.3);
}

.stat-card-enhanced.active .stat-icon-wrapper {
  background: var(--accent);
  color: white;
}

.stat-card-enhanced.active .stat-value {
  color: var(--accent);
}

/* Orders Sections Container */
.orders-sections-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.orders-section {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.orders-section .section-title-serif {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-light);
}

.orders-section .section-title-serif i {
  color: var(--accent);
  font-size: 1.1rem;
}

.orders-section .section-title-serif .section-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Service section specific */
.orders-section.service-section {
  border-left: 4px solid var(--accent);
}

.orders-section.service-section .section-title-serif i {
  color: var(--accent);
}

/* Product section specific */
.orders-section.product-section {
  border-left: 4px solid #3b82f6;
}

.orders-section.product-section .section-title-serif i {
  color: #3b82f6;
}

.orders-section.product-section .section-title-serif .section-badge {
  background: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-section-header {
    grid-column: span 2;
  }

  .stat-card-enhanced {
    padding: 12px;
  }

  .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

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

  .orders-section {
    padding: 20px;
  }
}

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

  .stats-section-header {
    grid-column: 1;
  }

  .orders-section .section-title-serif {
    font-size: 1.1rem;
  }
} /* ========================================================================
   EMPTY SUBSECTION STYLES
   ======================================================================== */

.empty-subsection {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg);
  border-radius: 20px;
  border: 2px dashed var(--border-light);
  grid-column: 1 / -1;
}

.empty-subsection i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.empty-subsection p {
  color: var(--text-soft);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.empty-subsection .btn-outline.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

/* Service card specific */
.order-card-enhanced.service-card {
  border-left: 4px solid var(--accent);
}

/* Product card specific */
.order-card-enhanced.product-card {
  border-left: 4px solid #3b82f6;
} /* ========================================================================
   ORDERS STATS GRID - COMPLETELY REDESIGNED FOR MOBILE
   ======================================================================== */

.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
}

/* Tablet and Desktop - more columns */
@media (min-width: 769px) {
  .orders-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .orders-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
}

/* ========================================================================
   MOBILE OPTIMIZATION - COMPACT GRID (NOT LIST)
   ======================================================================== */

@media (max-width: 768px) {
  .orders-stats-grid {
    display: grid !important; /* Force grid, not list */
    grid-template-columns: repeat(
      2,
      1fr
    ) !important; /* Always 2 columns on mobile */
    gap: 10px;
    padding: 5px;
  }

  /* Make stat cards more compact on mobile */
  .orders-stats-grid .stat-card-enhanced {
    padding: 12px 8px;
    margin: 0;
    min-width: 0; /* Prevent overflow */
    width: 100%;
  }

  /* Smaller icons */
  .orders-stats-grid .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  /* Smaller text */
  .orders-stats-grid .stat-label {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .orders-stats-grid .stat-value {
    font-size: 1rem;
  }

  /* Section headers span full width */
  .orders-stats-grid .stats-section-header {
    grid-column: 1 / -1 !important;
    margin: 5px 0 8px 0;
    padding: 8px 12px;
  }

  .orders-stats-grid .stats-section-header i {
    font-size: 0.9rem;
    padding: 6px;
  }

  .orders-stats-grid .stats-section-header h3 {
    font-size: 0.85rem;
  }

  .orders-stats-grid .stats-section-header .count-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
  .orders-stats-grid {
    grid-template-columns: repeat(
      2,
      1fr
    ) !important; /* Still 2 columns, never list */
    gap: 8px;
  }

  .orders-stats-grid .stat-card-enhanced {
    padding: 10px 6px;
  }

  .orders-stats-grid .stat-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .orders-stats-grid .stat-label {
    font-size: 0.55rem;
  }

  .orders-stats-grid .stat-value {
    font-size: 0.9rem;
  }
}

/* Very small devices (under 340px) - still grid, never list */
@media (max-width: 340px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }

  .orders-stats-grid .stat-card-enhanced {
    padding: 8px 4px;
  }

  .orders-stats-grid .stat-icon-wrapper {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .orders-stats-grid .stat-label {
    font-size: 0.5rem;
  }

  .orders-stats-grid .stat-value {
    font-size: 0.8rem;
  }
}

/* ========================================================================
   STAT CARD STYLES - KEEPING THE DESIGN BUT MORE COMPACT
   ======================================================================== */

.stat-card-enhanced {
  background: white;
  border-radius: 18px;
  padding: 18px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-width: 0; /* Prevent overflow */
  width: 100%;
}

.stat-card-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
  border-color: var(--accent);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0; /* Prevent overflow */
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-card-enhanced:hover .stat-icon-wrapper {
  transform: scale(1.05);
}

.stat-info {
  flex: 1;
  min-width: 0; /* Important for text truncation */
  overflow: hidden;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================================
   SECTION HEADERS - FULL WIDTH
   ======================================================================== */

.stats-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 15px 0;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
}

.stats-section-header:first-of-type {
  margin-top: 5px;
}

.stats-section-header i {
  font-size: 1rem;
  color: var(--accent);
  background: rgba(183, 140, 90, 0.1);
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-section-header h3 {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-section-header .count-badge {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 35px;
  text-align: center;
  flex-shrink: 0;
}

/* ========================================================================
   SERVICE-SPECIFIC STAT CARD COLORS
   ======================================================================== */

.stat-card-enhanced.awaiting-deposit .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.awaiting-visit .stat-icon-wrapper {
  background: rgba(47, 110, 74, 0.1);
  color: #2f6e4a;
}

.stat-card-enhanced.awaiting-quote .stat-icon-wrapper,
.stat-card-enhanced.quoted .stat-icon-wrapper {
  background: rgba(183, 140, 90, 0.1);
  color: #b78c5a;
}

.stat-card-enhanced.approved .stat-icon-wrapper,
.stat-card-enhanced.completed .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.in-progress .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.final-payment .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.cancelled .stat-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ========================================================================
   PRODUCT-SPECIFIC STAT CARD COLORS
   ======================================================================== */

.stat-card-enhanced.product-pending .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-card-enhanced.product-accepted .stat-icon-wrapper,
.stat-card-enhanced.product-completed .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.product-in-progress .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.product-shipped .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-enhanced.product-delivered .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-enhanced.product-cancelled .stat-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-card-enhanced.service-all .stat-icon-wrapper,
.stat-card-enhanced.product-all .stat-icon-wrapper,
.stat-card-enhanced.all-orders .stat-icon-wrapper {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

/* ========================================================================
   ACTIVE STATE
   ======================================================================== */

.stat-card-enhanced.active {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.3);
}

.stat-card-enhanced.active .stat-icon-wrapper {
  background: var(--accent);
  color: white;
}

.stat-card-enhanced.active .stat-value {
  color: var(--accent);
}

/* ========================================================================
   HORIZONTAL SCROLL PREVENTION - ENSURES GRID NEVER BECOMES LIST
   ======================================================================== */

.orders-stats-grid {
  overflow: visible !important; /* Prevent horizontal scroll */
  width: 100%;
}

.orders-stats-grid > * {
  min-width: 0; /* Allow content to shrink */
  max-width: 100%;
}

/* Force grid on all devices - NEVER list */
@media (max-width: 768px) {
  .orders-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Even on the smallest screens, maintain 2 columns */
@media (max-width: 480px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

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

.stat-card-enhanced.active {
  animation: statPulse 2s infinite;
}
/* Print Styles */
@media print {
  .review-card,
  .written-review-card {
    break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
  }

  .reviews-tabs,
  .review-actions,
  .btn-primary {
    display: none !important;
  }
}
.order-date-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
  font-size: 0.7rem;
  background: white;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.order-card-body-enhanced {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.customer-info-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.customer-avatar-enhanced {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(183, 140, 90, 0.2);
  pointer-events: none;
}

.customer-details-enhanced {
  flex: 1;
  min-width: 0;
}

.customer-name-enhanced {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-name-enhanced {
  color: var(--accent);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.order-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
  pointer-events: none;
}

.metric-item-enhanced {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.6rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.metric-value.highlight {
  color: var(--accent);
}

.metric-value.success {
  color: #10b981;
}

.metric-value.warning {
  color: #b45309;
}

.order-progress {
  margin-top: 5px;
  pointer-events: none;
}

.progress-bar-container {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.order-card-footer-enhanced {
  padding: 15px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.order-id-small {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-soft);
  pointer-events: none;
}

.view-details-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.2s ease;
  pointer-events: none; /* Prevents interfering with card click */
}

.view-details-indicator i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

/* Hover effect is triggered by card hover, not direct button hover */
.order-card-enhanced:hover .view-details-indicator i {
  transform: translateX(4px);
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  .order-card-enhanced:active {
    transform: scale(0.98);
    background: #f8fafc;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .order-card-header-enhanced {
    padding: 12px;
  }

  .order-card-body-enhanced {
    padding: 16px;
  }

  .customer-avatar-enhanced {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .order-metrics {
    padding: 10px;
    gap: 8px;
  }

  .metric-value {
    font-size: 0.75rem;
  }

  .order-card-footer-enhanced {
    padding: 12px;
  }

  .view-details-indicator {
    font-size: 0.75rem;
  }
}

/* Add to dashboard-customer.css */

/* Click Hint */
.click-hint {
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: var(--bg);
  border-radius: 40px;
  border: 1px dashed var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.5s ease;
}

.click-hint i {
  color: var(--accent);
  font-size: 0.9rem;
  animation: handWave 2s infinite;
}

@keyframes handWave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

/* Empty orders state (customer dashboard) */
.empty-orders-enhanced {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 30px;
  border: 2px dashed var(--border-light);
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
}

.empty-orders-enhanced .empty-illustration {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 2rem;
}

.empty-orders-enhanced .empty-illustration i {
  margin-bottom: 0;
  opacity: 1;
  font-size: 2rem;
}

.empty-orders-enhanced h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-orders-enhanced p {
  color: var(--text-soft);
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Empty state actions */
.empty-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .click-hint {
    width: 100%;
    margin-top: 15px;
    font-size: 0.75rem;
    padding: 10px;
  }

  .empty-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .empty-actions a {
    width: 100%;
  }
}

/* Add to dashboard-customer.css */

/* Type Tabs */
.orders-type-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: white;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  width: fit-content;
}

.type-tab {
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.type-tab i {
  font-size: 0.9rem;
}

.type-tab .tab-badge {
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.type-tab:hover {
  color: var(--accent);
  background: var(--bg);
}

.type-tab.active {
  background: var(--accent);
  color: white;
}

.type-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Header Action Group */
.header-action-group {
  display: flex;
  gap: 10px;
}

/* Status badge variations for different order types */
.order-card-enhanced.service .order-status-badge.awaiting-deposit {
  background: #fef3e2;
  color: #b45309;
}

.order-card-enhanced.product .order-status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.order-card-enhanced.product .order-status-badge.accepted {
  background: #e3f2e9;
  color: #2f6e4a;
}

.order-card-enhanced.product .order-status-badge.shipped {
  background: #e1f0fa;
  color: #1e4a6b;
}

.order-card-enhanced.product .order-status-badge.delivered {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* Empty Actions */
.empty-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .orders-type-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px;
  }

  .type-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header-action-group {
    flex-direction: column;
    width: 100%;
  }

  .header-action-group a {
    width: 100%;
  }

  .empty-actions {
    flex-direction: column;
    align-items: center;
  }

  .empty-actions a {
    width: 100%;
  }
}
/* Order type badge */
.order-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  background: rgba(183, 140, 90, 0.1);
  color: var(--accent);
}

.order-type-badge.service {
  background: rgba(183, 140, 90, 0.1);
  color: var(--accent);
}

.order-type-badge.product {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.order-quantity {
  font-size: 0.7rem;
  color: var(--text-soft);
  margin-left: 4px;
  font-weight: normal;
}

/* Add to dashboard-customer.css */

/* Order Detail Modern Styles */
.order-detail-modern {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .order-detail-modern {
    padding: 30px;
  }
}

/* Enhanced Header */
.detail-header-enhanced {
  margin-bottom: 30px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.back-button:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-4px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.title-section {
  flex: 1;
}

.order-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 8px 0;
  color: var(--text-dark);
}

.order-id {
  color: var(--accent);
  font-family: monospace;
}

.order-meta-tags {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.meta-tag i {
  color: var(--accent);
  font-size: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.status-badge-large {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-badge-large.awaiting-deposit {
  background: #fef3e2;
  color: #b45309;
}

.status-badge-large.awaiting-visit {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge-large.awaiting-quote {
  background: #fef3e2;
  color: #b78c5a;
}

.status-badge-large.quoted {
  background: #f2ebe3;
  color: #b78c5a;
}

.status-badge-large.approved {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge-large.in-progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-badge-large.final-payment {
  background: #fef3e2;
  color: #b45309;
}

.status-badge-large.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge-large.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.header-gradient-bg {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 20px;
  border-radius: 2px;
}

/* Provider Section */
.provider-section {
  margin-bottom: 30px;
}

.provider-card-premium {
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .provider-card-premium {
    flex-wrap: nowrap;
  }
}

.provider-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: 0 10px 20px -5px rgba(183, 140, 90, 0.2);
  flex-shrink: 0;
}

.provider-info-large {
  flex: 1;
}

.provider-info-large h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.provider-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.provider-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.provider-contact i {
  color: var(--accent);
  width: 18px;
}

.btn-contact {
  padding: 12px 24px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-contact:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

/* Status Timeline */
.status-timeline-premium {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
}

.section-title {
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 10px 0;
  gap: 10px;
}

.timeline-step-wrapper {
  flex: 1;
  min-width: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-marker-container {
  position: relative;
  margin-bottom: 10px;
}

.step-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  background: white;
  border: 2px solid var(--border-light);
  color: var(--text-soft);
}

.step-marker.completed {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-marker.current {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.step-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2px;
}

.step-description {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 100px;
}

.step-connector {
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-light);
  z-index: -1;
}

.status-explanation {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 20px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 0.9rem;
}

.status-explanation i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2px;
}

.status-explanation strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.status-explanation p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Detail Grid */
.detail-grid-enhanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

@media (min-width: 992px) {
  .detail-grid-enhanced {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Cards */
.info-card,
.action-card,
.updates-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
}

.card-title {
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

/* Service Details */
.service-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-details .detail-row:last-child {
  border-bottom: none;
}

.service-details .detail-row.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.detail-label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
}

.detail-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Quote Card */
.quote-card-enhanced {
  border-left: 4px solid var(--accent);
}

.quote-amount-summary {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.final-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.final-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Breakdown Section */
.breakdown-section,
.discounts-section {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 0.9rem;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-items,
.discount-items {
  background: var(--bg);
  border-radius: 12px;
  padding: 15px;
}

.breakdown-item,
.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.breakdown-item:last-child,
.discount-item:last-child {
  border-bottom: none;
}

.item-name {
  color: var(--text-dark);
  font-size: 0.9rem;
}

.item-amount {
  font-weight: 600;
  color: var(--accent);
}

.discount-item .item-amount {
  color: #b45309;
}

/* Payment Split */
.payment-split-enhanced {
  margin: 20px 0;
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 10px;
}

@media (min-width: 500px) {
  .split-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.split-card-enhanced {
  background: white;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.split-card-enhanced.first {
  border-top: 3px solid var(--accent);
}

.split-card-enhanced.second {
  border-top: 3px solid #94a3b8;
}

.split-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.split-number {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.split-card-enhanced.second .split-number {
  background: #94a3b8;
}

.split-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}

.split-percentage {
  font-size: 0.65rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
}

.split-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.split-card-enhanced.second .split-amount {
  color: #64748b;
}

.split-status {
  font-size: 0.8rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 30px;
  background: #f1f5f9;
  color: #64748b;
}

.status-indicator.paid {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-indicator.pending {
  background: #fef3e2;
  color: #b45309;
}

/* Deposit Info */
.deposit-info {
  background: #e3f2e9;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2f6e4a;
  font-weight: 500;
}

.deposit-status.success {
  background: white;
  padding: 4px 12px;
  border-radius: 30px;
  color: #2f6e4a;
  font-weight: 600;
}

/* Payment Progress Card */
.payment-progress-card {
  background: linear-gradient(135deg, #f2ebe3 0%, white 100%);
}

.payment-progress {
  margin-bottom: 20px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.progress-bar-container {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.payment-breakdown-mini {
  background: white;
  border-radius: 12px;
  padding: 15px;
}

.payment-breakdown-mini .breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
}

.payment-breakdown-mini .breakdown-item:last-child {
  border-bottom: none;
}

/* Action Buttons Container */
.action-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-button-primary {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-button-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

.action-button-secondary {
  width: 100%;
  padding: 14px;
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-button-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.action-button-danger {
  width: 100%;
  padding: 14px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-button-danger:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
}

/* Updates List */
.updates-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.update-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--bg);
  border-radius: 14px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  transition: all 0.2s ease;
}

.update-item:hover {
  transform: translateX(4px);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.update-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.update-content {
  flex: 1;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 5px;
}

.update-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

.update-time {
  font-size: 0.7rem;
  color: var(--text-soft);
  background: white;
  padding: 2px 8px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.update-text {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.update-media {
  margin-top: 10px;
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.update-media:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Counter Offer Card */
.counter-offer-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-top: 30px;
  border: 2px solid var(--accent);
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(183, 140, 90, 0.2);
}

.counter-badge {
  position: absolute;
  top: -1px;
  left: -20px;
  background: var(--accent);
  color: white;
  padding: 4px 20px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(183, 140, 90, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.counter-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 25px 0;
  flex-wrap: wrap;
}

.counter-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.counter-icon.pulse {
  animation: counterPulse 2s infinite;
}

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

.counter-title h3 {
  margin: 0 0 5px 0;
  font-size: 1.3rem;
  color: #b45309;
}

.counter-title p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.counter-input-group {
  margin-bottom: 20px;
}

.counter-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.amount-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.currency-symbol {
  padding: 0 15px;
  background: #f1f5f9;
  color: var(--text-soft);
  font-weight: 500;
  border-right: 1px solid var(--border-light);
  line-height: 48px;
}

.counter-amount-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-dark);
  outline: none;
}

.counter-preview {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row.highlight {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.preview-row.payment {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.send-counter-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.send-counter-btn:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(183, 140, 90, 0.3);
}

.counter-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Rejection Fee Card */
.rejection-fee-card {
  background: #fef3e2;
  border-radius: 24px;
  padding: 30px;
  margin-top: 30px;
  border: 2px solid #b45309;
}

.rejection-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.rejection-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.rejection-title h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  color: #b45309;
}

.rejection-title p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.rejection-breakdown {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row.fee {
  color: #b45309;
}

.breakdown-row.refund {
  font-weight: 600;
  color: #2f6e4a;
  font-size: 1.1rem;
}

.rejection-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.rejection-note i {
  color: #b45309;
  font-size: 1rem;
}

/* Empty Updates */
.empty-updates {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg);
  border-radius: 16px;
  color: var(--text-soft);
}

.empty-updates i {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.empty-updates p {
  margin: 0 0 5px 0;
  font-weight: 500;
}

.empty-updates span {
  font-size: 0.85rem;
}

/* Loading State */
.order-detail-loading {
  text-align: center;
  padding: 60px;
  color: var(--text-soft);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.order-detail-error {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  max-width: 500px;
  margin: 40px auto;
}

.order-detail-error i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 20px;
}

.order-detail-error h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.order-detail-error p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .order-title {
    font-size: 1.5rem;
  }

  .provider-card-premium {
    flex-direction: column;
    text-align: center;
  }

  .provider-contact {
    align-items: center;
  }

  .btn-contact {
    width: 100%;
  }

  .timeline-container {
    gap: 5px;
  }

  .step-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-connector {
    top: 20px;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .step-description {
    display: none;
  }

  .counter-header {
    flex-direction: column;
    text-align: center;
  }

  .rejection-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .order-detail-modern {
    padding: 15px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-badge-large {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .split-cards {
    grid-template-columns: 1fr;
  }

  .provider-avatar-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .provider-info-large h3 {
    font-size: 1.1rem;
  }

  .counter-offer-card {
    padding: 20px;
  }

  .counter-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .counter-title h3 {
    font-size: 1.1rem;
  }
}

/* Add to dashboard-customer.css */

/* ========================================================================
   PAYMENT MODAL - ENHANCED DESIGN
   ======================================================================== */

.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal, 1000);
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.payment-modal-content {
  background: white;
  border-radius: 32px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.payment-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
  border-radius: 32px 32px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.payment-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-modal-close:hover {
  background: var(--bg);
  color: var(--text-dark);
  transform: rotate(90deg);
}

/* Modal Body */
.payment-modal-body {
  padding: 30px;
  flex: 1;
}

/* Loading State */
.payment-loading {
  text-align: center;
  padding: 40px 20px;
}

.payment-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.payment-loading p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Payment Summary Card */
.payment-summary-card {
  background: linear-gradient(135deg, #f2ebe3 0%, white 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.summary-header i {
  font-size: 1.5rem;
  color: var(--accent);
}

.summary-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.summary-details {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-label i {
  color: var(--accent);
  width: 18px;
  font-size: 0.85rem;
}

.summary-value {
  font-weight: 600;
  color: var(--text-dark);
}

.summary-value.highlight {
  color: var(--accent);
  font-size: 1.1rem;
}

.summary-value.success {
  color: #2f6e4a;
}

.summary-value.warning {
  color: #b45309;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  margin-top: 5px;
  border-top: 2px solid var(--border-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.total-amount {
  font-size: 1.5rem;
  color: var(--accent);
}

/* Payment Breakdown Card */
.payment-breakdown-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid var(--border-light);
}

.breakdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.breakdown-header i {
  color: var(--accent);
  font-size: 1.1rem;
}

.breakdown-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}

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

.breakdown-item .label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.breakdown-item .value {
  font-weight: 600;
  color: var(--text-dark);
}

.breakdown-item.total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 2px solid #e2e8f0;
  font-weight: 700;
}

.breakdown-item.total .value {
  color: var(--accent);
  font-size: 1.1rem;
}

.breakdown-note {
  margin-top: 15px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-note i {
  color: #2f6e4a;
  font-size: 0.9rem;
}

/* Stripe Container */
.stripe-container {
  margin-bottom: 25px;
}

.stripe-element-wrapper {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s ease;
}

.stripe-element-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.payment-element {
  min-height: 120px;
}

.card-brand-logos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  color: var(--text-soft);
  font-size: 1.8rem;
  opacity: 0.5;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 25px;
}

.payment-methods h4 {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.method-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.method-card:hover:not([style*="pointer-events: none"]) {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.method-card.active {
  border-color: var(--accent);
  background: #f2ebe3;
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.1);
}

.method-card i {
  font-size: 1.8rem;
  color: var(--text-dark);
}

.method-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

.method-card small {
  position: absolute;
  top: -8px;
  right: 8px;
  background: #94a3b8;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Payment Message */
.payment-message {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

.payment-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.payment-message.success {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid #c8e6d9;
}

.payment-message.info {
  background: #e1f0fa;
  color: #1e4a6b;
  border: 1px solid #b8d9f0;
}

.payment-message i {
  font-size: 1.1rem;
}

/* Rejection Warning */
.rejection-warning {
  background: #fef3e2;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  border: 2px solid #b45309;
}

.rejection-warning i {
  font-size: 1.8rem;
  color: #b45309;
  flex-shrink: 0;
}

.warning-content strong {
  display: block;
  margin-bottom: 5px;
  color: #b45309;
  font-size: 0.95rem;
}

.warning-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Modal Footer */
.payment-modal-footer {
  padding: 20px 30px 30px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 15px;
  background: #f8fafc;
  border-radius: 0 0 32px 32px;
}

.payment-btn-primary,
.payment-btn-secondary {
  flex: 1;
  padding: 16px 20px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  min-height: 56px;
}

.payment-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.2);
}

.payment-btn-primary:hover:not(:disabled) {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 140, 90, 0.3);
}

.payment-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payment-btn-secondary {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.payment-btn-secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
  .payment-modal-content {
    max-width: 100%;
    border-radius: 24px;
  }

  .payment-modal-header {
    padding: 20px;
  }

  .payment-modal-header h3 {
    font-size: 1.2rem;
  }

  .payment-modal-body {
    padding: 20px;
  }

  .payment-modal-footer {
    padding: 20px;
    flex-direction: column-reverse;
  }

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

  .summary-total {
    font-size: 1rem;
  }

  .total-amount {
    font-size: 1.3rem;
  }

  .rejection-warning {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .payment-modal-header h3 {
    font-size: 1.1rem;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .summary-value {
    align-self: flex-end;
  }
}

.action-note {
  text-align: center;
}

/* Add to payment.css - Premium Redesign */

/* ========================================================================
   PAYMENT MODAL - PREMIUM REDESIGN
   ======================================================================== */

.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.payment-modal.active {
  opacity: 1;
}

.payment-modal .modal-content {
  max-width: 480px;
  width: 100%;
  background: white;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(236, 233, 229, 0.2);
}

.payment-modal.active .modal-content {
  transform: translateY(0);
}

/* Modal Header */
.payment-modal .modal-header {
  padding: 24px 28px 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--border-light);
}

.payment-modal .modal-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-modal .modal-header h3 i {
  color: var(--accent);
  font-size: 1.2rem;
}

.payment-modal .modal-close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
  background: var(--bg);
}

.payment-modal .modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Modal Body */
.payment-modal .modal-body {
  padding: 28px;
  background: white;
}

/* Payment Header */
.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.payment-type-badge {
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payment-type-badge i {
  font-size: 0.8rem;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 500;
  background: #e3f2e9;
  padding: 6px 12px;
  border-radius: 40px;
}

.security-badge i {
  font-size: 0.9rem;
}

/* Amount Card */
.amount-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.amount-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.amount-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.amount-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.amount-value .currency {
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 500;
}

.amount-value .number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: "Courier New", monospace;
}

.amount-value .decimal {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-left: 2px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: #f2ebe3;
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid rgba(183, 140, 90, 0.2);
}

.security-note i {
  font-size: 1rem;
  color: var(--accent);
}

/* Payment Elements Container */
.payment-element-container {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  min-height: 200px;
}

.payment-element-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.payment-element-container label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

/* Test Card Section */
.test-card-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-card-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  border: 1px solid var(--border-light);
}

.test-card-content {
  flex: 1;
}

.test-card-content .label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.test-card-content .card-number {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
  background: white;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  display: inline-block;
}

.test-card-content .card-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.test-card-content .card-hint i {
  color: var(--accent);
  margin-right: 4px;
}

/* Payment Message */
.payment-message {
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.payment-message i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.payment-message.info {
  background: #fef3e2;
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.payment-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.payment-message.success {
  background: #e3f2e9;
  color: #2f6e4a;
  border: 1px solid rgba(47, 110, 74, 0.2);
}

/* Modal Footer */
.payment-modal .modal-footer {
  padding: 20px 28px 28px 28px;
  background: white;
  border-top: 1px solid var(--border-light);
}

.pay-button {
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -5px rgba(183, 140, 90, 0.3);
  margin-bottom: 12px;
}

.pay-button:hover:not(:disabled) {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px rgba(183, 140, 90, 0.4);
}

.pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.pay-button.processing {
  background: #9a7a4e;
  cursor: wait;
}

.pay-button.processing i {
  animation: spin 1s linear infinite;
}

.cancel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
}

.cancel-link:hover {
  color: #ef4444;
}

.cancel-link i {
  font-size: 0.9rem;
}

.cancel-link:hover i {
  transform: scale(1.1);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .payment-modal .modal-header {
    padding: 20px 24px 12px 24px;
  }

  .payment-modal .modal-header h3 {
    font-size: 1.1rem;
  }

  .payment-modal .modal-body {
    padding: 20px;
  }

  .amount-card {
    padding: 20px;
  }

  .amount-value .number {
    font-size: 2.2rem;
  }

  .payment-element-container {
    padding: 16px;
  }

  .test-card-section {
    flex-direction: column;
    text-align: center;
  }

  .test-card-icon {
    margin: 0 auto;
  }

  .pay-button {
    padding: 16px;
    font-size: 1rem;
  }

  .payment-modal .modal-footer {
    padding: 16px 24px 24px 24px;
  }
}

@media (max-width: 360px) {
  .payment-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .amount-value .number {
    font-size: 1.8rem;
  }

  .test-card-content .card-number {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
}

/* Add to dashboard-customer.css */

/* ========================================================================
   COUNTER OFFER CARD - PREMIUM INLINE DESIGN
   ======================================================================== */

.counter-offer-container {
  background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 24px;
  margin-top: 20px;
  border: 2px solid var(--accent);
  box-shadow: 0 12px 30px -10px rgba(183, 140, 90, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease;
}

.counter-offer-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #dab88f);
}

.counter-offer-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(183, 140, 90, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.counter-offer-badge i {
  font-size: 0.8rem;
}

.counter-offer-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 0 25px 0;
  flex-wrap: wrap;
}

.counter-offer-icon {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #dab88f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 20px -5px rgba(183, 140, 90, 0.3);
  animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px -5px rgba(183, 140, 90, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(183, 140, 90, 0.4);
  }
}

.counter-offer-title {
  flex: 1;
}

.counter-offer-title h3 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-offer-title h3 i {
  font-size: 1.1rem;
  color: #b45309;
}

.counter-offer-title p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Price Comparison Cards */
.price-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 500px) {
  .price-comparison {
    grid-template-columns: 1fr;
  }
}

.original-price-card,
.counter-price-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.original-price-card {
  background: #f8fafc;
}

.counter-price-card {
  background: #fef3e2;
  border: 2px solid var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
}

.price-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-card-header i {
  font-size: 1rem;
}

.original-price-card .price-card-header i {
  color: var(--text-soft);
}

.counter-price-card .price-card-header i {
  color: var(--accent);
}

.price-card-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.price-badge {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-soft);
}

.counter-price-card .price-badge {
  background: var(--accent);
  color: white;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
}

.original-price-card .price-amount {
  color: var(--text-soft);
  text-decoration: line-through;
  text-decoration-color: #b45309;
  text-decoration-thickness: 2px;
}

.price-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e3f2e9;
  color: #2f6e4a;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
}

.price-savings i {
  font-size: 0.65rem;
}

/* Payment Preview */
.payment-preview-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.payment-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.payment-preview-header i {
  color: var(--accent);
  font-size: 1rem;
}

.payment-preview-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.payment-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .payment-preview-grid {
    grid-template-columns: 1fr;
  }
}

.payment-preview-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-light);
}

.payment-preview-item .payment-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.payment-preview-item .payment-label i {
  color: var(--accent);
  font-size: 0.7rem;
}

.payment-preview-item .payment-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: "Courier New", monospace;
}

.payment-preview-item .payment-breakdown {
  font-size: 0.75rem;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}

.breakdown-row-small {
  display: flex;
  justify-content: space-between;
}

.breakdown-row-small .fee {
  color: #ef4444;
}

.breakdown-row-small .payout {
  color: #2f6e4a;
  font-weight: 600;
}

/* Counter Offer Actions */
.counter-offer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.counter-offer-actions .btn-primary,
.counter-offer-actions .btn-outline,
.counter-offer-actions .btn-danger {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.counter-offer-actions .btn-primary {
  background: linear-gradient(135deg, #2f6e4a, #3d8b5c);
  border: none;
  color: white;
  box-shadow: 0 8px 20px -5px rgba(47, 110, 74, 0.3);
}

.counter-offer-actions .btn-primary:hover {
  background: linear-gradient(135deg, #235336, #2f6e4a);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px rgba(47, 110, 74, 0.4);
}

.counter-offer-actions .btn-outline {
  background: white;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.counter-offer-actions .btn-outline:hover {
  background: #f2ebe3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(183, 140, 90, 0.2);
}

.counter-offer-actions .btn-danger {
  background: white;
  border: 2px solid #ef4444;
  color: #ef4444;
}

.counter-offer-actions .btn-danger:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(239, 68, 68, 0.3);
}

/* Input Section */
.counter-input-section {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px dashed var(--border-light);
  transition: all 0.3s ease;
}

.counter-input-section:hover {
  border-color: var(--accent);
  background: #fef3e2;
}

.counter-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.counter-input-label i {
  color: var(--accent);
  font-size: 1rem;
}

.counter-input-label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.counter-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.currency-symbol {
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.counter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  background: white;
  transition: all 0.2s ease;
}

.counter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.live-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.live-preview-row:last-child {
  border-bottom: none;
}

.live-preview-row .label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.live-preview-row .value {
  font-weight: 600;
  color: var(--accent);
  font-family: "Courier New", monospace;
}

.live-preview-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--border-light);
}

.live-preview-row.total .label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.live-preview-row.total .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* Warning Note */
.counter-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fee2e2;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.counter-warning i {
  color: #ef4444;
  font-size: 1.1rem;
}

.counter-warning span {
  font-size: 0.85rem;
  color: #991b1b;
  line-height: 1.4;
  flex: 1;
}

/* Info Note */
.counter-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

.counter-info i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
  .counter-offer-container {
    padding: 20px;
  }

  .counter-offer-badge {
    left: 20px;
    font-size: 0.7rem;
    padding: 4px 16px;
  }

  .counter-offer-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .counter-offer-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .counter-offer-title h3 {
    font-size: 1.1rem;
  }

  .price-amount {
    font-size: 1.5rem;
  }

  .payment-preview-item .payment-amount {
    font-size: 1.2rem;
  }

  .counter-input-wrapper {
    flex-direction: column;
  }

  .currency-symbol {
    width: 100%;
    text-align: center;
  }
}

/* Add to dashboard-customer.css */

/* ========================================================================
   SIMPLIFIED COUNTER OFFER CARD
   ======================================================================== */

.simple-counter-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: slideIn 0.3s ease;
}

.simple-counter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.simple-counter-header i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef3e2;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.simple-counter-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.simple-counter-header span {
  font-size: 0.7rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 30px;
}

/* Price Row */
.simple-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.price-original {
  display: flex;
  flex-direction: column;
}

.price-original .label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.price-original .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.price-original .value.original {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 400;
}

.price-new {
  text-align: right;
}

.price-new .label {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.price-new .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

/* Discount Slider */
.slider-container {
  margin-bottom: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-header label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

.slider-value {
  background: var(--accent);
  color: white;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
}

.discount-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: linear-gradient(to right, #fef3e2, var(--accent));
  border-radius: 3px;
  outline: none;
}

.discount-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.discount-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.3);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.6rem;
  color: var(--text-soft);
}

/* Quick Preview */
.quick-preview {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.8rem;
}

.preview-row .label {
  color: var(--text-soft);
}

.preview-row .value {
  font-weight: 600;
  color: var(--text-dark);
}

.preview-row .value.highlight {
  color: var(--accent);
}

.preview-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-weight: 600;
}

.preview-row.total .value {
  font-size: 1rem;
  color: var(--accent);
}

/* Action Buttons Row */
.simple-counter-actions {
  display: flex;
  gap: 8px;
}

.simple-counter-actions .btn-primary,
.simple-counter-actions .btn-outline {
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
  border-radius: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.simple-counter-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: white;
}

.simple-counter-actions .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-1px);
}

.simple-counter-actions .btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.simple-counter-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
}

.simple-counter-actions .btn-outline.danger {
  color: #ef4444;
  border-color: #ef4444;
}

.simple-counter-actions .btn-outline.danger:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Pending State */
.simple-pending-state {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pending-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pending-text {
  flex: 1;
}

.pending-text p {
  margin: 0 0 4px 0;
  font-weight: 600;
  color: #b45309;
  font-size: 0.9rem;
}

.pending-text span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .simple-counter-card {
    padding: 16px;
  }

  .simple-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-new {
    text-align: left;
    width: 100%;
  }

  .price-new .value {
    font-size: 1.2rem;
  }

  .simple-counter-actions {
    flex-direction: column;
  }
}

/* Add to dashboard-customer.css */

/* ========================================================================
   QUOTE CARD - INFORMATIONAL ONLY (NO BUTTONS)
   ======================================================================== */

.quote-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-left: 4px solid var(--accent);
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quote-header i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f2ebe3;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.quote-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.quote-header .status-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 30px;
  background: #f2ebe3;
  color: var(--accent);
  font-weight: 500;
  pointer-events: none;
}

/* Quote Amount Row */
.quote-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.quote-amount-label {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.quote-amount-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  font-family: "Courier New", monospace;
}

/* Quote Meta Grid */
.quote-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.quote-meta-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
}

.quote-meta-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quote-meta-label i {
  color: var(--accent);
  font-size: 0.6rem;
}

.quote-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.quote-meta-value.highlight {
  color: var(--accent);
}

/* Breakdown Section */
.quote-breakdown {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.breakdown-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-title i {
  color: var(--accent);
  font-size: 0.8rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.85rem;
}

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

.breakdown-item .label {
  color: var(--text-soft);
}

.breakdown-item .value {
  font-weight: 600;
  color: var(--text-dark);
}

/* Discount Section */
.discount-section {
  background: #fef3e2;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.discount-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discount-title i {
  color: #b45309;
}

.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
}

.discount-item .label {
  color: #b45309;
}

.discount-item .value {
  font-weight: 600;
  color: #b45309;
}

/* Payment Schedule */
.payment-schedule {
  margin-bottom: 16px;
}

.schedule-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-title i {
  color: var(--accent);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.schedule-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  border-left: 3px solid;
}

.schedule-card.first {
  border-left-color: var(--accent);
}

.schedule-card.second {
  border-left-color: #94a3b8;
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.schedule-card-header .number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

.schedule-card.second .schedule-card-header .number {
  background: #94a3b8;
}

.schedule-card-header .percent {
  font-size: 0.6rem;
  color: var(--text-soft);
  background: white;
  padding: 2px 6px;
  border-radius: 20px;
}

.schedule-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: "Courier New", monospace;
}

.schedule-card.second .schedule-amount {
  color: #64748b;
}

.schedule-status {
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 30px;
  background: white;
}

.schedule-status.paid {
  color: #2f6e4a;
  background: #e3f2e9;
}

.schedule-status.pending {
  color: #b45309;
  background: #fef3e2;
}

/* Deposit Info */
.deposit-info {
  background: #e3f2e9;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.deposit-info .label {
  color: #2f6e4a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deposit-info .label i {
  font-size: 0.9rem;
}

.deposit-info .value {
  font-weight: 600;
  color: #2f6e4a;
  background: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* Quote Footer Note */
.quote-footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  font-size: 0.75rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-footer-note i {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
  .quote-card {
    padding: 16px;
  }

  .quote-amount-value {
    font-size: 1.3rem;
  }

  .quote-meta-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================================================
   CUSTOMER QUOTE DETAILS - ENHANCED
   ======================================================================== */

.quote-card-enhanced {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-left i {
  color: var(--accent);
  font-size: 1.1rem;
}

.header-left h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

/* Amount Summary Card */
.amount-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amount-main {
  display: flex;
  flex-direction: column;
}

.amount-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.amount-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.discount-chip {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Original Amount Row */
.original-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 30px;
  flex-wrap: wrap;
}

.original-amount {
  text-decoration: line-through;
  color: #94a3b8;
}

.saved-amount {
  background: #e3f2e9;
  color: #2f6e4a;
  padding: 2px 8px;
  border-radius: 30px;
  font-weight: 500;
  margin-left: auto;
}

/* Quote Meta Grid */
.quote-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.meta-item.highlight .meta-value {
  color: var(--accent);
  font-weight: 700;
}

.meta-label {
  font-size: 0.6rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header i {
  color: var(--accent);
  font-size: 0.8rem;
}

.section-header.warning i {
  color: #b45309;
}

/* Breakdown Grid */
.breakdown-section {
  margin-bottom: 20px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.breakdown-grid-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.item-name {
  font-size: 0.65rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-amount {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Discount Section */
.discount-section {
  margin-bottom: 20px;
}

.discount-list {
  background: #fee2e2;
  border-radius: 12px;
  padding: 10px;
}

.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 4px 0;
  border-bottom: 1px dashed #fecaca;
}

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

.discount-amount {
  color: #b45309;
  font-weight: 600;
}

/* Deposit Notice */
.deposit-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e3f2e9;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: #2f6e4a;
  margin-bottom: 20px;
  width: fit-content;
}

.deposit-notice i {
  font-size: 0.7rem;
}

/* Payment Cards */
.payment-schedule {
  margin-bottom: 20px;
}

.payment-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-card {
  background: white;
  border-radius: 16px;
  padding: 15px;
  border: 1px solid var(--border-light);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.payment-card.first {
  border-top: 3px solid var(--accent);
}

.payment-card.second {
  border-top: 3px solid #94a3b8;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.payment-number {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

.payment-card.second .payment-number {
  background: #94a3b8;
}

.payment-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  flex: 1;
}

.payment-percent {
  font-size: 0.6rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 20px;
}

.payment-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.payment-card.second .payment-amount {
  color: #64748b;
}

.payment-details {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-soft);
  padding: 3px 0;
}

.detail-row.provider {
  border-top: 1px dashed var(--border-light);
  margin-top: 3px;
  padding-top: 5px;
  font-weight: 500;
  color: var(--text-dark);
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 30px;
  width: fit-content;
}

.payment-status.paid {
  background: #e3f2e9;
  color: #2f6e4a;
}

.payment-status.pending {
  background: #fef3e2;
  color: #b45309;
}

/* Payout Transparency */
.payout-transparency {
  background: #e3f2e9;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 16px;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2f6e4a;
  margin-bottom: 8px;
}

.payout-row i {
  margin-right: 5px;
}

.payout-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f6e4a;
}

.fee-breakdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.7rem;
  color: #2f6e4a;
  border-top: 1px dashed #b8d9c5;
}

.fee-breakdown-toggle i:last-child {
  margin-left: auto;
  transition: transform 0.2s;
}

.fee-breakdown-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin-top: 0;
}

.fee-breakdown-details.show {
  max-height: 150px;
  padding: 10px;
  margin-top: 10px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #2f6e4a;
  padding: 4px 0;
  border-bottom: 1px dashed #b8d9c5;
}

.fee-row:last-child {
  border-bottom: none;
  font-weight: 600;
}

/* Rejection Info */
.rejection-info {
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.rejection-info summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b45309;
  list-style: none;
}

.rejection-info summary i:first-child {
  color: #b45309;
}

.rejection-info summary i:last-child {
  margin-left: auto;
  color: var(--text-soft);
  transition: transform 0.2s;
}

.rejection-info[open] summary i:last-child {
  transform: rotate(180deg);
}

.rejection-content {
  padding: 0 12px 12px 12px;
}

.rejection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-light);
}

.rejection-row.fee {
  color: #b45309;
}

.rejection-row.split {
  color: var(--text-soft);
  padding-left: 8px;
}

.rejection-row.split.provider {
  color: #2f6e4a;
}

.rejection-row.refund {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 2px solid var(--border-light);
  font-weight: 600;
  color: var(--accent);
}

/* Footer Note */
.quote-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.quote-footer-note i {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .quote-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-cards {
    grid-template-columns: 1fr;
  }

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

  .amount-value {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .quote-card-enhanced {
    padding: 15px;
  }

  .amount-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .original-amount-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .saved-amount {
    margin-left: 0;
  }
}
/* Add to dashboard-customer.css */

/* ========================================================================
   REJECTION FEE CARD - COMPACT & EYE-FRIENDLY
   ======================================================================== */

.rejection-fee-card {
  background: white;
  border-radius: 20px;
  padding: 18px;
  margin-top: 16px;
  border: 1px solid #fee2e2;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
  animation: slideIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rejection-fee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.rejection-fee-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rejection-fee-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.rejection-fee-title {
  flex: 1;
}

.rejection-fee-title h4 {
  margin: 0 0 2px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #991b1b;
}

.rejection-fee-title p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.rejection-fee-badge {
  background: #fee2e2;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Fee Breakdown - Compact */
.fee-breakdown-compact {
  background: #fef3e2;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(239, 68, 68, 0.2);
  font-size: 0.8rem;
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-row .label {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fee-row .label i {
  color: #ef4444;
  font-size: 0.7rem;
}

.fee-row .value {
  font-weight: 600;
  color: var(--text-dark);
}

.fee-row.fee .value {
  color: #ef4444;
}

.fee-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 2px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
}

.fee-row.total .value {
  color: #ef4444;
  font-size: 1rem;
}

.fee-row.refund .value {
  color: #10b981;
  font-size: 1rem;
}

/* Refund Highlight */
.refund-highlight {
  background: #e3f2e9;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.refund-highlight .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2f6e4a;
  font-size: 0.8rem;
  font-weight: 500;
}

.refund-highlight .label i {
  font-size: 0.9rem;
}

.refund-highlight .amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2f6e4a;
  font-family: "Courier New", monospace;
}

/* Action Buttons */
.rejection-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.rejection-actions .btn-primary,
.rejection-actions .btn-outline {
  flex: 1;
  padding: 12px;
  font-size: 0.8rem;
  border-radius: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.rejection-actions .btn-primary {
  background: #ef4444;
  border: none;
  color: white;
}

.rejection-actions .btn-primary:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.rejection-actions .btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.rejection-actions .btn-outline:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fee2e2;
}

/* Info Note */
.rejection-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 40px;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.rejection-info-note i {
  color: #ef4444;
  font-size: 0.8rem;
}

.rejection-info-note span {
  flex: 1;
}

/* Timeline Indicator */
.rejection-timeline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 40px;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 2s infinite;
}

.timeline-text {
  font-size: 0.7rem;
  color: var(--text-soft);
  flex: 1;
}

.timeline-text strong {
  color: #ef4444;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .rejection-fee-card {
    padding: 16px;
  }

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

  .refund-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .refund-highlight .amount {
    align-self: flex-end;
  }

  .rejection-info-note {
    flex-wrap: wrap;
  }
}

.all-orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card-order {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  border-color: var(--accent);
}

.stat-card-order.service {
  border-left: 3px solid var(--accent);
}

.stat-card-order.product {
  border-left: 3px solid #3b82f6;
}

.stat-icon-wrapper-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-content-compact {
  flex: 1;
  min-width: 0;
}

.stat-label-compact {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value-compact {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
}

.stat-trend-small {
  font-size: 0.6rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Section Headers */
.stats-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.stats-section-header i {
  color: var(--accent);
  font-size: 0.9rem;
}

.stats-section-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.stats-section-header .count-badge {
  background: var(--bg);
  color: var(--text-soft);
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .all-orders-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card-order {
    padding: 12px;
  }

  .stat-icon-wrapper-small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stat-value-compact {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .all-orders-stats-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================================================
   BOOKINGS DASHBOARD PREMIUM STYLES
   ======================================================================== */

.bookings-dashboard-premium {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .bookings-dashboard-premium {
    padding: 30px;
  }
}

/* ========================================================================
   DASHBOARD HEADER PREMIUM
   ======================================================================== */

.dashboard-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.dashboard-header-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.dashboard-header-premium .page-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 5px 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header-premium .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.dashboard-header-premium .header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .dashboard-header-premium {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .dashboard-header-premium .page-title {
    font-size: 1.5rem;
  }

  .dashboard-header-premium .header-actions {
    width: 100%;
  }

  .dashboard-header-premium .header-actions .btn-outline,
  .dashboard-header-premium .header-actions .btn-primary {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dashboard-header-premium .header-actions {
    flex-direction: column;
  }
}

/* ========================================================================
   STATS GRID PREMIUM
   ======================================================================== */

.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card-premium {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.stat-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -12px rgba(183, 140, 90, 0.2);
}

.stat-card-premium:hover::before {
  width: 6px;
}

/* Status-specific colors */
.stat-card-premium.pending::before {
  background: #b45309;
}

.stat-card-premium.pending .stat-icon {
  background: #fef3e2;
  color: #b45309;
}

.stat-card-premium.confirmed::before,
.stat-card-premium.awaiting_deposit::before {
  background: #2f6e4a;
}

.stat-card-premium.confirmed .stat-icon,
.stat-card-premium.awaiting_deposit .stat-icon {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-card-premium.modified::before {
  background: #b78c5a;
}

.stat-card-premium.modified .stat-icon {
  background: #fef3e2;
  color: #b78c5a;
}

.stat-card-premium.completed::before {
  background: #1e4a6b;
}

.stat-card-premium.completed .stat-icon {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-card-premium.cancelled::before,
.stat-card-premium.cancelled_with_fee::before {
  background: #991b1b;
}

.stat-card-premium.cancelled .stat-icon,
.stat-card-premium.cancelled_with_fee .stat-icon {
  background: #fee2e2;
  color: #991b1b;
}

.stat-card-premium.awaiting_visit::before,
.stat-card-premium.awaiting_quote::before {
  background: #b78c5a;
}

.stat-card-premium.awaiting_visit .stat-icon,
.stat-card-premium.awaiting_quote .stat-icon {
  background: #fef3e2;
  color: #b78c5a;
}

.stat-card-premium .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-card-premium:hover .stat-icon {
  transform: scale(1.05);
}

.stat-card-premium .stat-content {
  flex: 1;
  min-width: 0;
}

.stat-card-premium .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
}

.stat-card-premium .stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.stat-card-premium .stat-sub {
  font-size: 0.7rem;
  color: var(--text-soft);
  display: block;
}

/* Active state for stat cards */
.stat-card-premium.active {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
  background: linear-gradient(135deg, #f2ebe3 0%, #ffffff 100%);
}

.stat-card-premium.active::before {
  width: 6px;
}

@media (max-width: 768px) {
  .stats-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-card-premium {
    padding: 15px;
  }

  .stat-card-premium .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .stat-card-premium .stat-value {
    font-size: 1.3rem;
  }
}

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

/* ========================================================================
   FILTER TABS PREMIUM
   ======================================================================== */

.filter-tabs-premium {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: white;
  padding: 8px;
  border-radius: 60px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.filter-tab-premium {
  padding: 10px 20px;
  border-radius: 40px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-tab-premium i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.filter-tab-premium:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.filter-tab-premium.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.2);
}

.filter-tab-premium.active i {
  opacity: 1;
}

/* Status-specific active tabs (optional) */
.filter-tab-premium.active[data-status="pending"] {
  background: #b45309;
}

.filter-tab-premium.active[data-status="confirmed"],
.filter-tab-premium.active[data-status="awaiting_deposit"] {
  background: #2f6e4a;
}

.filter-tab-premium.active[data-status="modified"],
.filter-tab-premium.active[data-status="awaiting_visit"],
.filter-tab-premium.active[data-status="awaiting_quote"] {
  background: #b78c5a;
}

.filter-tab-premium.active[data-status="completed"] {
  background: #1e4a6b;
}

.filter-tab-premium.active[data-status="cancelled"],
.filter-tab-premium.active[data-status="cancelled_with_fee"] {
  background: #991b1b;
}

@media (max-width: 768px) {
  .filter-tabs-premium {
    border-radius: 30px;
    padding: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab-premium {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .filter-tab-premium {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ========================================================================
   SEARCH FILTER BAR
   ======================================================================== */

.search-filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box-premium {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box-premium i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.search-box-premium input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 2px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-dark);
}

.search-box-premium input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(183, 140, 90, 0.1);
}

.search-box-premium input::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

.search-filter-bar .btn-outline.btn-sm {
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.85rem;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.search-filter-bar .btn-outline.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183, 140, 90, 0.1);
}

.search-filter-bar .btn-outline.btn-sm i {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-premium {
    width: 100%;
  }

  .search-filter-bar .btn-outline.btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================================
   BOOKINGS GRID PREMIUM
   ======================================================================== */

.bookings-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .bookings-grid-premium {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ========================================================================
   BOOKING CARD BASE STYLES
   ======================================================================== */

.booking-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardAppear 0.4s ease;
}

.booking-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(183, 140, 90, 0.25);
}

.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
  z-index: 2;
}

.booking-card:hover::before {
  transform: scaleX(1);
}

.booking-card-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.booking-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.booking-badge {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--accent);
  color: white;
}

.booking-date {
  color: var(--text-soft);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.booking-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Provider Info */
.provider-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(183, 140, 90, 0.2);
}

.provider-details {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-title {
  color: var(--accent);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Booking Time Info */
.booking-time-info {
  display: flex;
  gap: 15px;
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
  margin: 5px 0;
}

.time-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.time-detail i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 18px;
}

.time-detail div {
  display: flex;
  flex-direction: column;
}

.time-label {
  font-size: 0.6rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.time-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.85rem;
}

/* Booking Note */
.booking-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #fef3e2;
  border-radius: 12px;
  margin-top: 5px;
  border-left: 3px solid #b45309;
}

.booking-note i {
  color: #b45309;
  font-size: 0.85rem;
  margin-top: 2px;
}

.booking-note p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Modified Indicator */
.modified-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fef3e2;
  border-radius: 30px;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}

.modified-indicator i {
  font-size: 0.8rem;
}

/* Price Info */
.price-info {
  background: #fef3e2;
  border-radius: 16px;
  padding: 15px;
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.price-info::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 2rem;
  opacity: 0.1;
}

.price-info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-info span:first-child {
  font-weight: 600;
  color: #b45309;
}

.price-info span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Booking Card Footer */
.booking-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.booking-reference {
  font-family: monospace;
  color: var(--text-soft);
  font-size: 0.7rem;
  background: white;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.view-details-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 30px;
  transition: all 0.2s;
}

.view-details-btn:hover {
  background: #f2ebe3;
  gap: 8px;
}

.view-details-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.view-details-btn:hover i {
  transform: translateX(4px);
}

/* ========================================================================
   BOOKING CARD STATUS VARIANTS
   ======================================================================== */

/* Awaiting Deposit */
.booking-card.awaiting_deposit {
  border-left: 4px solid #b45309;
}

.booking-card.awaiting_deposit .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.awaiting_deposit .status-badge {
  background: #fef3e2;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-card.awaiting_deposit .status-badge i {
  color: #b45309;
}

/* Awaiting Visit */
.booking-card.awaiting_visit {
  border-left: 4px solid #2f6e4a;
}

.booking-card.awaiting_visit .booking-card-header {
  background: linear-gradient(135deg, #e3f2e9 0%, #ffffff 100%);
}

.booking-card.awaiting_visit .status-badge {
  background: #e3f2e9;
  color: #2f6e4a;
}

.booking-card.awaiting_visit .status-badge i {
  color: #2f6e4a;
}

/* Awaiting Quote */
.booking-card.awaiting_quote {
  border-left: 4px solid #b78c5a;
}

.booking-card.awaiting_quote .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.awaiting_quote .status-badge {
  background: #fef3e2;
  color: #b78c5a;
}

.booking-card.awaiting_quote .status-badge i {
  color: #b78c5a;
}

/* Completed */
.booking-card.completed {
  border-left: 4px solid #1e4a6b;
  opacity: 0.9;
}

.booking-card.completed .booking-card-header {
  background: linear-gradient(135deg, #e1f0fa 0%, #ffffff 100%);
}

.booking-card.completed .status-badge {
  background: #e1f0fa;
  color: #1e4a6b;
}

.booking-card.completed .status-badge i {
  color: #1e4a6b;
}

.booking-card.completed .provider-avatar {
  background: linear-gradient(135deg, #1e4a6b, #2f6e4a);
}

/* Cancelled with Fee */
.booking-card.cancelled_with_fee {
  border-left: 4px solid #991b1b;
  opacity: 0.8;
}

.booking-card.cancelled_with_fee .booking-card-header {
  background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
}

.booking-card.cancelled_with_fee .status-badge {
  background: #fee2e2;
  color: #991b1b;
}

.booking-card.cancelled_with_fee .status-badge i {
  color: #991b1b;
}

.booking-card.cancelled_with_fee::after {
  content: "⚠️ Fee Deducted";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #991b1b;
  color: white;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 30px;
  z-index: 3;
}

/* Modified */
.booking-card.modified {
  border-left: 4px solid #b78c5a;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
  animation: pulse 2s infinite;
}

.booking-card.modified .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.modified .status-badge {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

.booking-card.modified .status-badge i {
  color: #b45309;
}

.booking-card.modified .modified-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.6rem;
  margin-left: 5px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.2);
  }
  50% {
    box-shadow: 0 12px 30px -8px rgba(183, 140, 90, 0.4);
  }
}

/* ========================================================================
   STATUS BADGE STYLES
   ======================================================================== */

.status-badge {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.status-badge.awaiting_deposit {
  background: #fef3e2;
  color: #b45309;
}

.status-badge.awaiting_visit {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-badge.awaiting_quote {
  background: #fef3e2;
  color: #b78c5a;
}

.status-badge.completed {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-badge.cancelled,
.status-badge.cancelled_with_fee {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.modified {
  background: #fef3e2;
  color: #b45309;
  border-left: 3px solid #f59e0b;
}

.status-badge.pending {
  background: #fef3e2;
  color: #b45309;
}

.status-badge.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* ========================================================================
   ACTION BUTTONS IN BOOKING CARD
   ======================================================================== */

.action-buttons-booking {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-booking-primary {
  flex: 1;
  padding: 12px 16px;
  background: #2f6e4a;
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
}

.btn-booking-primary:hover {
  background: #235336;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(47, 110, 74, 0.3);
}

.btn-booking-primary i {
  font-size: 0.75rem;
}

.btn-booking-outline {
  flex: 1;
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
}

.btn-booking-outline:hover {
  background: #f2ebe3;
  border-color: #9a7a4e;
  color: #9a7a4e;
  transform: translateY(-2px);
}

.btn-booking-danger {
  flex: 1;
  padding: 12px 16px;
  background: white;
  border: 2px solid #ef4444;
  color: #ef4444;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
}

.btn-booking-danger:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(239, 68, 68, 0.3);
}

@media (max-width: 480px) {
  .action-buttons-booking {
    flex-direction: column;
  }

  .btn-booking-primary,
  .btn-booking-outline,
  .btn-booking-danger {
    width: 100%;
  }
}

/* ========================================================================
   EMPTY STATE
   ======================================================================== */

.empty-bookings {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 30px;
  border: 2px dashed var(--border-light);
  grid-column: 1 / -1;
}

.empty-bookings i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-bookings h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-bookings p {
  color: var(--text-soft);
  margin-bottom: 25px;
}

.empty-bookings .btn-primary {
  display: inline-flex;
  padding: 12px 30px;
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================================================
   ADDITIONAL STAT CARD VARIATIONS
   ======================================================================== */

/* All Bookings */
.stat-card-premium.all::before {
  background: #475569;
}

.stat-card-premium.all .stat-icon {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}

/* Awaiting Deposit (already exists, ensure consistency) */
.stat-card-premium.awaiting_deposit::before {
  background: #b45309;
}

.stat-card-premium.awaiting_deposit .stat-icon {
  background: #fef3e2;
  color: #b45309;
}

/* Awaiting Visit */
.stat-card-premium.awaiting_visit::before {
  background: #2f6e4a;
}

.stat-card-premium.awaiting_visit .stat-icon {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* Awaiting Quote */
.stat-card-premium.awaiting_quote::before {
  background: #b78c5a;
}

.stat-card-premium.awaiting_quote .stat-icon {
  background: #fef3e2;
  color: #b78c5a;
}

/* Quote Received */
.stat-card-premium.quoted::before {
  background: #b78c5a;
}

.stat-card-premium.quoted .stat-icon {
  background: #f2ebe3;
  color: #b78c5a;
}

.stat-card-premium.quoted .stat-icon i {
  transform: rotate(-15deg);
}

/* Approved */
.stat-card-premium.approved::before {
  background: #2f6e4a;
}

.stat-card-premium.approved .stat-icon {
  background: #e3f2e9;
  color: #2f6e4a;
}

.stat-card-premium.approved .stat-icon i {
  animation: subtlePulse 2s infinite;
}

/* In Progress */
.stat-card-premium.in_progress::before {
  background: #1e4a6b;
}

.stat-card-premium.in_progress .stat-icon {
  background: #e1f0fa;
  color: #1e4a6b;
}

.stat-card-premium.in_progress .stat-icon i {
  animation: spin 3s linear infinite;
}

/* Final Payment */
.stat-card-premium.final_payment::before {
  background: #b45309;
}

.stat-card-premium.final_payment .stat-icon {
  background: #fef3e2;
  color: #b45309;
}

/* Completed */
.stat-card-premium.completed::before {
  background: #1e4a6b;
}

.stat-card-premium.completed .stat-icon {
  background: #e1f0fa;
  color: #1e4a6b;
}

/* Cancelled */
.stat-card-premium.cancelled::before {
  background: #991b1b;
}

.stat-card-premium.cancelled .stat-icon {
  background: #fee2e2;
  color: #991b1b;
}

/* Hover effects for all cards */
.stat-card-premium:hover .stat-icon i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.stat-card-premium.quoted:hover .stat-icon i {
  transform: scale(1.1) rotate(-10deg);
}

.stat-card-premium.in_progress:hover .stat-icon i {
  animation: spin 2s linear infinite;
}

/* Animations */
@keyframes subtlePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ========================================================================
   BOOKINGS DASHBOARD PREMIUM - COMPACT ROW LAYOUT
   ======================================================================== */

.bookings-dashboard-premium {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 0.4s ease;
}

@media (min-width: 768px) {
  .bookings-dashboard-premium {
    padding: 30px;
  }
}

/* ========================================================================
   DASHBOARD HEADER PREMIUM - COMPACT
   ======================================================================== */

.dashboard-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard-header-premium .page-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-header-premium .page-subtitle {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 4px 0 0 0;
}

.dashboard-header-premium .header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-header-premium .header-actions .btn-outline,
.dashboard-header-premium .header-actions .btn-primary {
  padding: 8px 16px;
  font-size: 0.8rem;
  min-height: 36px;
}

@media (max-width: 768px) {
  .dashboard-header-premium {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .dashboard-header-premium .page-title {
    font-size: 1.3rem;
  }

  .dashboard-header-premium .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .dashboard-header-premium .header-actions {
    flex-direction: column;
  }

  .dashboard-header-premium .header-actions .btn-outline,
  .dashboard-header-premium .header-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================================
   STATS GRID PREMIUM - COMPACT ROW LAYOUT
   ======================================================================== */

.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 480px) {
  .stats-grid-premium {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (min-width: 768px) {
  .stats-grid-premium {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
  }
}

/* Compact Stat Cards */
.stat-card-premium {
  background: white;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.stat-card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  transition: width 0.2s ease;
}

.stat-card-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(183, 140, 90, 0.15);
}

.stat-card-premium:hover::before {
  width: 4px;
}

.stat-card-premium .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.stat-card-premium:hover .stat-icon {
  transform: scale(1.05);
}

.stat-card-premium .stat-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.stat-card-premium .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card-premium .stat-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-card-premium .stat-sub {
  display: none;
}

/* Status-specific colors */
.stat-card-premium.pending::before,
.stat-card-premium.pending .stat-icon {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.stat-card-premium.confirmed::before,
.stat-card-premium.awaiting_deposit::before,
.stat-card-premium.confirmed .stat-icon,
.stat-card-premium.awaiting_deposit .stat-icon {
  background: rgba(47, 110, 74, 0.1);
  color: #2f6e4a;
}

.stat-card-premium.modified::before,
.stat-card-premium.awaiting_quote::before,
.stat-card-premium.awaiting_visit::before,
.stat-card-premium.modified .stat-icon,
.stat-card-premium.awaiting_quote .stat-icon,
.stat-card-premium.awaiting_visit .stat-icon {
  background: rgba(183, 140, 90, 0.1);
  color: #b78c5a;
}

.stat-card-premium.completed::before,
.stat-card-premium.completed .stat-icon {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-premium.cancelled::before,
.stat-card-premium.cancelled_with_fee::before,
.stat-card-premium.cancelled .stat-icon,
.stat-card-premium.cancelled_with_fee .stat-icon {
  background: rgba(153, 27, 27, 0.1);
  color: #991b1b;
}

@media (max-width: 480px) {
  .stats-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card-premium {
    padding: 10px 8px;
  }

  .stat-card-premium .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stat-card-premium .stat-value {
    font-size: 1rem;
  }
}

/* ========================================================================
   FILTER TABS PREMIUM - COMPACT ROW LAYOUT
   ======================================================================== */

.filter-tabs-premium {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  background: white;
  padding: 6px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-tab-premium {
  padding: 6px 12px;
  border-radius: 30px;
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.filter-tab-premium i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.filter-tab-premium:hover {
  color: var(--text-dark);
  background: var(--bg);
}

.filter-tab-premium.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.15);
}

/* Status-specific active tabs */
.filter-tab-premium.active[data-status="pending"] {
  background: #b45309;
}

.filter-tab-premium.active[data-status="confirmed"],
.filter-tab-premium.active[data-status="awaiting_deposit"] {
  background: #2f6e4a;
}

.filter-tab-premium.active[data-status="modified"],
.filter-tab-premium.active[data-status="awaiting_visit"],
.filter-tab-premium.active[data-status="awaiting_quote"] {
  background: #b78c5a;
}

.filter-tab-premium.active[data-status="completed"] {
  background: #1e4a6b;
}

.filter-tab-premium.active[data-status="cancelled"],
.filter-tab-premium.active[data-status="cancelled_with_fee"] {
  background: #991b1b;
}

@media (max-width: 768px) {
  .filter-tabs-premium {
    border-radius: 30px;
    padding: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .filter-tab-premium {
    padding: 5px 10px;
    font-size: 0.7rem;
    min-height: 30px;
    flex: 0 0 auto;
  }

  .filter-tab-premium i {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .filter-tab-premium {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
}

/* ========================================================================
   SEARCH FILTER BAR - COMPACT
   ======================================================================== */

.search-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box-premium {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box-premium i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1;
}

.search-box-premium input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: white;
  color: var(--text-dark);
  min-height: 38px;
}

.search-box-premium input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.search-filter-bar .btn-outline.btn-sm {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  min-height: 38px;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-dark);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.search-filter-bar .btn-outline.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f2ebe3;
}

@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-box-premium {
    width: 100%;
    min-width: 100%;
  }

  .search-box-premium input {
    padding: 10px 10px 10px 38px;
  }
}

/* ========================================================================
   BOOKINGS GRID PREMIUM - ROW LAYOUT FOR SMALL SCREENS
   ======================================================================== */

.bookings-grid-premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

@media (min-width: 480px) {
  .bookings-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (min-width: 768px) {
  .bookings-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .bookings-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

/* ========================================================================
   BOOKING CARD - COMPACT ROW DESIGN
   ======================================================================== */

.booking-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 15px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: cardAppear 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -10px rgba(183, 140, 90, 0.2);
  border-color: var(--accent-light);
}

.booking-card:active {
  transform: translateY(-1px);
}

/* Card Header - More Compact */
.booking-card-header {
  padding: 12px 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.booking-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.booking-badge {
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--accent);
  color: white;
  white-space: nowrap;
}

.booking-date {
  color: var(--text-soft);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 3px 10px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

/* Card Body - More Compact */
.booking-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Provider Info - More Compact */
.provider-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 8px -3px rgba(183, 140, 90, 0.2);
}

.provider-details {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-title {
  color: var(--accent);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Booking Time Info - Compact */
.booking-time-info {
  display: flex;
  gap: 12px;
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 2px 0;
}

.time-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.time-detail i {
  color: var(--accent);
  font-size: 0.75rem;
  width: 16px;
}

.time-label {
  font-size: 0.55rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.time-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.75rem;
}

/* Location and Zones Preview - Compact */
.location-preview,
.zones-preview {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #2e2a28;
}

.location-preview i,
.zones-preview i {
  color: var(--accent);
  width: 18px;
  font-size: 0.7rem;
}

/* Price Info - Compact */
.price-info {
  background: #fef3e2;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.price-info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.price-info span:first-child {
  font-weight: 600;
  color: #b45309;
  font-size: 0.75rem;
  white-space: nowrap;
}

.price-info span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Booking Note - Compact */
.booking-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #fef3e2;
  border-radius: 8px;
  border-left: 3px solid #b45309;
  font-size: 0.75rem;
}

.booking-note i {
  color: #b45309;
  font-size: 0.7rem;
  margin-top: 2px;
}

.booking-note p {
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text-dark);
}

/* Modified Indicator - Compact */
.modified-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fef3e2;
  border-radius: 30px;
  color: #b45309;
  font-size: 0.7rem;
  font-weight: 500;
  width: fit-content;
}

.modified-indicator i {
  font-size: 0.7rem;
}

/* Card Footer - View Details Link */
.booking-card-footer {
  padding: 12px 15px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #f8fafc;
}

.booking-reference {
  display: none; /* Hide reference on small cards */
}

.view-details-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 30px;
  transition: all 0.2s;
  text-decoration: none;
  background: white;
  border: 1px solid var(--border-light);
}

.view-details-link:hover {
  background: var(--accent);
  color: white;
  gap: 8px;
}

.view-details-link i {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.view-details-link:hover i {
  transform: translateX(4px);
}

/* ========================================================================
   BOOKING CARD STATUS VARIANTS - COMPACT
   ======================================================================== */

/* Awaiting Deposit */
.booking-card.awaiting_deposit {
  border-left: 3px solid #b45309;
}

.booking-card.awaiting_deposit .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.awaiting_deposit .status-badge {
  background: #fef3e2;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Awaiting Visit */
.booking-card.awaiting_visit {
  border-left: 3px solid #2f6e4a;
}

.booking-card.awaiting_visit .booking-card-header {
  background: linear-gradient(135deg, #e3f2e9 0%, #ffffff 100%);
}

.booking-card.awaiting_visit .status-badge {
  background: #e3f2e9;
  color: #2f6e4a;
}

/* Awaiting Quote */
.booking-card.awaiting_quote {
  border-left: 3px solid #b78c5a;
}

.booking-card.awaiting_quote .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.awaiting_quote .status-badge {
  background: #fef3e2;
  color: #b78c5a;
}

/* Completed */
.booking-card.completed {
  border-left: 3px solid #1e4a6b;
  opacity: 0.9;
}

.booking-card.completed .booking-card-header {
  background: linear-gradient(135deg, #e1f0fa 0%, #ffffff 100%);
}

.booking-card.completed .status-badge {
  background: #e1f0fa;
  color: #1e4a6b;
}

.booking-card.completed .provider-avatar {
  background: linear-gradient(135deg, #1e4a6b, #2f6e4a);
}

/* Cancelled with Fee */
.booking-card.cancelled_with_fee {
  border-left: 3px solid #991b1b;
  opacity: 0.8;
}

.booking-card.cancelled_with_fee .booking-card-header {
  background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
}

.booking-card.cancelled_with_fee .status-badge {
  background: #fee2e2;
  color: #991b1b;
}

.booking-card.cancelled_with_fee::after {
  content: "⚠️ Fee";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #991b1b;
  color: white;
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 30px;
  z-index: 3;
}

/* Modified */
.booking-card.modified {
  border-left: 3px solid #b78c5a;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 15px -8px rgba(183, 140, 90, 0.2);
  animation: subtlePulse 2s infinite;
}

.booking-card.modified .booking-card-header {
  background: linear-gradient(135deg, #fef3e2 0%, #ffffff 100%);
}

.booking-card.modified .status-badge {
  background: #fef3e2;
  color: #b45309;
}

.booking-card.modified .modified-badge {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 30px;
  font-size: 0.55rem;
  margin-left: 4px;
}

@keyframes subtlePulse {
  0%,
  100% {
    box-shadow: 0 4px 12px -6px rgba(183, 140, 90, 0.2);
  }
  50% {
    box-shadow: 0 8px 20px -8px rgba(183, 140, 90, 0.3);
  }
}

/* Status Badge Base */
.status-badge {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

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

/* ========================================================================
   EXTRA SMALL SCREENS - ULTRA COMPACT
   ======================================================================== */

@media (max-width: 380px) {
  .bookings-grid-premium {
    gap: 10px;
  }

  .booking-card {
    border-radius: 14px;
  }

  .booking-card-header {
    padding: 8px 10px;
  }

  .booking-badge {
    padding: 2px 6px;
    font-size: 0.55rem;
  }

  .booking-date {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .booking-card-body {
    padding: 10px;
    gap: 8px;
  }

  .provider-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .provider-name {
    font-size: 0.8rem;
  }

  .service-title {
    font-size: 0.65rem;
  }

  .booking-time-info {
    padding: 6px 8px;
    gap: 8px;
  }

  .time-detail i {
    font-size: 0.65rem;
  }

  .time-label {
    font-size: 0.5rem;
  }

  .time-value {
    font-size: 0.65rem;
  }

  .location-preview,
  .zones-preview {
    padding: 6px 8px;
    font-size: 0.65rem;
  }

  .price-info span:last-child {
    font-size: 0.9rem;
  }

  .booking-note {
    padding: 6px 8px;
    font-size: 0.65rem;
  }

  .view-details-link {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .booking-card-footer {
    padding: 8px 10px;
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================================================
   MESSAGES FULL WIDTH - CONTAINED HEIGHT
   ======================================================================== */

.messages-fullwidth {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px); /* Fixed height based on viewport minus header */
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.messages-fullwidth-container {
  display: flex;
  flex: 1;
  min-height: 0; /* CRITICAL: Allows flex children to shrink below content height */
  height: 100%;
  background: white;
  overflow: hidden;
  width: 100%;
}

/* Conversations Sidebar - Fixed width */
.messages-fullwidth-container .conversations-sidebar {
  width: 350px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

/* Message Thread - Takes remaining width and contains messages */
.messages-fullwidth-container .message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

/* Thread Header - Fixed at top */
.thread-header {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 2);
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  z-index: 5;
  flex-shrink: 0; /* Prevents header from shrinking */
}

/* Messages List - Scrollable container */
.messages-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: calc(var(--spacer) * 3);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 0; /* CRITICAL: Allows flex item to shrink */
  max-height: 100%;
  scroll-behavior: smooth;
}

/* Ensure messages list doesn't push footer */
.messages-list:last-child {
  margin-bottom: 0;
}

/* Typing Indicator - Fixed position relative to input */
.typing-indicator {
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: calc(var(--spacer) * 1.5);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 140, 90, 0.05),
    transparent
  );
  flex-shrink: 0; /* Prevents typing indicator from shrinking */
}

/* Message Input Container - Fixed at bottom */
.message-input-container {
  padding: calc(var(--spacer) * 2) calc(var(--spacer) * 3);
  border-top: 1px solid var(--border-light);
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
  flex-shrink: 0; /* Prevents input from shrinking */
}

/* Input wrapper */
.input-wrapper {
  display: flex;
  gap: calc(var(--spacer) * 1.5);
  align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px 4px 4px calc(var(--spacer) * 2);
  transition: all 0.2s;
}

.input-wrapper textarea {
  flex: 1;
  padding: calc(var(--spacer) * 1.5) 0;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  resize: none;
  max-height: 100px;
  line-height: 1.5;
  outline: none;
  font-family: var(--font-sans);
  overflow-y: auto; /* Allows textarea to scroll when content is long */
}

/* Attachment Preview Area */
.attachment-preview-area {
  margin-top: calc(var(--spacer) * 1.5);
  flex-shrink: 0;
}

/* Date Divider - Sticky within scrollable area */
.date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: calc(var(--spacer) * 2) 0;
  position: relative;
  flex-shrink: 0;
}

.date-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.date-divider span {
  background: white;
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-light);
}

/* Message Items */
.message-item {
  display: flex;
  margin-bottom: 4px;
  animation: fadeIn 0.3s ease;
  flex-shrink: 0; /* Prevents messages from shrinking */
  max-width: 100%;
}

.message-bubble {
  max-width: 60%;
  padding: calc(var(--spacer) * 1.5) calc(var(--spacer) * 2);
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

/* Responsive heights for different screen sizes */
@media (max-width: 1024px) {
  .messages-fullwidth {
    height: calc(100vh - 160px);
  }
}

@media (max-width: 768px) {
  .messages-fullwidth {
    height: calc(100vh - 140px);
  }

  .messages-fullwidth-container {
    flex-direction: column;
  }

  .messages-fullwidth-container .conversations-sidebar {
    width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .messages-fullwidth-container .message-thread {
    height: 100%;
    max-height: 100%;
  }

  .thread-header {
    padding: calc(var(--spacer) * 1.5);
  }

  .messages-list {
    padding: calc(var(--spacer) * 1.5);
  }

  .message-input-container {
    padding: calc(var(--spacer) * 1.5);
  }

  .message-bubble {
    max-width: 85%;
  }
}

@media (max-width: 480px) {
  .messages-fullwidth {
    height: calc(100vh - 120px);
  }

  .input-actions .btn-icon {
    width: 38px;
    height: 38px;
  }
}

/* For very small screens */
@media (max-width: 360px) {
  .messages-fullwidth {
    height: calc(100vh - 100px);
  }
}

/* Custom Scrollbar */
.messages-list::-webkit-scrollbar {
  width: 4px;
}

.messages-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Firefox scrollbar support */
.messages-list {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* Thread Placeholder - Centered in available space */
.thread-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacer) * 4);
  height: 100%;
  min-height: 0;
}

.placeholder-content {
  text-align: center;
  max-width: 400px;
}

.placeholder-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto calc(var(--spacer) * 3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.placeholder-icon i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
}

/* No Messages State */
.no-messages {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
  font-style: italic;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  margin: calc(var(--spacer) * 2) 0;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* No Conversations State */
.no-conversations {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
  background: white;
  border-radius: 16px;
  margin: calc(var(--spacer) * 1.5);
  flex-shrink: 0;
}

.no-conversations i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 15px;
}

.no-conversations h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.no-conversations p {
  margin-bottom: 20px;
}

/* Loading State */
.conversations-list .loading-state {
  text-align: center;
  padding: calc(var(--spacer) * 4);
  color: var(--text-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Add this to frontend/public/css/dashboard-customer.css */

/* =======================================================================
   SAVED CREATORS SECTION - Matching Dashboard Theme
   ======================================================================= */

.saved-creators-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.saved-creators-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.saved-creators-header .page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.saved-creators-header .page-subtitle {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.saved-creators-header .btn-primary {
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.saved-creators-header .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 140, 90, 0.2);
}

.saved-creators-header .btn-primary i {
  font-size: 0.9rem;
}

/* Filters Bar */
.saved-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: white;
  padding: 16px 20px;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  align-items: center;
}

.saved-filters .search-wrapper {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.saved-filters .search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
}

.saved-filters .search-wrapper input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: var(--bg);
}

.saved-filters .search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
  background: white;
}

.saved-filters .filter-select-enhanced {
  min-width: 160px;
  padding: 12px 20px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  background: white;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b78c5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.saved-filters .filter-select-enhanced:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

/* Saved Creators Grid */
.saved-creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Saved Creator Card */
.saved-creator-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.saved-creator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(183, 140, 90, 0.1);
  border-color: var(--accent-light);
}

.saved-creator-cover {
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  position: relative;
  overflow: hidden;
}

.saved-creator-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.saved-creator-card:hover .saved-creator-cover::after {
  opacity: 1;
}

/* Unsave Button */
.unsave-creator-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #ef4444;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.unsave-creator-btn i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.unsave-creator-btn:hover {
  transform: scale(1.1);
  background: #ef4444;
  color: white;
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

/* Creator Avatar */
.saved-creator-avatar-wrapper {
  position: relative;
  margin-top: -40px;
  padding: 0 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
}

.saved-creator-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: white;
  transition: transform 0.3s ease;
}

.saved-creator-card:hover .saved-creator-avatar {
  transform: scale(1.05);
}

.saved-creator-level {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  box-shadow: 0 4px 8px rgba(183, 140, 90, 0.2);
  border: 2px solid white;
}

/* Creator Info */
.saved-creator-info {
  padding: 0 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.saved-creator-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
  line-height: 1.3;
}

.saved-creator-role {
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.saved-creator-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.saved-creator-location i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* Stats Row */
.saved-creator-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 12px 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  border-radius: 40px;
}

.saved-creator-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.saved-creator-stats .stat-item i {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.saved-creator-stats .stat-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Action Buttons */
.saved-creator-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.saved-creator-actions .btn-primary,
.saved-creator-actions .btn-outline {
  flex: 1;
  padding: 10px;
  font-size: 0.8rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.saved-creator-actions .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.saved-creator-actions .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(183, 140, 90, 0.3);
}

.saved-creator-actions .btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.saved-creator-actions .btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(183, 140, 90, 0.2);
}

.saved-creator-actions i {
  font-size: 0.8rem;
}

/* Empty State */
.saved-creators-dashboard .empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 24px;
  border: 2px dashed var(--border-light);
  margin: 40px 0;
}

.saved-creators-dashboard .empty-state > i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.saved-creators-dashboard .empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 500;
}

.saved-creators-dashboard .empty-state p {
  color: var(--text-soft);
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.saved-creators-dashboard .empty-state .btn-primary {
  padding: 12px 30px;
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.saved-creators-dashboard .empty-state .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 140, 90, 0.2);
}

/* Loading State */
.saved-creators-dashboard .loading-state {
  text-align: center;
  padding: 60px;
}

.saved-creators-dashboard .loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

.saved-creators-dashboard .loading-state p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Error State */
.saved-creators-dashboard .error-state {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-light);
}

.saved-creators-dashboard .error-state i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 20px;
}

.saved-creators-dashboard .error-state h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.saved-creators-dashboard .error-state p {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.saved-creators-dashboard .error-state .btn-primary {
  padding: 12px 30px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.saved-creators-dashboard .error-state .btn-primary:hover {
  background: #9a7a4e;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .saved-creators-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .saved-creators-header .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .saved-filters {
    flex-direction: column;
    border-radius: 24px;
    padding: 15px;
  }

  .saved-filters .search-wrapper {
    width: 100%;
  }

  .saved-filters .filter-select-enhanced {
    width: 100%;
  }

  .saved-creators-grid {
    grid-template-columns: 1fr;
  }

  .saved-creator-actions {
    flex-direction: column;
  }

  .saved-creator-actions .btn-primary,
  .saved-creator-actions .btn-outline {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .saved-creators-dashboard {
    padding: 15px;
  }

  .saved-creators-header .page-title {
    font-size: 1.6rem;
  }

  .saved-creator-avatar-wrapper {
    padding: 0 15px;
  }

  .saved-creator-avatar {
    width: 60px;
    height: 60px;
  }

  .saved-creator-info {
    padding: 0 15px 15px;
  }

  .saved-creator-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .saved-creator-stats .stat-item {
    min-width: 70px;
  }
}
/* Add this to frontend/public/css/dashboard-customer.css */

/* =======================================================================
   OVERVIEW DASHBOARD - Matching Dashboard Theme (COMPACT VERSION)
   ======================================================================= */

.overview-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 20px 25px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(183, 140, 90, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.welcome-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.welcome-title span {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.welcome-title span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(183, 140, 90, 0.15);
  z-index: -1;
  border-radius: 3px;
}

.welcome-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.quote-card {
  background: white;
  border-radius: 16px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  max-width: 350px;
  position: relative;
  z-index: 2;
}

.quote-card i {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.5;
  margin-bottom: 5px;
  display: block;
}

.quote-card p {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-style: italic;
  margin: 0 0 5px 0;
  line-height: 1.5;
}

.quote-card span {
  color: var(--text-soft);
  font-size: 0.75rem;
  display: block;
  text-align: right;
}

/* Stats Grid Modern */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card-modern {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card-modern::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
  transform: skewX(-15deg) translateX(100%);
  transition: transform 0.6s ease;
}

.stat-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(183, 140, 90, 0.1);
  border-color: var(--accent-light);
}

.stat-card-modern:hover::after {
  transform: skewX(-15deg) translateX(-150%);
}

.stat-card-modern.orders .stat-icon-wrapper {
  background: rgba(183, 140, 90, 0.1);
  color: var(--accent);
}

.stat-card-modern.bookings .stat-icon-wrapper {
  background: rgba(47, 110, 74, 0.1);
  color: #2f6e4a;
}

.stat-card-modern.messages .stat-icon-wrapper {
  background: rgba(30, 74, 107, 0.1);
  color: #1e4a6b;
}

.stat-card-modern.notifications .stat-icon-wrapper {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-icon-wrapper {
  transform: scale(1.05);
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.stat-trend {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 30px;
  background: var(--bg);
}

.stat-trend.positive {
  color: #2f6e4a;
  background: rgba(47, 110, 74, 0.1);
}

.stat-trend.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.stat-subtitle {
  font-size: 0.65rem;
  color: var(--text-soft);
  display: block;
}

/* Insights Grid - COMPACT */
.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 15px;
  margin-bottom: 25px;
}

@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Activity Feed - COMPACT */
.activity-feed {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.feed-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.feed-header h3 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.feed-header .view-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 3px;
}

.feed-header .view-all:hover {
  color: #9a7a4e;
  gap: 5px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
}

.feed-list::-webkit-scrollbar {
  width: 4px;
}

.feed-list::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.feed-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.activity-item:hover {
  background: white;
  border-color: var(--accent-light);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-icon {
  width: 32px;
  height: 32px;
  background: rgba(183, 140, 90, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.activity-description {
  color: var(--text-soft);
  font-size: 0.7rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.activity-time {
  color: var(--text-soft);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.activity-amount {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: auto;
}

.activity-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-soft);
  background: var(--bg);
  border-radius: 12px;
}

.activity-empty i {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 5px;
}

.activity-empty p {
  font-size: 0.8rem;
  margin: 0;
}

/* Insights Panel - COMPACT */
.insights-panel {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.insights-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.insights-panel h3 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.insight-item:hover {
  background: white;
  border-color: var(--accent-light);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 12px -5px rgba(183, 140, 90, 0.3);
}

.insight-content {
  flex: 1;
}

.insight-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px 0;
}

.insight-content p {
  color: var(--text-soft);
  font-size: 0.7rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.insight-action {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.insight-item:hover .insight-action {
  letter-spacing: 0.2px;
}

/* Schedule Panel - COMPACT */
.schedule-panel {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.schedule-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.schedule-panel h3 i {
  color: var(--accent);
  font-size: 0.9rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
}

.schedule-list::-webkit-scrollbar {
  width: 4px;
}

.schedule-list::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.schedule-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.schedule-item:hover {
  background: white;
  border-color: var(--accent-light);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-time {
  min-width: 60px;
  text-align: center;
}

.time-badge {
  background: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.schedule-info {
  flex: 1;
}

.schedule-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.8rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.schedule-client {
  color: var(--text-soft);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.schedule-status {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

.schedule-status.pending {
  background: #fef3e2;
  color: #b45309;
}

.schedule-status.confirmed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.schedule-status.in_progress {
  background: #e1f0fa;
  color: #1e4a6b;
}

.schedule-status.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.schedule-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-soft);
  background: var(--bg);
  border-radius: 12px;
}

.schedule-empty i {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 5px;
}

.schedule-empty p {
  font-size: 0.8rem;
  margin: 0 0 3px 0;
}

.schedule-note {
  font-size: 0.65rem;
  color: var(--text-soft);
}

/* Bottom Stats - COMPACT */
.bottom-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.bottom-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.bottom-stat-item:hover {
  background: white;
  box-shadow: 0 4px 10px rgba(183, 140, 90, 0.1);
  border-color: var(--accent-light);
}

.bottom-stat-item i {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--accent) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 12px -5px rgba(183, 140, 90, 0.3);
}

.bottom-stat-content {
  flex: 1;
}

.bottom-stat-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.bottom-stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

/* Loading State */
.overview-dashboard .loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}

.overview-dashboard .loading-state {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.overview-dashboard .loading-state p {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin: 0;
}

/* Error State */
.overview-dashboard .error-state {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.overview-dashboard .error-state i {
  font-size: 2.5rem;
  color: #ef4444;
  margin-bottom: 15px;
}

.overview-dashboard .error-state h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.overview-dashboard .error-state p {
  color: var(--text-soft);
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.overview-dashboard .error-state .btn-primary {
  padding: 10px 25px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.overview-dashboard .error-state .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(183, 140, 90, 0.2);
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .overview-dashboard {
    padding: 15px;
  }

  .welcome-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .welcome-title {
    font-size: 1.6rem;
  }

  .quote-card {
    max-width: 100%;
    padding: 12px 15px;
  }

  .stats-grid-modern {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card-modern {
    padding: 15px;
  }

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

  .bottom-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .bottom-stat-item {
    padding: 10px;
  }

  .feed-list,
  .schedule-list {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .welcome-title {
    font-size: 1.3rem;
  }

  .stat-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

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

  .activity-item,
  .insight-item,
  .schedule-item {
    padding: 8px;
  }

  .activity-amount {
    font-size: 0.7rem;
  }

  .schedule-title,
  .schedule-client {
    max-width: 80px;
  }

  .schedule-status {
    min-width: 60px;
    font-size: 0.55rem;
    padding: 2px 6px;
  }
}
/* ========================================================================
   OPTIMIZED ORDERS STATS GRID - FULL TEXT VISIBILITY ON ALL SCREENS
   ======================================================================== */

/* Base styles - ensure text wrapping */
.orders-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
  width: 100%;
}

/* Stat cards with proper padding and text handling */
.stat-card-enhanced {
  background: white;
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 0; /* Allow content to shrink */
  width: 100%;
  height: 100%;
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
  min-width: 0; /* Critical for text truncation/overflow */
  overflow: hidden;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Section headers - full width */
.stats-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.stats-section-header i {
  font-size: 1rem;
  color: var(--accent);
  background: rgba(183, 140, 90, 0.1);
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-section-header h3 {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-section-header .count-badge {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 35px;
  text-align: center;
  flex-shrink: 0;
}

/* ========================================================================
   DESKTOP/LAPTOP (1025px and above)
   ======================================================================== */
@media (min-width: 1025px) {
  .orders-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }

  .stat-card-enhanced {
    padding: 18px 16px;
  }

  .stat-icon-wrapper {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

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

/* ========================================================================
   TABLET LANDSCAPE (768px - 1024px)
   ======================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .orders-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .stat-card-enhanced {
    padding: 14px 12px;
  }

  .stat-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.2px;
  }

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

  .stats-section-header {
    padding: 10px 14px;
  }

  .stats-section-header h3 {
    font-size: 0.9rem;
  }

  .stats-section-header .count-badge {
    padding: 3px 10px;
    font-size: 0.65rem;
  }
}

/* ========================================================================
   TABLET PORTRAIT (481px - 767px)
   ======================================================================== */
@media (min-width: 481px) and (max-width: 767px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card-enhanced {
    padding: 12px 10px;
  }

  .stat-card-header {
    gap: 8px;
  }

  .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
  }

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

  .stats-section-header {
    padding: 8px 12px;
    margin: 15px 0 8px 0;
  }

  .stats-section-header i {
    font-size: 0.9rem;
    padding: 6px;
  }

  .stats-section-header h3 {
    font-size: 0.8rem;
  }

  .stats-section-header .count-badge {
    padding: 2px 8px;
    font-size: 0.6rem;
    min-width: 30px;
  }
}

/* ========================================================================
   MOBILE (360px - 480px)
   ======================================================================== */
@media (min-width: 361px) and (max-width: 480px) {
  .orders-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card-enhanced {
    padding: 10px 8px;
  }

  .stat-card-header {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .stat-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.1px;
    margin-bottom: 1px;
  }

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

  .stats-section-header {
    padding: 6px 10px;
    margin: 10px 0 5px 0;
    border-radius: 30px;
  }

  .stats-section-header i {
    font-size: 0.8rem;
    padding: 5px;
  }

  .stats-section-header h3 {
    font-size: 0.7rem;
  }

  .stats-section-header .count-badge {
    padding: 2px 6px;
    font-size: 0.55rem;
    min-width: 25px;
  }
}

/* ========================================================================
   SMALL MOBILE (up to 360px)
   ======================================================================== */
@media (max-width: 360px) {
  .orders-stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stat-card-enhanced {
    padding: 8px 6px;
  }

  .stat-card-header {
    gap: 5px;
  }

  .stat-icon-wrapper {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .stat-label {
    font-size: 0.5rem;
    letter-spacing: 0;
  }

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

  .stats-section-header {
    padding: 5px 8px;
    margin: 8px 0 4px 0;
  }

  .stats-section-header i {
    font-size: 0.7rem;
    padding: 4px;
  }

  .stats-section-header h3 {
    font-size: 0.6rem;
  }

  .stats-section-header .count-badge {
    padding: 2px 5px;
    font-size: 0.5rem;
    min-width: 22px;
  }
}

/* ========================================================================
   EXTRA SMALL - PREVENT HORIZONTAL SCROLL
   ======================================================================== */
.orders-stats-grid {
  overflow: visible !important;
  width: 100%;
  box-sizing: border-box;
}

.stat-card-enhanced {
  box-sizing: border-box;
}

/* Ensure the stat cards don't overflow their container */
#allOrdersStatsGrid {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
/* ========================================================================
   ORDERS HEADER ACTIONS - WITH ADDITIONAL BUTTONS
   ======================================================================== */

.orders-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.orders-header-actions .btn-outline,
.orders-header-actions .btn-primary {
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 40px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.orders-header-actions .btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.orders-header-actions .btn-outline:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(183, 140, 90, 0.2);
}

.orders-header-actions .btn-outline i {
  color: var(--accent);
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.orders-header-actions .btn-outline:hover i {
  transform: scale(1.1);
}

.orders-header-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: white;
}

.orders-header-actions .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(183, 140, 90, 0.3);
}

.orders-header-actions .btn-primary i {
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .orders-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8rem;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .orders-header-actions {
    flex-direction: column;
    width: 100%;
  }

  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
/* Compact Quote Card Styles - Add to dashboard-customer.css */

.compact-quote-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #ece9e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.compact-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ece9e5;
}

.compact-quote-header .header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compact-quote-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2e2a28;
  margin: 0;
}

.compact-quote-header i {
  font-size: 0.9rem;
}

.compact-status {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.compact-status.sent {
  background: #f2ebe3;
  color: #b78c5a;
}

.compact-status.accepted {
  background: #e3f2e9;
  color: #2f6e4a;
}

.compact-settings-badge {
  background: #f2ebe3;
  border-radius: 30px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: #b78c5a;
  margin-bottom: 12px;
}

.compact-settings-badge i {
  font-size: 0.55rem;
}

/* Compact Flow */
.compact-flow {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.8rem;
  border-bottom: 1px dashed #e2e8f0;
}

.compact-row:last-child {
  border-bottom: none;
}

.row-label {
  color: #64748b;
}

.row-value {
  font-weight: 500;
  color: #2e2a28;
}

.row-value.discount {
  color: #b45309;
  font-weight: 600;
}

.row-value.vat {
  color: #2563eb;
}

.row-value.total {
  color: #2f6e4a;
  font-weight: 600;
}

.row-value.deposit {
  color: #b45309;
}

.compact-row.grand-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #b78c5a;
}

.grand-value {
  color: #b78c5a;
  font-weight: 700;
  font-size: 1rem;
  background: #f2ebe3;
  padding: 3px 10px;
  border-radius: 30px;
}

/* Compact Section Header */
.compact-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2e2a28;
}

.compact-section-header i {
  font-size: 0.7rem;
}

/* Compact Breakdown */
.compact-breakdown {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.compact-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.compact-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ece9e5;
  font-size: 0.7rem;
}

.compact-breakdown-item .item-name {
  color: #64748b;
}

.compact-breakdown-item .item-amount {
  font-weight: 600;
  color: #b78c5a;
}

/* Compact Payment */
.compact-payment {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.compact-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-payment-item {
  background: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  border: 1px solid #ece9e5;
}

.compact-payment-item.first {
  border-left: 3px solid #b78c5a;
}

.compact-payment-item.second {
  border-left: 3px solid #94a3b8;
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.payment-number {
  width: 18px;
  height: 18px;
  background: #b78c5a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
}

.compact-payment-item.second .payment-number {
  background: #94a3b8;
}

.payment-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #2e2a28;
}

.compact-payment-item .payment-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #b78c5a;
  margin-bottom: 4px;
}

.compact-payment-item.second .payment-amount {
  color: #475569;
}

.payment-status {
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.payment-status.paid {
  color: #2f6e4a;
}

.payment-status.pending {
  color: #b45309;
}

/* Compact Rejection */
.compact-rejection {
  margin-top: 8px;
  background: #fef3e2;
  border-radius: 10px;
  border: 1px solid #fde6c9;
  overflow: hidden;
}

.compact-rejection summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b45309;
  list-style: none;
}

.compact-rejection summary i:last-child {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 0.65rem;
}

.compact-rejection[open] summary i:last-child {
  transform: rotate(180deg);
}

.compact-rejection-content {
  padding: 0 12px 10px 12px;
}

.compact-rejection-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.7rem;
  border-bottom: 1px dashed #e2e8f0;
}

.compact-rejection-row:last-child {
  border-bottom: none;
}

.compact-rejection-row.fee {
  color: #b45309;
}

.refund-amount {
  color: #2f6e4a;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .compact-payment-grid {
    grid-template-columns: 1fr;
  }

  .compact-breakdown-grid {
    grid-template-columns: 1fr;
  }
}
.calculation-flow {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ece9e5;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row.original .calc-value {
  font-weight: 600;
  color: #2e2a28;
}

.calc-row.discount .calc-value {
  color: #b45309;
  font-weight: 600;
}

.calc-row.after-discount.highlight {
  background: #f2ebe3;
  margin: 8px -8px;
  padding: 12px 8px;
  border-radius: 12px;
  border-bottom: none;
}

.calc-row.vat .calc-value {
  color: #2563eb;
  font-weight: 500;
}

.calc-row.total-with-vat {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.calc-row.total-with-vat .calc-value {
  font-weight: 600;
  color: #2563eb;
}

.calc-row.deposit-deduction .calc-value {
  color: #b45309;
  font-weight: 600;
}

.calc-row.grand-total {
  background: #e3f2e9;
  margin: 8px -8px;
  padding: 16px 8px;
  border-radius: 12px;
  border-bottom: none;
}

.calc-row.grand-total .calc-label {
  font-weight: 700;
  color: #2f6e4a;
}

.calc-row.grand-total .calc-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2f6e4a;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #b78c5a;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 8px;
}

.calc-row.original .step-number {
  background: #475569;
}

.calc-row.discount .step-number {
  background: #b45309;
}

.calc-row.vat .step-number {
  background: #2563eb;
}

.calc-row.deposit-deduction .step-number {
  background: #b45309;
}

.calc-row.grand-total .step-number {
  background: #2f6e4a;
}

.step-text {
  font-size: 0.9rem;
}

.original-amount-reference {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background: #f2ebe3;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

.original-amount {
  text-decoration: line-through;
  color: #94a3b8;
  margin-left: 5px;
}

.saved-amount {
  color: #2f6e4a;
  font-weight: 600;
  background: #e3f2e9;
  padding: 2px 10px;
  border-radius: 30px;
}
/* Reviews Tabs - Filled Background */
.reviews-tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0 20px;
  background: var(--bg-light, #f8fafc);
  padding: 6px;
  border-radius: 12px;
}

.reviews-tabs .tab-btn {
  padding: 10px 24px;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft, #5e5a58);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  flex: 1;
  text-align: center;
}

.reviews-tabs .tab-btn:hover {
  color: var(--accent, #b78c5a);
  background: rgba(183, 140, 90, 0.05);
}

.reviews-tabs .tab-btn.active {
  background: white;
  color: var(--accent, #b78c5a);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* Order Type Badge - Moved Left */
.order-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: -4px; /* Moves it slightly left */
  margin-right: 8px; /* Adds space after */
}

/* If it's in a flex container, adjust with margin */
.order-card-header-enhanced .order-type-badge {
  margin-left: -6px; /* Adjust this value as needed */
  margin-right: 10px;
}

/* Alternative: Use transform to move left */
.order-type-badge.move-left {
  transform: translateX(-4px);
}

/* For different badge types */
.order-type-badge.service {
  background: rgba(183, 140, 90, 0.1);
  color: #b78c5a;
  border: 1px solid rgba(183, 140, 90, 0.2);
}

.order-type-badge.product {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* If you want to adjust based on position in the header */
.order-card-header-enhanced {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}

.order-card-header-enhanced .order-type-badge:first-child {
  margin-left: -8px; /* Extra left for first element */
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .order-type-badge {
    margin-left: -2px;
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}
/* ========================================================================
   MESSAGES SECTION - MATCHING PROVIDER COMPACT DESIGN
   ======================================================================== */

.messages-dashboard-compact {
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  border: 1px solid var(--border-light);
}

/* Header */
.messages-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.header-left .page-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-chip:hover {
  background: white;
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.search-box-compact {
  position: relative;
  width: 220px;
}

.search-box-compact i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.75rem;
  pointer-events: none;
}

.search-box-compact input {
  width: 100%;
  padding: 8px 8px 8px 30px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.8rem;
  background: var(--bg);
  min-height: 36px;
  transition: all 0.2s;
}

.search-box-compact input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
  background: white;
}

/* Messages Container */
.messages-container-compact {
  display: flex;
  flex: 1;
  min-height: 0;
  background: white;
  overflow: hidden;
}

/* Conversations Sidebar */
.conversations-sidebar-compact {
  width: 320px;
  border-right: 1px solid var(--border-light);
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  .conversations-sidebar-compact {
    width: 100%;
    display: block;
  }

  .conversations-sidebar-compact.hide-mobile {
    display: none;
  }
}

.conversations-header-compact {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.conversations-header-compact h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.conversation-count {
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 30px;
  font-weight: normal;
}

.conversations-actions {
  display: flex;
  gap: 4px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

/* Conversations List */
.conversations-list-compact {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Conversation Item */
.conversation-item-compact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: 4px;
  border: 1px solid transparent;
  background: white;
}

.conversation-item-compact:hover {
  background: var(--bg);
  border-color: var(--border-light);
  transform: translateX(2px);
}

.conversation-item-compact.active {
  background: #f2ebe3;
  border-color: var(--accent);
  border-left-width: 3px;
}

.conversation-item-compact.unread {
  background: #f8fafc;
  border-left: 3px solid var(--accent);
}

.conversation-content-compact {
  flex: 1;
  min-width: 0;
}

.conversation-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.customer-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.conversation-item-compact.unread .customer-name {
  color: var(--accent);
  font-weight: 700;
}

.conversation-time {
  font-size: 0.6rem;
  color: var(--text-soft);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-details1 {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-last-message {
  font-size: 0.7rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  line-height: 1.4;
}

.conversation-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.status-indicator {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-indicator.requests {
  background: #fef3e2;
  color: #b45309;
}

.status-indicator.processing {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-indicator.pending {
  background: #fef3e2;
  color: #b45309;
}

.status-indicator.active {
  background: #e1f0fa;
  color: #1e4a6b;
}

.status-indicator.completed {
  background: #e3f2e9;
  color: #2f6e4a;
}

.status-indicator.canceled {
  background: #fee2e2;
  color: #991b1b;
}

.status-indicator.platform {
  background: #e6e9f0;
  color: #4b5563;
}

.unread-badge-compact {
  background: var(--accent);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0 6px;
  margin-left: auto;
  align-self: center;
  box-shadow: 0 2px 4px rgba(183, 140, 90, 0.3);
  flex-shrink: 0;
}

/* Message Thread */
.message-thread-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
}

@media (max-width: 768px) {
  .message-thread-compact {
    display: none;
  }

  .message-thread-compact.active-mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
  }
}

/* Thread Placeholder */
.thread-placeholder-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  padding: 30px;
  background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
  text-align: center;
}

.placeholder-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 2rem;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.thread-placeholder-compact h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.thread-placeholder-compact p {
  margin-bottom: 20px;
  font-size: 0.85rem;
  max-width: 300px;
}

/* Thread Header */
.thread-header-compact {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  min-height: 64px;
}

.back-btn-compact {
  display: none;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-soft);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .back-btn-compact {
    display: flex;
  }
}

.back-btn-compact:hover {
  background: var(--bg);
  color: var(--accent);
}

.thread-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.thread-user-info .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  box-shadow: 0 2px 8px rgba(183, 140, 90, 0.2);
}

.user-details-compact {
  flex: 1;
  min-width: 0;
}

.user-details-compact h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-status {
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-status.online {
  color: #10b981;
}

.user-status.online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 2s infinite;
}

.user-status.offline {
  color: var(--text-soft);
}

/* Messages List */
.messages-list-compact {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

/* Date Divider */
.date-divider {
  text-align: center;
  margin: 8px 0;
  color: var(--text-soft);
  font-size: 0.65rem;
  position: relative;
}

.date-divider span {
  background: white;
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: inline-block;
  border: 1px solid var(--border-light);
}

/* Message Item */
.message-item-compact {
  display: flex;
  margin-bottom: 2px;
  animation: fadeIn 0.3s ease;
}

.message-item-compact.sent {
  justify-content: flex-end;
}

.message-bubble-compact {
  max-width: 60%;
  padding: 10px 14px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

@media (max-width: 768px) {
  .message-bubble-compact {
    max-width: 75%;
  }
}

.message-bubble-compact:hover {
  transform: scale(1.01);
}

.message-item-compact.received .message-bubble-compact {
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-light);
}

.message-item-compact.sent .message-bubble-compact {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-text {
  line-height: 1.5;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.55rem;
  opacity: 0.8;
}

.message-item-compact.sent .message-footer {
  color: rgba(255, 255, 255, 0.9);
}

.message-time {
  font-size: 0.55rem;
}

.message-status {
  font-size: 0.6rem;
}

/* Message Attachments */
.message-attachment {
  margin-top: 6px;
  border-radius: 10px;
  overflow: hidden;
}

.message-attachment.image img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-attachment.image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-attachment.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.message-item-compact.sent .message-attachment.file {
  background: rgba(255, 255, 255, 0.15);
}

.message-attachment.file i {
  font-size: 1.2rem;
  color: inherit;
}

.file-info {
  flex: 1;
  min-width: 100px;
}

.file-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Typing Indicator */
.typing-indicator-compact {
  padding: 8px 16px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 140, 90, 0.05),
    transparent
  );
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Message Input */
.message-input-container-compact {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: white;
}

.input-wrapper-compact {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px 4px 4px 12px;
  transition: all 0.2s;
}

.input-wrapper-compact:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
  background: white;
}

.input-wrapper-compact textarea {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  resize: none;
  max-height: 80px;
  line-height: 1.5;
  outline: none;
}

.input-actions-compact {
  display: flex;
  gap: 2px;
  padding: 2px;
}

.input-actions-compact .btn-icon {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.input-actions-compact .btn-icon:hover {
  background: var(--bg);
  color: var(--accent);
}

.send-btn {
  background: var(--accent) !important;
  color: white !important;
  box-shadow: 0 2px 6px rgba(183, 140, 90, 0.3);
}

.send-btn:hover {
  background: var(--accent-light) !important;
  transform: scale(1.05);
}

/* Attachment Preview */
.attachment-preview-area {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg);
  border-radius: 16px;
  animation: slideUp 0.3s ease;
}

.attachment-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.attachment-preview img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.attachment-preview i {
  font-size: 1.5rem;
  color: var(--accent);
}

.preview-info {
  flex: 1;
  min-width: 120px;
}

.preview-info .file-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-info .file-size {
  font-size: 0.65rem;
  color: var(--text-soft);
}

.remove-attachment {
  background: #fee2e2;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.remove-attachment:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

/* No Conversations */
.no-conversations-compact {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  background: white;
  border-radius: 16px;
  margin: 10px;
}

.no-conversations-compact i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.3;
  color: var(--accent);
}

.no-conversations-compact h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.no-conversations-compact p {
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.no-conversations-compact .btn-text {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 8px 16px;
  background: var(--bg);
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* No Messages */
.no-messages {
  text-align: center;
  padding: 30px;
  color: var(--text-soft);
  font-style: italic;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  margin: 20px 0;
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .messages-header-compact {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .filter-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .search-box-compact {
    flex: 1;
  }

  .message-bubble-compact {
    max-width: 85%;
  }
}

@media (max-width: 480px) {
  .conversation-item-compact {
    padding: 10px;
  }

  .customer-name {
    font-size: 0.85rem;
    max-width: 120px;
  }

  .service-details1 {
    font-size: 0.7rem;
  }

  .conversation-last-message {
    font-size: 0.65rem;
  }

  .status-indicator {
    font-size: 0.55rem;
    padding: 2px 8px;
  }

  .unread-badge-compact {
    min-width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }

  .user-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .message-bubble-compact {
    max-width: 90%;
  }

  .input-actions-compact .btn-icon {
    width: 34px;
    height: 34px;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   WISHLIST STATS GRID - HORIZONTAL ROW ON SMALL SCREENS
   ======================================================================== */

.wishlist-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

/* On small screens, make it a horizontal scrollable row */
@media (max-width: 768px) {
  .wishlist-stats-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .wishlist-stats-grid .stat-card-mini {
    flex: 0 0 auto;
    min-width: 120px;
    width: auto;
    margin: 0;
  }

  /* Custom scrollbar styling */
  .wishlist-stats-grid::-webkit-scrollbar {
    height: 4px;
  }

  .wishlist-stats-grid::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
  }

  .wishlist-stats-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
  }

  .wishlist-stats-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
  }
}

/* For very small screens, make cards even more compact */
@media (max-width: 480px) {
  .wishlist-stats-grid {
    gap: 10px;
  }

  .wishlist-stats-grid .stat-card-mini {
    min-width: 100px;
    padding: 12px 8px;
  }

  .wishlist-stats-grid .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .wishlist-stats-grid .stat-value {
    font-size: 1rem;
  }

  .wishlist-stats-grid .stat-label {
    font-size: 0.6rem;
  }
}
/* ========================================================================
   SERVICE META - HORIZONTAL SCROLLABLE ROW (NO WRAP)
   ======================================================================== */

.service-meta {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 10px;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.service-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.service-meta .meta-item i {
  color: var(--accent);
  font-size: 0.8rem;
}

.service-meta .meta-item span {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
}

.service-meta .meta-item.rating i {
  color: #fbbf24;
}

/* Custom scrollbar for horizontal scrolling */
.service-meta::-webkit-scrollbar {
  height: 4px;
}

.service-meta::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.service-meta::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.service-meta::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .service-meta {
    padding: 8px;
    gap: 8px;
  }

  .service-meta .meta-item {
    padding: 4px 10px;
  }

  .service-meta .meta-item i {
    font-size: 0.7rem;
  }

  .service-meta .meta-item span {
    font-size: 0.7rem;
  }
}

/* Product meta row - horizontal layout */
.product-meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

/* On mobile, keep them in a row but allow wrapping if needed */
@media (max-width: 768px) {
  .product-meta-row {
    gap: 6px;
  }

  .delivery-info,
  .stock-status.in-stock {
    margin: 0;
    white-space: nowrap;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   ORDERS HEADER ACTIONS - HORIZONTAL ROW WITH EQUAL SIZE BUTTONS
   ======================================================================== */

.orders-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* On small screens, make it a horizontal scrollable row with equal size buttons */
@media (max-width: 768px) {
  .orders-header-actions {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary,
  .orders-header-actions a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.7rem;
    min-height: 32px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .orders-header-actions .btn-outline i,
  .orders-header-actions .btn-primary i,
  .orders-header-actions a i {
    font-size: 0.65rem;
    margin-right: 2px;
  }

  /* Make all buttons the same width based on content */
  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary,
  .orders-header-actions a {
    width: auto;
    min-width: 0;
  }

  /* Custom scrollbar styling */
  .orders-header-actions::-webkit-scrollbar {
    height: 3px;
  }

  .orders-header-actions::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
  }

  .orders-header-actions::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
  }
}

/* For very small screens, make buttons even more compact */
@media (max-width: 480px) {
  .orders-header-actions {
    gap: 6px;
  }

  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary,
  .orders-header-actions a {
    padding: 5px 10px;
    font-size: 0.65rem;
    min-height: 28px;
    border-radius: 28px;
  }

  .orders-header-actions .btn-outline i,
  .orders-header-actions .btn-primary i,
  .orders-header-actions a i {
    font-size: 0.6rem;
  }
}

/* For extra small screens, even more compact */
@media (max-width: 360px) {
  .orders-header-actions {
    gap: 5px;
  }

  .orders-header-actions .btn-outline,
  .orders-header-actions .btn-primary,
  .orders-header-actions a {
    padding: 4px 8px;
    font-size: 0.6rem;
    min-height: 26px;
    border-radius: 26px;
  }

  .orders-header-actions .btn-outline i,
  .orders-header-actions .btn-primary i,
  .orders-header-actions a i {
    font-size: 0.55rem;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   STATS GRID MODERN - HORIZONTAL ROW ON SMALL SCREENS
   ======================================================================== */

.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacer) * 2);
  margin-bottom: calc(var(--spacer) * 4);
  width: 100%;
}

/* On small screens, make it a horizontal scrollable row */
@media (max-width: 768px) {
  .stats-grid-modern {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .stats-grid-modern .stat-card-modern {
    flex: 0 0 auto;
    min-width: 140px;
    width: auto;
    margin: 0;
    padding: 14px 12px;
    gap: 12px;
  }

  .stats-grid-modern .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .stats-grid-modern .stat-label {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .stats-grid-modern .stat-value {
    font-size: 1.1rem;
  }

  .stats-grid-modern .stat-subtitle {
    font-size: 0.55rem;
    white-space: nowrap;
  }

  /* Custom scrollbar styling */
  .stats-grid-modern::-webkit-scrollbar {
    height: 3px;
  }

  .stats-grid-modern::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
  }

  .stats-grid-modern::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
  }
}

/* For very small screens, make cards even more compact */
@media (max-width: 480px) {
  .stats-grid-modern {
    gap: 10px;
    padding-bottom: 10px;
  }

  .stats-grid-modern .stat-card-modern {
    min-width: 120px;
    padding: 12px 10px;
    gap: 10px;
  }

  .stats-grid-modern .stat-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .stats-grid-modern .stat-value {
    font-size: 1rem;
  }

  .stats-grid-modern .stat-label {
    font-size: 0.55rem;
  }

  .stats-grid-modern .stat-subtitle {
    font-size: 0.5rem;
  }
}

/* For extra small screens */
@media (max-width: 360px) {
  .stats-grid-modern {
    gap: 8px;
  }

  .stats-grid-modern .stat-card-modern {
    min-width: 110px;
    padding: 10px 8px;
  }

  .stats-grid-modern .stat-icon-wrapper {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .stats-grid-modern .stat-value {
    font-size: 0.9rem;
  }

  .stats-grid-modern .stat-label {
    font-size: 0.5rem;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   ACTIVITY ITEMS - HORIZONTAL ROW ON SMALL SCREENS
   ======================================================================== */

.activity-feed .feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* On small screens, make activity items horizontal scrollable */
@media (max-width: 768px) {
  .activity-feed .feed-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .activity-item {
    flex: 0 0 auto;
    min-width: 260px;
    width: auto;
    margin: 0;
    padding: 12px;
    gap: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
  }

  .activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .activity-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .activity-details {
    flex: 1;
    min-width: 0;
  }

  .activity-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-description {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-time {
    font-size: 0.6rem;
  }

  .activity-amount {
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0;
    text-align: right;
    white-space: nowrap;
  }

  /* Custom scrollbar styling */
  .activity-feed .feed-list::-webkit-scrollbar {
    height: 3px;
  }

  .activity-feed .feed-list::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
  }

  .activity-feed .feed-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .activity-feed .feed-list {
    gap: 10px;
    padding-bottom: 10px;
  }

  .activity-item {
    min-width: 240px;
    padding: 10px;
    gap: 10px;
  }

  .activity-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .activity-title {
    font-size: 0.8rem;
  }

  .activity-description {
    font-size: 0.65rem;
  }

  .activity-amount {
    font-size: 0.8rem;
  }
}

/* For extra small screens */
@media (max-width: 360px) {
  .activity-feed .feed-list {
    gap: 8px;
  }

  .activity-item {
    min-width: 220px;
    padding: 8px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .activity-title {
    font-size: 0.75rem;
  }

  .activity-description {
    font-size: 0.6rem;
  }

  .activity-amount {
    font-size: 0.75rem;
  }

  .activity-time {
    font-size: 0.55rem;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   HEADER ACTION GROUP - HORIZONTAL ROW ON SMALL SCREENS
   ======================================================================== */

.header-action-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* On small screens, make it a horizontal scrollable row */
@media (max-width: 768px) {
  .header-action-group {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .header-action-group .btn-primary,
  .header-action-group .btn-outline,
  .header-action-group a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.7rem;
    min-height: 32px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .header-action-group .btn-primary i,
  .header-action-group .btn-outline i,
  .header-action-group a i {
    font-size: 0.65rem;
    margin-right: 2px;
  }

  /* Make all buttons the same width based on content */
  .header-action-group .btn-primary,
  .header-action-group .btn-outline,
  .header-action-group a {
    width: auto;
    min-width: 0;
  }

  /* Custom scrollbar styling */
  .header-action-group::-webkit-scrollbar {
    height: 3px;
  }

  .header-action-group::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
  }

  .header-action-group::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
  }
}

/* For very small screens, make buttons even more compact */
@media (max-width: 480px) {
  .header-action-group {
    gap: 8px;
  }

  .header-action-group .btn-primary,
  .header-action-group .btn-outline,
  .header-action-group a {
    padding: 5px 10px;
    font-size: 0.65rem;
    min-height: 28px;
    border-radius: 28px;
  }

  .header-action-group .btn-primary i,
  .header-action-group .btn-outline i,
  .header-action-group a i {
    font-size: 0.6rem;
  }
}

/* For extra small screens, even more compact */
@media (max-width: 360px) {
  .header-action-group {
    gap: 6px;
  }

  .header-action-group .btn-primary,
  .header-action-group .btn-outline,
  .header-action-group a {
    padding: 4px 8px;
    font-size: 0.6rem;
    min-height: 26px;
    border-radius: 26px;
  }

  .header-action-group .btn-primary i,
  .header-action-group .btn-outline i,
  .header-action-group a i {
    font-size: 0.55rem;
  }
}
/* Add to your dashboard-customer.css file */

/* ========================================================================
   DATE RANGE FILTER - HORIZONTAL ROW WITH UNIFORM SIZE
   ======================================================================== */

.date-range-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* On small screens, make it a horizontal scrollable row with uniform size */
@media (max-width: 768px) {
  .date-range-filter {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 6px 10px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-start;
    border-radius: 30px;
  }

  /* Make ALL elements the same size */
  .date-range-filter .filter-date-input,
  .date-range-filter span,
  .date-range-filter .btn-outline.btn-sm,
  .date-range-filter .btn-icon.btn-sm {
    flex: 0 0 auto;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .date-range-filter .filter-date-input {
    min-width: 110px;
    width: auto;
    padding: 0 10px;
    font-size: 0.7rem;
    border-radius: 30px;
    background: white;
    line-height: 1;
  }

  .date-range-filter span {
    width: 20px;
    padding: 0;
    font-size: 0.7rem;
    color: var(--text-soft);
    text-align: center;
  }

  .date-range-filter .btn-outline.btn-sm {
    padding: 0 12px;
    font-size: 0.7rem;
    border-radius: 30px;
    white-space: nowrap;
    background: white;
  }

  .date-range-filter .btn-icon.btn-sm {
    width: 32px;
    padding: 0;
    border-radius: 50%;
    background: white;
  }

  .date-range-filter .btn-outline.btn-sm i,
  .date-range-filter .btn-icon.btn-sm i {
    font-size: 0.7rem;
    margin: 0;
  }

  /* Custom scrollbar styling */
  .date-range-filter::-webkit-scrollbar {
    height: 3px;
  }

  .date-range-filter::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
  }

  .date-range-filter::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
  }
}

/* For very small screens - keep uniform size but smaller */
@media (max-width: 480px) {
  .date-range-filter {
    gap: 6px;
    padding: 5px 8px;
    border-radius: 28px;
  }

  .date-range-filter .filter-date-input,
  .date-range-filter span,
  .date-range-filter .btn-outline.btn-sm,
  .date-range-filter .btn-icon.btn-sm {
    height: 28px;
  }

  .date-range-filter .filter-date-input {
    min-width: 95px;
    font-size: 0.65rem;
  }

  .date-range-filter span {
    width: 18px;
    font-size: 0.65rem;
  }

  .date-range-filter .btn-outline.btn-sm {
    padding: 0 10px;
    font-size: 0.65rem;
  }

  .date-range-filter .btn-icon.btn-sm {
    width: 28px;
  }

  .date-range-filter .btn-outline.btn-sm i,
  .date-range-filter .btn-icon.btn-sm i {
    font-size: 0.65rem;
  }
}

/* For extra small screens */
@media (max-width: 360px) {
  .date-range-filter {
    gap: 5px;
    padding: 4px 6px;
  }

  .date-range-filter .filter-date-input,
  .date-range-filter span,
  .date-range-filter .btn-outline.btn-sm,
  .date-range-filter .btn-icon.btn-sm {
    height: 26px;
  }

  .date-range-filter .filter-date-input {
    min-width: 85px;
    font-size: 0.6rem;
  }

  .date-range-filter span {
    width: 16px;
    font-size: 0.6rem;
  }

  .date-range-filter .btn-outline.btn-sm {
    padding: 0 8px;
    font-size: 0.6rem;
  }

  .date-range-filter .btn-icon.btn-sm {
    width: 26px;
  }

  .date-range-filter .btn-outline.btn-sm i,
  .date-range-filter .btn-icon.btn-sm i {
    font-size: 0.6rem;
  }
}
/* Message Items - Fixed Horizontal Layout */
.message-item {
  display: flex;
  margin-bottom: 16px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.message-item.sent {
  justify-content: flex-end;
}

.message-item.received {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 20px;
  position: relative;
  word-wrap: break-word;
}

.message-item.sent .message-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-item.received .message-bubble {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.message-text {
  line-height: 1.4;
  font-size: 0.9rem;
  white-space: normal;
  word-break: break-word;
}

.message-text a {
  color: inherit;
  text-decoration: underline;
}

/* Message Attachment */
.message-attachment {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.message-attachment.image img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.message-attachment.image img:hover {
  transform: scale(1.02);
}

.message-attachment.file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 12px;
}

.message-attachment.file i {
  font-size: 1.2rem;
}

.message-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.65rem;
  opacity: 0.7;
}

.message-item.sent .message-footer {
  color: rgba(255, 255, 255, 0.8);
}

.message-item.received .message-footer {
  color: var(--text-soft);
}

.message-status {
  font-size: 0.6rem;
}

/* Make sure messages container handles scrolling correctly */
.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* Ensure date dividers are properly centered */
.date-divider {
  text-align: center;
  margin: 20px 0 15px;
  position: relative;
  width: 100%;
}

.date-divider span {
  background: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  color: var(--text-soft);
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* Payment Modal Styles */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal, 1000);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.payment-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.payment-modal .modal-header {
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.payment-modal .modal-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.payment-modal .modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-soft);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.payment-modal .modal-close:hover {
  background: var(--bg);
  color: var(--accent);
}

/* SCROLLABLE BODY */
.payment-modal .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 140px);
}

/* Payment Summary Styles */
.payment-summary {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.payment-summary .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.payment-element {
  min-height: 200px;
  margin-bottom: 20px;
}

.payment-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.payment-message.error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #991b1b;
}

.payment-message.success {
  background: #e3f2e9;
  color: #2f6e4a;
  border-left: 3px solid #2f6e4a;
}

/* FOOTER - Fixed at bottom */
.payment-modal .modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: white;
  flex-shrink: 0;
}

.payment-modal .modal-footer .btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-modal .modal-footer .btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.payment-modal .modal-footer .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.payment-modal .modal-footer .btn-text {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  text-align: center;
}

.payment-modal .modal-footer .btn-text:hover {
  color: var(--accent);
}

/* Stripe Element Styling */
.StripeElement {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.StripeElement--focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
}

.StripeElement--invalid {
  border-color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-modal {
    padding: 12px;
  }

  .payment-modal .modal-header {
    padding: 16px 20px;
  }

  .payment-modal .modal-body {
    padding: 20px;
    max-height: calc(90vh - 120px);
  }

  .payment-modal .modal-footer {
    padding: 16px 20px;
  }

  .payment-summary .amount {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .payment-modal .modal-header {
    padding: 14px 16px;
  }

  .payment-modal .modal-body {
    padding: 16px;
  }

  .payment-modal .modal-footer {
    padding: 14px 16px;
  }

  .payment-summary {
    padding: 16px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================================
   WISHLIST ERROR STATE STYLES
   ======================================================================== */

.wishlist-dashboard-enhanced .error-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  margin: 40px 0;
  animation: fadeIn 0.3s ease;
}

.wishlist-dashboard-enhanced .error-state i {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 20px;
}

.wishlist-dashboard-enhanced .error-state h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 500;
}

.wishlist-dashboard-enhanced .error-state p {
  color: var(--text-soft);
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.wishlist-dashboard-enhanced .error-state .btn-primary {
  padding: 12px 30px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.wishlist-dashboard-enhanced .error-state .btn-primary:hover {
  background: #9a7a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 140, 90, 0.2);
}

/* ========================================================================
   REVIEWS SECTION - SEARCH ICON STYLES
   ======================================================================== */

/* Center the search icon in Reviews section */
.reviews-dashboard .search-box i,
.reviews-container .search-box i,
#reviewsContainer .search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

/* On hover, make search icon white (when parent is hovered) */
.reviews-dashboard .search-box:hover i,
.reviews-container .search-box:hover i,
#reviewsContainer .search-box:hover i {
  color: white;
}

/* Also style the input focus state */
.reviews-dashboard .search-box input:focus + i,
.reviews-container .search-box input:focus + i,
#reviewsContainer .search-box input:focus + i {
  color: white;
}

/* ========================================================================
   SAVED CREATORS SECTION - SEARCH ICON STYLES
   ======================================================================== */

/* Center the search icon in Saved Creators section */
.saved-creators-dashboard .search-wrapper i,
.saved-filters .search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #2e2a28; /* Black color */
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

/* On hover, make search icon white */
.saved-creators-dashboard .search-wrapper:hover i,
.saved-filters .search-wrapper:hover i {
  color: white;
}

/* When input is focused, make icon white */
.saved-creators-dashboard .search-wrapper input:focus + i,
.saved-filters .search-wrapper input:focus + i {
  color: white;
}

/* Ensure the search wrapper has relative positioning for icon placement */
.saved-creators-dashboard .search-wrapper,
.saved-filters .search-wrapper,
.reviews-dashboard .search-box,
.reviews-container .search-box,
#reviewsContainer .search-box {
  position: relative;
  display: inline-block;
}

/* Additional styling for the search input to work properly */
.saved-creators-dashboard .search-wrapper input,
.saved-filters .search-wrapper input {
  padding-left: 40px;
  width: 100%;
  min-height: 44px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  transition: all 0.2s ease;
}

.saved-creators-dashboard .search-wrapper input:focus,
.saved-filters .search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
  background: white;
}

/* Reviews search box styling */
.reviews-dashboard .search-box,
.reviews-container .search-box,
#reviewsContainer .search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.reviews-dashboard .search-box input,
.reviews-container .search-box input,
#reviewsContainer .search-box input {
  padding-left: 40px;
  width: 100%;
  min-height: 44px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  transition: all 0.2s ease;
}

.reviews-dashboard .search-box input:focus,
.reviews-container .search-box input:focus,
#reviewsContainer .search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 140, 90, 0.1);
  background: white;
}
