/* ============= MODERN PROFILE SYSTEM ================ */

/* CSS Variables */
:root {
  --profile-primary: #45B8AC;
  --profile-primary-dark: #3a9b8f;
  --profile-secondary: #667eea;
  --profile-success: #28a745;
  --profile-danger: #dc3545;
  --profile-warning: #ffc107;
  --profile-info: #17a2b8;
  --profile-light: #f8f9fa;
  --profile-dark: #333;
  --profile-text: #555;
  --profile-text-light: #999;
  --profile-border: #e9ecef;
  --profile-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --profile-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
  --profile-shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Body Background */
body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.section {
  margin-top: 85px;
  padding: 2rem 0;
}

/* ============= MODERN PROFILE SIDEBAR ================ */

.profile-sidebar {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: var(--profile-shadow);
  margin-bottom: 2rem;
  position: sticky;
  top: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-sidebar:hover {
  box-shadow: var(--profile-shadow-hover);
  transform: translateY(-2px);
}

/* ============= PROFILE PICTURE ================ */

.profilePic {
  overflow: visible;
  width: 120px;
  height: 120px;
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
  margin: -80px auto 0;
  border-radius: 50%;
  position: relative;
  border: 4px solid #fff;
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profilePic:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(69, 184, 172, 0.4);
}

.profilePic:hover .profilePreviewEdit:not([hidden]),
.profilePic:hover .profilePreviewErase:not([hidden]),
.profilePic:hover .profilePreviewCancel:not([hidden]) {
  opacity: 0.9;
  visibility: visible;
}

.profilePic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profilePreviewEdit,
.profilePreviewCancel,
.profilePreviewErase {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  padding: 0.5rem;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.profilePreviewEdit {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8) translateX(-30px);
}

.profilePreviewErase {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8) translateX(30px);
}

.profilePreviewCancel {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
}

/* Hidden state */
.profilePreviewEdit[hidden],
.profilePreviewCancel[hidden],
.profilePreviewErase[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Visible state */
.profilePreviewEdit:not([hidden]),
.profilePreviewCancel:not([hidden]),
.profilePreviewErase:not([hidden]) {
  opacity: 0.9;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.profilePreviewEdit:not([hidden]) {
  transform: translate(-50%, -50%) scale(1) translateX(-30px);
}

.profilePreviewErase:not([hidden]) {
  transform: translate(-50%, -50%) scale(1) translateX(30px);
}

.profilePreviewCancel:hover,
.profilePreviewErase:hover,
.profilePreviewEdit:hover {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profilePreviewEdit:hover {
  transform: translate(-50%, -50%) scale(1.15) translateX(-30px);
}

.profilePreviewErase:hover {
  transform: translate(-50%, -50%) scale(1.15) translateX(30px);
}

#submitProfilePic {
  border-radius: 8px;
  width: auto;
  min-width: 100px;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  display: block;
  position: absolute;
  align-self: center;
  font-size: 0.875rem;
  top: 8.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(69, 184, 172, 0.3);
  z-index: 20;
}

#submitProfilePic:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.4);
  color: white;
}

/* ============= PROFILE NAME & INFO ================ */

.profileName {
  text-align: center;
  color: var(--profile-dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.profileInfo {
  text-align: center;
  color: var(--profile-text);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.profileInfo:last-of-type {
  margin-bottom: 1rem;
}

/* ============= MODERN PROFILE BUTTONS ================ */

.profileButtons {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.profileButtons .btn {
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: none;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profileButtons .btn-info {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
}

.profileButtons .btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
  color: #fff;
}

.profileButtons .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.profileButtons .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  color: #fff;
}

.profileButtons .btn:last-child {
  margin-bottom: 0;
}

/* ============= MODERN PROFILE DASHBOARD ================ */

.profile-dashboard {
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--profile-shadow);
  min-height: 500px;
}

.dashoardTitle {
  color: var(--profile-dark);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  padding-bottom: 0.75rem;
}

.dashoardTitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  border-radius: 2px;
}

/* ============= MODERN TABLES ================ */

.table {
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  font-size: 0.9rem;
  padding: 1rem;
  vertical-align: middle;
  border-color: var(--profile-border);
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: var(--profile-light);
}

.ptab-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ptab-image img:hover {
  transform: scale(1.1);
}

.subtitletab h4 {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
  margin: 0;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ============= MODERN FORMS ================ */

.x_title {
  margin: 0 0 2rem 0;
  text-align: center;
}

.x_title h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  padding-bottom: 1rem;
}

.x_title h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  border-radius: 2px;
}

.submitbutonlar {
  margin-top: 2rem;
  text-align: center;
}

.submitbutonlar .btn {
  min-width: 150px;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

.submitbutonlar .btn-dark {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
}

.submitbutonlar .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
  color: #fff;
}

.submitbutonlar .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.submitbutonlar .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  color: #fff;
}

/* ============= SCROLL Y ================ */

.scroll-y {
  overflow-y: auto;
  height: 350px;
  padding-right: 0.5rem;
}

.scroll-y::-webkit-scrollbar {
  width: 6px;
}

.scroll-y::-webkit-scrollbar-track {
  background: var(--profile-light);
  border-radius: 10px;
}

.scroll-y::-webkit-scrollbar-thumb {
  background: var(--profile-primary);
  border-radius: 10px;
}

.scroll-y::-webkit-scrollbar-thumb:hover {
  background: var(--profile-primary-dark);
}

/* ============= RESPONSIVE DESIGN ================ */

@media (max-width: 991px) {
  .profile-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  .profilePic {
    margin-top: 0;
  }
  
  .profile-dashboard {
    padding: 1.5rem;
  }
  
  .dashoardTitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    margin-top: 70px;
    padding: 1rem 0;
  }
  
  .profile-sidebar {
    padding: 1.5rem 1rem;
  }
  
  .profilePic {
    width: 100px;
    height: 100px;
  }
  
  .profileName {
    font-size: 1.25rem;
  }
  
  .profile-dashboard {
    padding: 1rem;
  }
  
  .table {
    font-size: 0.85rem;
  }
  
  .table thead th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
  
  .submitbutonlar .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* ============= MODERN CARD STYLES ================ */

.modern-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--profile-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: var(--profile-shadow-hover);
  transform: translateY(-2px);
}

.modern-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--profile-border);
}

.modern-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin: 0;
}

.modern-card-body {
  color: var(--profile-text);
  line-height: 1.7;
}

/* ============= MODERN BADGES ================ */

.modern-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.modern-badge-primary {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
}

.modern-badge-success {
  background: linear-gradient(135deg, var(--profile-success) 0%, #218838 100%);
  color: #fff;
}

.modern-badge-danger {
  background: linear-gradient(135deg, var(--profile-danger) 0%, #c82333 100%);
  color: #fff;
}

.modern-badge-warning {
  background: linear-gradient(135deg, var(--profile-warning) 0%, #e0a800 100%);
  color: #333;
}

/* ============= MODERN BUTTONS ================ */

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
  color: #fff;
}

.btn-modern-secondary {
  background: #fff;
  color: var(--profile-primary);
  border: 2px solid var(--profile-primary);
}

.btn-modern-secondary:hover {
  background: var(--profile-primary);
  color: #fff;
}

.btn-modern-danger {
  background: linear-gradient(135deg, var(--profile-danger) 0%, #c82333 100%);
  color: #fff;
}

.btn-modern-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  color: #fff;
}

/* ============= MODERN PAGE HEADER ================ */

.modern-page-header {
  margin-bottom: 2rem;
}

.modern-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.modern-page-title i {
  color: var(--profile-primary);
  font-size: 1.5rem;
}

.modern-page-subtitle {
  font-size: 0.95rem;
  color: var(--profile-text-light);
  margin: 0;
}

/* ============= MODERN EMPTY STATE ================ */

.modern-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--profile-shadow);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--profile-text-light);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin-bottom: 0.75rem;
}

.empty-state-text {
  font-size: 1rem;
  color: var(--profile-text);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============= MODERN FAVORITES PAGE ================ */

.modern-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.modern-favorite-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--profile-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-favorite-card:hover {
  box-shadow: var(--profile-shadow-hover);
  transform: translateY(-4px);
}

.favorite-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--profile-light);
}

.favorite-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modern-favorite-card:hover .favorite-card-image img {
  transform: scale(1.1);
}

.favorite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(69, 184, 172, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  gap: 0.5rem;
}

.modern-favorite-card:hover .favorite-overlay {
  opacity: 1;
}

.favorite-remove-form {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.favorite-remove-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--profile-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.favorite-remove-btn:hover {
  background: var(--profile-danger);
  color: #fff;
  transform: scale(1.1);
}

.favorite-card-body {
  padding: 1.25rem;
}

.favorite-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--profile-text-light);
  margin-bottom: 0.75rem;
}

.favorite-category i {
  color: var(--profile-primary);
}

.favorite-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--profile-dark);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.favorite-card-title a {
  color: var(--profile-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.favorite-card-title a:hover {
  color: var(--profile-primary);
}

.favorite-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.favorite-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.favorite-price .price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--profile-primary);
}

.favorite-price .price-currency {
  font-size: 0.9rem;
  color: var(--profile-text);
}

.favorite-time-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--profile-light);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--profile-text);
}

.favorite-time-badge i {
  font-size: 0.7rem;
}

/* ============= MODERN SELLER DASHBOARD ================ */

.modern-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--profile-shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--profile-shadow-hover);
  transform: translateY(-2px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.stat-icon-primary {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
}

.stat-icon-info {
  background: linear-gradient(135deg, var(--profile-info) 0%, #138496 100%);
}

.stat-icon-success {
  background: linear-gradient(135deg, var(--profile-success) 0%, #218838 100%);
}

.stat-icon-warning {
  background: linear-gradient(135deg, var(--profile-warning) 0%, #e0a800 100%);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--profile-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--profile-text-light);
  font-weight: 500;
}

.modern-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.modern-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--profile-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-product-card:hover {
  box-shadow: var(--profile-shadow-hover);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--profile-light);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modern-product-card:hover .product-card-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(69, 184, 172, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  gap: 0.5rem;
}

.modern-product-card:hover .product-overlay {
  opacity: 1;
}

.product-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--profile-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--profile-dark);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.product-card-title a {
  color: var(--profile-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: var(--profile-primary);
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.product-price .price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--profile-primary);
}

.product-price .price-currency {
  font-size: 0.9rem;
  color: var(--profile-text);
}

.product-time-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-card-actions {
  padding: 1rem 1.25rem;
  background: var(--profile-light);
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--profile-border);
}

.product-card-actions .btn-modern {
  flex: 1;
  justify-content: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* ============= RESPONSIVE FAVORITES & PRODUCTS ================ */

@media (max-width: 768px) {
  .modern-favorites-grid,
  .modern-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .modern-stats-cards {
    grid-template-columns: 1fr;
  }
  
  .product-card-actions {
    flex-direction: column;
  }
  
  .product-card-actions .btn-modern {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .modern-favorites-grid,
  .modern-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============= MODERN SETTINGS PAGE ================ */

.modern-settings-page {
  padding: 0;
}

.modern-settings-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--profile-shadow);
  padding: 2rem;
}

.modern-form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--profile-border);
}

.modern-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section-header {
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--profile-dark);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.form-section-title i {
  color: var(--profile-primary);
  font-size: 1.5rem;
}

.form-section-description {
  font-size: 0.9rem;
  color: var(--profile-text-light);
  margin: 0;
}

.modern-form-group {
  margin-bottom: 1.5rem;
}

.modern-form-label {
  display: block;
  font-weight: 600;
  color: var(--profile-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.required {
  color: var(--profile-danger);
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--profile-text-light);
  font-size: 1.1rem;
  z-index: 1;
}

.modern-form-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid var(--profile-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.modern-form-input:focus {
  outline: none;
  border-color: var(--profile-primary);
  box-shadow: 0 0 0 3px rgba(69, 184, 172, 0.1);
}

.form-help-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--profile-text-light);
}

.modern-address-card {
  background: var(--profile-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid var(--profile-border);
  transition: all 0.3s ease;
  min-height: 200px;
}

.modern-address-card:hover {
  border-color: var(--profile-primary);
  box-shadow: 0 2px 8px rgba(69, 184, 172, 0.1);
}

.address-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--profile-border);
}

.address-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--profile-dark);
  font-size: 1rem;
}

.address-card-title i {
  color: var(--profile-primary);
  font-size: 1.25rem;
}

.address-card-body {
  min-height: 100px;
}

.address-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--profile-text-light);
}

.address-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
  display: block;
}

.address-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.address-selected {
  padding: 0.5rem 0;
}

.address-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--profile-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.address-title i {
  font-size: 1.1rem;
}

.address-details {
  color: var(--profile-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.address-details p {
  margin: 0.25rem 0;
}

.address-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--profile-border);
}

.address-card-actions .btn-modern {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.modern-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--profile-border);
}

.modern-close-account-section {
  text-align: right;
}

.close-account-link {
  color: var(--profile-danger);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.close-account-link:hover {
  color: #c82333;
  text-decoration: underline;
}

.close-account-link i {
  margin-right: 0.25rem;
}

/* ============= RESPONSIVE SETTINGS ================ */

/* ============= MODERN RADIO GROUP ================ */

.modern-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.modern-radio-item {
  flex: 1;
  min-width: 150px;
}

.modern-radio-item input[type="radio"] {
  display: none;
}

.modern-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--profile-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  font-weight: 500;
  color: var(--profile-text);
}

.modern-radio-label i {
  color: transparent;
  transition: color 0.3s ease;
}

.modern-radio-item input[type="radio"]:checked + .modern-radio-label {
  border-color: var(--profile-primary);
  background: rgba(69, 184, 172, 0.1);
  color: var(--profile-primary);
}

.modern-radio-item input[type="radio"]:checked + .modern-radio-label i {
  color: var(--profile-primary);
}

.modern-radio-label:hover {
  border-color: var(--profile-primary);
  background: rgba(69, 184, 172, 0.05);
}

/* ============= MODERN SOCIAL LINKS ================ */

.modern-social-link-item {
  background: var(--profile-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 2px solid var(--profile-border);
  transition: all 0.3s ease;
}

.modern-social-link-item:hover {
  border-color: var(--profile-primary);
  box-shadow: 0 2px 8px rgba(69, 184, 172, 0.1);
}

.modern-social-link-item select.modern-form-input {
  padding-left: 1rem;
}

@media (max-width: 768px) {
  .modern-settings-form {
    padding: 1.5rem;
  }
  
  .modern-form-actions {
    flex-direction: column;
  }
  
  .modern-form-actions .btn-modern {
    width: 100%;
  }
  
  .address-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .modern-radio-group {
    flex-direction: column;
  }
  
  .modern-radio-item {
    width: 100%;
  }
}

/* ============= MODERN ORDERS PAGE ================ */

.modern-orders-page {
  padding: 0;
}

.modern-order-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--profile-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-order-card:hover {
  box-shadow: var(--profile-shadow-hover);
}

.order-card-header {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.order-seller-info,
.order-number,
.order-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.order-seller-info i,
.order-number i,
.order-date i {
  font-size: 1rem;
}

.seller-name {
  font-weight: 600;
}

.order-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.order-card-body {
  padding: 1.5rem;
}

.order-product-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--profile-border);
  flex-wrap: wrap;
}

.order-product-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-details {
  flex: 1;
  min-width: 200px;
}

.order-product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--profile-dark);
  margin: 0 0 1rem 0;
}

.order-product-title a {
  color: var(--profile-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.order-product-title a:hover {
  color: var(--profile-primary);
}

.order-product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--profile-text);
}

.order-meta-item i {
  color: var(--profile-primary);
  font-size: 1rem;
}

.order-total {
  text-align: right;
  flex-shrink: 0;
}

.total-label {
  font-size: 0.875rem;
  color: var(--profile-text-light);
  margin-bottom: 0.5rem;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--profile-primary);
}

.order-address-info {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--profile-light);
  border-radius: 12px;
}

.address-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--profile-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-section h5 i {
  color: var(--profile-primary);
}

.address-section p {
  margin: 0.25rem 0;
  color: var(--profile-text);
  font-size: 0.9rem;
}

.tracking-number {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--profile-primary);
}

.tracking-number strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--profile-dark);
  font-size: 0.9rem;
}

.tracking-code {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--profile-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.order-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.order-actions .btn-modern {
  flex: 1;
  min-width: 150px;
  justify-content: center;
}

.order-card-footer {
  padding: 1.5rem;
  background: var(--profile-light);
  border-top: 2px solid var(--profile-border);
}

.order-status-section h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--profile-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-status-section h5 i {
  color: var(--profile-primary);
}

.order-cancelled-message {
  text-align: center;
  padding: 2rem;
}

.cancelled-icon {
  font-size: 3rem;
  color: var(--profile-danger);
  margin-bottom: 1rem;
}

.order-cancelled-message h6 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--profile-danger);
  margin-bottom: 1rem;
}

.order-cancelled-message p {
  color: var(--profile-text);
  margin-bottom: 1.5rem;
}

.cancelled-reasons {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
}

.cancelled-reasons ul {
  margin: 0.75rem 0 0 1.5rem;
  padding: 0;
  color: var(--profile-text);
}

.cancelled-reasons li {
  margin-bottom: 0.5rem;
}

/* ============= MODERN ORDER TIMELINE ================ */

.modern-order-timeline-container {
  padding: 1rem 0;
}

.timeline-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--profile-border);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  min-width: 120px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--profile-light);
  border: 3px solid var(--profile-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.timeline-step-icon i {
  font-size: 1.5rem;
  color: var(--profile-text-light);
  transition: color 0.3s ease;
}

.timeline-step.active .timeline-step-icon {
  background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-primary-dark) 100%);
  border-color: var(--profile-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(69, 184, 172, 0.3);
}

.timeline-step.active .timeline-step-icon i {
  color: #fff;
}

.timeline-step.completed .timeline-step-icon {
  background: linear-gradient(135deg, var(--profile-success) 0%, #218838 100%);
  border-color: var(--profile-success);
}

.timeline-step.completed .timeline-step-icon i {
  color: #fff;
}

.timeline-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--profile-text);
  transition: color 0.3s ease;
}

.timeline-step.active .timeline-step-label {
  color: var(--profile-primary);
}

.timeline-step.completed .timeline-step-label {
  color: var(--profile-success);
}

.timeline-connector {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--profile-success);
  z-index: 1;
  transform: translateX(50%);
}

/* ============= RESPONSIVE ORDERS ================ */

@media (max-width: 768px) {
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .order-product-info {
    flex-direction: column;
  }
  
  .order-product-image {
    width: 100%;
    height: 200px;
  }
  
  .order-total {
    text-align: left;
    width: 100%;
  }
  
  .order-actions {
    flex-direction: column;
  }
  
  .order-actions .btn-modern {
    width: 100%;
  }
  
  .timeline-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .timeline-wrapper::before {
    display: none;
  }
  
  .timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-width: auto;
  }
  
  .timeline-step-icon {
    margin: 0;
    flex-shrink: 0;
  }
  
  .timeline-connector {
    display: none;
  }
}
