/* TYIAM - Modern Profile Page Styles (Matching Reference Design) */

.profile-section {
  background-color: #f8fafc;
  padding: 32px 0 60px;
  min-height: calc(100vh - 120px);
}

.profile-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar (Right side in RTL) ── */
.profile-sidebar {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 20px 16px;
  position: sticky;
  top: 80px;
}

.profile-sidebar-header {
  position: relative;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-edit-btn {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border: none;
  color: #db2777;
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
}

.profile-edit-btn:hover {
  background: #fdf2f8;
}

.user-display-name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.user-display-phone {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
  direction: ltr;
}

.account-type-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #f1f5f9;
}

.account-type-label {
  color: #64748b;
  font-weight: 600;
}

.account-type-badge {
  color: #0f172a;
  font-weight: 700;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Sidebar Nav Links (Matching Reference Image) */
.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  direction: rtl;
  text-align: right;
}

.profile-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  direction: rtl;
  text-align: right;
}

.profile-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.profile-nav-item.active {
  background: #fdf2f8;
  color: #db2777;
  border: none;
  font-weight: 700;
}

.profile-nav-item span {
  order: 2;
  margin-right: 0;
  margin-left: auto;
  text-align: right;
}

.nav-icon-wrap {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  transition: color 0.2s;
  order: 1; /* Icon on FAR RIGHT in RTL */
}

.profile-nav-item.active .nav-icon-wrap {
  color: #db2777;
}

.profile-nav-item.logout-item {
  color: #e11d48;
  margin-top: 6px;
}

.profile-nav-item.logout-item .nav-icon-wrap {
  color: #e11d48;
}

.profile-nav-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 6px;
}

.logout-item {
  color: #ef4444 !important;
}

.logout-item .nav-icon-wrap {
  color: #ef4444 !important;
}

.logout-item:hover {
  background: #fef2f2 !important;
}

/* ── Main Dashboard Content (Left side in RTL) ── */
.profile-main {
  min-width: 0;
}

.profile-tab {
  display: none;
}

.profile-tab.active {
  display: block;
}

.dashboard-section-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 24px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.dash-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.dash-header-link {
  color: #64748b;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.dash-header-link:hover {
  color: #0f172a;
}

/* Activities 4x2 Grid Tiles */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.stat-tile {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-tile-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #ffe4e6; color: #e11d48; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-amber { background: #fff4eb; color: #c2410c; }

.tile-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.box-orange { background: #fff4eb; color: #ff7900; }
.box-gold { background: #fef3c7; color: #d97706; }

.stat-tile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  text-align: right;
  margin-top: 4px;
}

.stat-tile-subtitle {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  margin-top: 2px;
}

/* Bottom Colored Strips */
.stat-tile-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 0 0 16px 16px;
}

.bar-blue { background: #1e3a8a; }
.bar-green { background: #16a34a; }
.bar-red { background: #dc2626; }
.bar-purple { background: #7c3aed; }
.bar-yellow { background: #eab308; }
.bar-amber { background: #ff7900; }
.bar-orange { background: #ff7900; }
.bar-gold { background: #eab308; }

/* Active Order Table */
.order-active-table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
}

.order-active-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.order-active-table th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.order-active-table td {
  padding: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
}

.detail-link-btn {
  background: #f1f5f9;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.detail-link-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.delivery-code-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  display: inline-block;
}

/* Horizontal Stepper */
.order-stepper-container {
  margin-top: 32px;
  padding: 20px 10px 10px;
  position: relative;
}

.stepper-track {
  position: absolute;
  top: 42px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  width: 0%;
  background: #ec4899;
  transition: width 0.4s ease;
}

.stepper-nodes-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 80px;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
  transition: all 0.3s;
}

.step-node.active .step-circle {
  border-color: #ec4899;
  background: #fdf2f8;
  color: #db2777;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.step-node.completed .step-circle {
  border-color: #10b981;
  background: #dcfce7;
  color: #16a34a;
}

.step-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.step-node.active .step-title {
  color: #db2777;
  font-weight: 800;
}

.step-node.completed .step-title {
  color: #16a34a;
  font-weight: 700;
}

.view-more-orders-wrap {
  text-align: center;
  margin-top: 32px;
}

.view-more-orders-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px 32px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.view-more-orders-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

/* Other Tabs (Orders, Edit, Addresses, Wishlist) Styling */
.tab-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.tab-header h2 {
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-header h2 i {
  color: #db2777;
}

.order-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.order-code {
  font-weight: 900;
  font-size: 15px;
  color: #db2777;
}

.order-date {
  font-size: 12px;
  color: #94a3b8;
}

.order-card-body {
  padding: 16px 18px;
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.order-total {
  font-size: 16px;
  font-weight: 900;
  color: #db2777;
}

.profile-form {
  max-width: 600px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

.profile-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 24px 0;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .profile-section {
    padding: 16px 0 40px;
  }
  .order-stepper-container {
    overflow-x: auto;
  }
  .stepper-nodes-row {
    min-width: 480px;
  }
  .stepper-track {
    min-width: 440px;
  }
}

/* ── Orders Tab Card & Status Filters (Matching Reference Design) ── */
.orders-page-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 20px 24px;
}

.orders-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.orders-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.orders-title-wrap i {
  font-size: 20px;
  color: #64748b;
}

.orders-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 14px;
  gap: 10px;
  width: 320px;
  max-width: 100%;
}

.orders-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.orders-search-box .search-ico {
  color: #94a3b8;
  font-size: 14px;
}

.filter-gear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.orders-status-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-status-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 8px 16px;
  position: relative;
  transition: color 0.2s;
}

.status-tab-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f1f5f9;
  color: #475569;
  transition: all 0.2s;
}

.icon-all { background: #fef3c7; color: #d97706; }
.icon-progress { background: #e0f2fe; color: #0284c7; }
.icon-completed { background: #dcfce7; color: #16a34a; }
.icon-cancelled { background: #ffe4e6; color: #e11d48; }
.icon-returned { background: #f3e8ff; color: #7e22ce; }

.order-status-tab:hover .status-tab-icon {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-status-tab.active {
  color: #1e293b;
  font-weight: 800;
}

.order-status-tab.active .status-tab-line {
  position: absolute;
  bottom: -16px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: #db2777;
  border-radius: 3px 3px 0 0;
}

/* Orders Table Card & Rows */
.orders-table-card {
  background: transparent;
}

.orders-table-header-row {
  display: grid;
  grid-template-columns: 140px 130px 180px 160px 140px 1fr;
  gap: 12px;
  padding: 14px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  margin-bottom: 12px;
  align-items: center;
}

.order-row-card {
  display: grid;
  grid-template-columns: 140px 130px 180px 160px 140px 1fr;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  margin-bottom: 10px;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.order-row-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.order-status-badge-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  width: 100%;
}

.status-pill-completed { background: #dcfce7; color: #15803d; }
.status-pill-progress  { background: #e0f2fe; color: #0284c7; }
.status-pill-cancelled { background: #ffe4e6; color: #e11d48; }
.status-pill-returned  { background: #f3e8ff; color: #7e22ce; }
.status-pill-pending   { background: #fef3c7; color: #b45309; }

.view-detail-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}

.view-detail-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

@media (max-width: 900px) {
  .orders-table-header-row {
    display: none;
  }
  .order-row-card {
    grid-template-columns: 1fr 1fr;
    text-align: right;
    gap: 10px;
    padding: 16px;
  }
}

/* ── User Information Page Cards (Matching Reference Image) ── */
.user-info-page-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 24px;
}

.user-info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.user-info-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.user-info-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .user-info-boxes-grid {
    grid-template-columns: 1fr;
  }
}

.info-tile-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-tile-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.info-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.info-tile-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

.info-tile-edit-btn {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  padding: 3px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.info-tile-edit-btn:hover {
  background: #db2777;
  color: #ffffff;
}

.info-tile-value {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  word-break: break-word;
}

/* ── Addresses Section Styles (Matching Reference Design) ── */
.addresses-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.addresses-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.add-address-btn {
  background: #db2777;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.2s;
}

.add-address-btn:hover {
  background: #be185d;
}

.addresses-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-item-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.address-item-card.selected {
  background: #fff5f8;
  border-color: #f472b6;
}

.address-check-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: #db2777;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3);
}

.address-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.address-card-full {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 14px;
}

.address-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.address-meta-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
}

.address-meta-tag {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.address-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-addr-btn {
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.edit-addr-btn:hover {
  background: #1e293b;
}

.delete-addr-btn {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.delete-addr-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ── Add Address Form Card (Matching Reference Design) ── */
.add-address-form-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.add-address-form-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}

.address-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.address-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .address-form-grid-3,
  .address-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-submit-row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.add-address-submit-btn {
  background: #db2777;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}

.add-address-submit-btn:hover {
  background: #be185d;
}

/* ── Wishlist Section Styles ── */
.wishlist-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.wishlist-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.wishlist-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.wishlist-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f8fafc;
  overflow: hidden;
}

.wishlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wishlist-item-card:hover .wishlist-thumb-img {
  transform: scale(1.05);
}

.wishlist-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  color: #ef4444;
  border: 1px solid #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.wishlist-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

.wishlist-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.wishlist-category-tag {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.wishlist-product-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.wishlist-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.wishlist-price-box {
  display: flex;
  flex-direction: column;
}

.wishlist-old-price {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.wishlist-current-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #db2777;
}

.wishlist-view-btn {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wishlist-view-btn:hover {
  background: #db2777;
  color: #ffffff;
}

/* ── Latest Active Order (Matching Reference Image) ── */
.order-info-divided-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.order-info-row.border-none {
  border-bottom: none;
}

.order-info-row-block {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
}

.info-row-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.info-row-label-address {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.info-row-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
}

.info-row-address-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.7;
  font-weight: 600;
}

.info-row-delivery-code {
  background: #fef9c3;
  color: #854d0e;
  font-size: 13.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 8px;
  border: 1px solid #fef08a;
}

/* Vertical Stepper Timeline (Compact & Clean) */
/* ── Active Order Tracker Stepper (Horizontal on Desktop, Vertical on Mobile) ── */
@media (min-width: 769px) {
  .active-order-vertical-stepper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 24px 16px 10px !important;
    margin-top: 20px !important;
    position: relative !important;
    direction: rtl !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .v-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }

  .v-step-circle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    transition: all 0.3s ease !important;
  }

  .v-step-item.completed .v-step-circle,
  .v-step-item.active .v-step-circle {
    background: #db2777 !important;
    border-color: #db2777 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.3) !important;
  }

  .v-step-text {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .v-step-item.completed .v-step-text,
  .v-step-item.active .v-step-text {
    color: #db2777 !important;
    font-weight: 800 !important;
  }

  .v-step-line {
    flex: 1 1 auto !important;
    height: 0 !important;
    width: auto !important;
    border-top: 2px dashed #e2e8f0 !important;
    border-right: none !important;
    margin: 20px -10px 0 -10px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .v-step-line.completed {
    border-top-style: solid !important;
    border-top-color: #db2777 !important;
  }
}

@media (max-width: 768px) {
  .active-order-vertical-stepper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 14px;
  }

  .v-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
  }

  .v-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #fbcfe8;
    color: #db2777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
  }

  .v-step-item.completed .v-step-circle,
  .v-step-item.active .v-step-circle {
    background: #db2777;
    border-color: #db2777;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(219, 39, 119, 0.28);
  }

  .v-step-text {
    font-size: 13px;
    font-weight: 700;
    color: #db2777;
  }

  .v-step-item.completed .v-step-text,
  .v-step-item.active .v-step-text {
    color: #db2777;
    font-weight: 800;
  }

  .v-step-line {
    width: 2px;
    height: 22px;
    border-right: 2px dashed #fbcfe8;
    margin-right: 18px;
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .v-step-line.completed {
    border-right-style: solid;
    border-right-color: #db2777;
  }
}

/* ── VIP Mobile Responsive Overhauls for Profile (max-width: 992px) ── */
@media (max-width: 992px) {
  .profile-section {
    padding: 12px 10px 80px;
    overflow-x: hidden;
  }

  .profile-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Hide Inline Sidebar on Mobile - Navigation moved to Top Hamburger Menu */
  .profile-sidebar {
    display: none !important;
  }

  /* Profile Content Area takes Full 100% Width on Mobile */
  .profile-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  /* Activities 4x2 Grid Tiles -> 2 Columns on Mobile */
  .activities-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-tile {
    min-height: auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  .stat-badge {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  .stat-tile-title {
    font-size: 12px !important;
  }

  .stat-tile-subtitle {
    font-size: 10px !important;
  }

  /* User Info Boxes 1-column on Mobile */
  .user-info-boxes-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Wishlist Grid 2-column on Mobile */
  .wishlist-grid-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .wishlist-thumb-wrap {
    height: 130px !important;
  }

  .wishlist-product-title {
    font-size: 11.5px !important;
    height: 34px !important;
  }

  .wishlist-card-body {
    padding: 10px !important;
  }

  .wishlist-view-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}

/* ── Orders Page Overhaul (Matching Reference Image) ── */
.order-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.order-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 12px;
}

.order-search-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
}

.order-search-input-wrap .search-icon {
  color: #64748b;
  font-size: 16px;
}

.gear-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gear-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Status Filter Tabs Card */
.order-status-tabs-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 10px 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.status-tabs-scroll-row {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2px !important;
  width: 100% !important;
  padding-bottom: 4px !important;
}

.status-tab-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  width: 100%;
}

.status-tab-icon-wrap {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  transition: color 0.2s ease;
}

.status-tab-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.status-tab-indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.status-tab-item.active .status-tab-label {
  color: #db2777;
  font-weight: 800;
}

.status-tab-item.active .status-tab-icon-wrap {
  color: #db2777;
}

.status-tab-item.active .status-tab-indicator {
  background: #db2777;
}

/* Order Item Cards (Matching Reference Image) */
.reference-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  direction: rtl !important;
  text-align: right !important;
}

.order-card-status-header {
  display: flex !important;
  justify-content: flex-start !important; /* Top-Right in RTL */
  align-items: center !important;
  margin-bottom: 14px !important;
  direction: rtl !important;
}

.order-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.order-status-tag.completed {
  color: #db2777;
}

.order-status-tag.completed .status-tag-circle {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #db2777;
}

.order-status-tag.progress {
  color: #0284c7;
}

.order-status-tag.progress .status-tag-circle {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

.order-status-tag.cancelled {
  color: #dc2626;
}

.order-status-tag.cancelled .status-tag-circle {
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  color: #dc2626;
}

.status-tag-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.order-card-rows-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.order-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.order-card-row.border-none {
  border-bottom: none;
}

.order-card-row .row-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.order-card-row .row-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.order-card-detail-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px 16px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.order-card-detail-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
  .user-info-page-card,
  .orders-page-card {
    padding: 14px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  /* Orders Filter Tabs Horizontal Touch-Scroll on Mobile */
  .orders-status-filters {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    scrollbar-width: none !important;
  }

  .orders-status-filters::-webkit-scrollbar {
    display: none !important;
  }

  .filter-pill-btn {
    flex: 0 0 auto !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  /* Orders Header & Search Box Full Width on Mobile */
  .orders-card-top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .orders-search-wrap {
    width: 100% !important;
  }

  .orders-search-box {
    width: 100% !important;
  }

  /* Address Management Mobile Card Styling */
  .address-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .address-card-box {
    padding: 14px !important;
  }

  .address-card-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .address-card-btn {
    flex: 1 1 auto !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Field Edit Modal Mobile Responsiveness */
  .field-modal-card {
    width: 92% !important;
    max-width: 440px !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  /* Cardex Table Mobile Responsiveness */
  .cardex-table-wrap {
    overflow-x: auto !important;
  }

  /* Last Invoiced Page Mobile Responsiveness */
  .invoiced-page-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

/* Mobile Navigation Drawer Custom Styling (Strict RTL Right-Aligned) */
.mobile-nav-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: 270px !important;
  max-width: 82vw !important;
  background: #ffffff !important;
  padding: 14px 10px !important;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12) !important;
  direction: rtl !important;
  text-align: right !important;
  overflow-y: auto !important;
}

.mobile-drawer-header {
  display: none !important;
}

.mobile-drawer-top-bar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 0 4px 10px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  direction: rtl !important;
}

.mobile-drawer-close-btn {
  background: #f1f5f9 !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  color: #64748b !important;
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.mobile-drawer-close-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.mobile-drawer-link {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-bottom: 2px !important;
  direction: rtl !important;
  text-align: right !important;
}

.mobile-drawer-link:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.mobile-drawer-link.active {
  background: #fdf2f8 !important;
  color: #db2777 !important;
  border: none !important;
  font-weight: 700 !important;
}

.mobile-drawer-link span {
  order: 2 !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: right !important;
}

.mobile-drawer-link .nav-icon-wrap {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #64748b !important;
  order: 1 !important; /* Far Right in RTL */
}

.mobile-drawer-link.active .nav-icon-wrap {
  color: #db2777 !important;
}

.mobile-drawer-link.logout-item {
  color: #e11d48 !important;
}

.mobile-drawer-link.logout-item .nav-icon-wrap {
  color: #e11d48 !important;
}

