/* ══ COSMEERA PREMIUM ACCOUNT REDESIGN ══ */

:root {
  --ac-primary: #E91E63;
  --ac-primary-rgb: 233, 30, 99;
  --ac-secondary: #FF4081;
  --ac-accent: #4CAF50;
  --ac-accent-light: rgba(76, 175, 80, 0.1);
  --ac-bg: #F8F9FA;
  --ac-card-bg: #FFFFFF;
  --ac-light-grey: #F1F3F5;
  --ac-border: #E9ECEF;
  --ac-text: #212529;
  --ac-text-muted: #6C757D;
  --ac-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ac-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --ac-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --ac-radius-sm: 8px;
  --ac-radius-md: 16px;
  --ac-radius-lg: 24px;
  --ac-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ac-header-height: 64px;
}



/* Ensure bottom nav is always on top of the profile drawer */
.bottom-nav {
  z-index: 2400 !important;
  background: var(--ac-card-bg) !important;
  border-top: 1px solid var(--ac-border) !important;
  transition: background 0.3s, border 0.3s;
}
.bottom-link {
  color: var(--ac-text-muted) !important;
}
.bottom-link i {
  color: var(--ac-text-muted) !important;
  transition: color 0.3s;
}
.bottom-link.active {
  color: var(--ac-primary) !important;
}
.bottom-link.active i {
  color: var(--ac-primary) !important;
}

/* Profile Overlay */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: var(--ac-transition);
}
.profile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Main Profile Drawer */
.profile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  background: var(--ac-bg);
  color: var(--ac-text);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--ac-shadow-lg);
  overflow: hidden;
}
.profile-drawer.open {
  right: 0;
}

/* Header Section */
.account-header {
  height: var(--ac-header-height);
  padding: 0 16px;
  background: var(--ac-card-bg);
  border-bottom: 1px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  transition: background 0.3s, border 0.3s;
}

.account-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-back-btn {
  background: none;
  border: none;
  color: var(--ac-text);
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ac-transition);
}
.account-back-btn:hover {
  background: var(--ac-light-grey);
}

.account-logo-wrap {
  display: flex;
  flex-direction: column;
}

.account-logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--ac-primary), var(--ac-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.account-logo-tagline {
  font-size: 0.6rem;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-action-btn {
  background: none;
  border: none;
  color: var(--ac-text);
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--ac-transition);
}
.account-action-btn:hover {
  background: var(--ac-light-grey);
}

.account-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--ac-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ac-card-bg);
}

/* Scroll Content */
.account-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px; /* Safe padding for bottom navigation */
}

/* Large Profile Card */
.profile-card-container {
  animation: slideUp 0.5s ease-out;
}

.profile-card-main {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--ac-transition);
}

.profile-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ac-primary);
}

.profile-card-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow-md);
}

.profile-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.profile-avatar-letter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac-primary) 0%, var(--ac-secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
  text-transform: uppercase;
}

.profile-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.profile-name-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-name-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ac-text);
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.member-badge {
  background: rgba(233, 30, 99, 0.08);
  color: var(--ac-primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(233, 30, 99, 0.15);
}

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

.profile-chevron-wrap {
  color: var(--ac-text-muted);
  font-size: 14px;
  padding-left: 4px;
}

/* Quick Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  animation: fadeIn 0.6s ease-out;
}

.stat-card {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  cursor: pointer;
  transition: var(--ac-transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-md);
}

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stat-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--ac-text-muted);
  font-weight: 600;
}

.stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ac-text);
  font-family: 'Outfit', sans-serif;
}

/* Stat color theme states */
.orders-color { background: rgba(233, 30, 99, 0.08); color: var(--ac-primary); }
.wishlist-color { background: rgba(239, 68, 68, 0.08); color: #EF4444; }
.chats-color { background: rgba(34, 197, 94, 0.08); color: #22C55E; }
.rewards-color { background: rgba(234, 179, 8, 0.08); color: #EAB308; }

/* Menu Section */
.menu-section {
  display: flex;
  flex-direction: column;
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  overflow: hidden;
  animation: fadeIn 0.7s ease-out;
}

.menu-card {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
  cursor: pointer;
  transition: var(--ac-transition);
  position: relative;
}
.menu-card:not(:last-child) {
  border-bottom: 1px solid var(--ac-border);
}
.menu-card:hover {
  background: var(--ac-light-grey);
}

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

/* Menu icons background colors */
.orders-bg { background: rgba(233, 30, 99, 0.08); color: var(--ac-primary); }
.chats-bg { background: rgba(34, 197, 94, 0.08); color: #22C55E; }
.wishlist-bg { background: rgba(239, 68, 68, 0.08); color: #EF4444; }
.address-bg { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.coupons-bg { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.cart-bg { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.notifications-bg { background: rgba(236, 72, 153, 0.08); color: #EC4899; }
.help-bg { background: rgba(14, 165, 233, 0.08); color: #0EA5E9; }
.support-bg { background: rgba(76, 175, 80, 0.08); color: var(--ac-accent); }

.menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac-text);
}

.menu-subtitle {
  font-size: 0.76rem;
  color: var(--ac-text-muted);
}

.menu-arrow {
  color: var(--ac-text-muted);
  font-size: 12px;
}

/* Seller Section Card */
.seller-card-container {
  animation: fadeIn 0.8s ease-out;
}

.seller-premium-card {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.04) 0%, rgba(255, 64, 129, 0.08) 100%);
  border: 1.5px dashed rgba(233, 30, 99, 0.25);
  border-radius: var(--ac-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--ac-shadow-sm);
  transition: var(--ac-transition);
  position: relative;
  overflow: hidden;
}

.seller-premium-card.verified {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.04) 0%, rgba(76, 175, 80, 0.08) 100%);
  border: 1.5px solid rgba(76, 175, 80, 0.25);
}

.seller-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.seller-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seller-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ac-text);
  font-family: 'Outfit', sans-serif;
}

.seller-subtitle {
  font-size: 0.78rem;
  color: var(--ac-text-muted);
  line-height: 1.4;
}

.seller-badge-verified {
  background: rgba(76, 175, 80, 0.15);
  color: #2E7D32;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.seller-btn-action {
  background: var(--ac-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--ac-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
  transition: var(--ac-transition);
}

.seller-btn-action:hover {
  background: var(--ac-secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}

.seller-premium-card.verified .seller-btn-action {
  background: var(--ac-accent);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.seller-premium-card.verified .seller-btn-action:hover {
  background: #388E3C;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

/* Settings Card Section */
.settings-card-container {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  padding: 16px;
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.9s ease-out;
}

.settings-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ac-border);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  cursor: pointer;
  transition: var(--ac-transition);
  color: var(--ac-text);
  font-size: 0.9rem;
}
.settings-item:not(:last-child) {
  border-bottom: 1px solid var(--ac-border);
}
.settings-item:hover {
  color: var(--ac-primary);
  padding-left: 8px;
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-item-left i {
  width: 16px;
  text-align: center;
  color: var(--ac-text-muted);
}
.settings-item:hover .settings-item-left i {
  color: var(--ac-primary);
}

.settings-item i.fa-chevron-right {
  font-size: 10px;
  color: var(--ac-text-muted);
}

.logout-item {
  color: #EF4444;
}
.logout-item:hover {
  color: #DC2626;
  padding-left: 8px;
}
.logout-item:hover .settings-item-left i {
  color: #DC2626;
}

/* Orders List Title & Cards inside drawer */
.orders-section-card {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  padding: 16px;
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 1s ease-out;
}

.orders-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ac-border);
}

/* Order List custom card override */
.order-card {
  background: var(--ac-light-grey) !important;
  border: 1px solid var(--ac-border) !important;
  border-radius: var(--ac-radius-sm) !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
  transition: var(--ac-transition) !important;
  color: var(--ac-text) !important;
}
.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow-sm);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-id {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ac-text);
}

.order-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.status-pending { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.status-completed, .status-delivered { background: rgba(34, 197, 94, 0.1); color: #22C55E; }
.status-cancelled { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

.order-items-preview {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed var(--ac-border);
  padding-top: 8px;
  margin-top: 8px;
}

.order-total-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--ac-primary);
}

/* Account Reusable Sub-Modals Styling */
.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ac-transition);
}

.account-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.account-modal-container {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-lg);
  width: 90%;
  max-width: 440px;
  max-height: 85dvh;
  overflow: hidden;
  box-shadow: var(--ac-shadow-lg);
  border: 1px solid var(--ac-border);
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.account-modal-overlay.open .account-modal-container {
  transform: translateY(0) scale(1);
}

.account-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ac-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ac-text);
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.account-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ac-text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ac-transition);
}
.account-modal-close:hover {
  background: var(--ac-light-grey);
  color: var(--ac-text);
}

.account-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Modals Forms styling */
.ac-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ac-form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ac-form-control {
  background: var(--ac-light-grey);
  border: 1.5px solid transparent;
  border-radius: var(--ac-radius-sm);
  padding: 12px 14px;
  color: var(--ac-text);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: var(--ac-transition);
}
.ac-form-control:focus {
  border-color: var(--ac-primary);
  background: var(--ac-card-bg);
}
.ac-form-control[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}

.ac-form-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ac-form-photo-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--ac-light-grey);
  border-radius: var(--ac-radius-md);
}

.ac-photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ac-primary);
  background: var(--ac-card-bg);
}

.ac-photo-picker-btn {
  background: var(--ac-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--ac-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ac-transition);
}
.ac-photo-picker-btn:hover {
  background: var(--ac-secondary);
}

.ac-btn-save {
  background: var(--ac-primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--ac-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
  transition: var(--ac-transition);
  margin-top: 10px;
}
.ac-btn-save:hover {
  background: var(--ac-secondary);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}



/* Accordion for FAQ Help Center */
.ac-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-faq-item {
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-sm);
  overflow: hidden;
}
.ac-faq-q {
  padding: 12px 16px;
  font-weight: 700;
  background: var(--ac-light-grey);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}
.ac-faq-a {
  padding: 12px 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ac-text-muted);
  border-top: 1px solid var(--ac-border);
  background: var(--ac-card-bg);
  display: none;
}

/* Coupon Modal design */
.ac-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coupon-item-card {
  border: 1.5px dashed var(--ac-primary);
  background: rgba(233, 30, 99, 0.02);
  border-radius: var(--ac-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.coupon-code-badge {
  background: var(--ac-primary);
  color: white;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 1px;
}
.coupon-desc {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ac-text);
}
.coupon-terms {
  font-size: 0.68rem;
  color: var(--ac-text-muted);
}

/* Address List layout */
.ac-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.address-item-card {
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  padding: 16px;
  background: var(--ac-card-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.address-tag {
  background: var(--ac-light-grey);
  color: var(--ac-text);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}
.address-name {
  font-size: 0.88rem;
  font-weight: 700;
}
.address-details {
  font-size: 0.78rem;
  color: var(--ac-text-muted);
  line-height: 1.4;
}
.address-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--ac-border);
  padding-top: 8px;
}
.address-act-btn {
  background: none;
  border: none;
  color: var(--ac-primary);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
}
.address-act-btn.delete {
  color: #EF4444;
}

/* Ripple Click Animations */
.ripple-container {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.15);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Skeletal Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--ac-light-grey) 25%, var(--ac-border) 37%, var(--ac-light-grey) 63%);
  background-size: 400% 100%;
  animation: skeletonLoading 1.4s ease infinite;
}
.skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

/* Keyframes animations */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes skeletonLoading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@keyframes slideUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop Styles Adaptation */
@media (min-width: 768px) {
  .profile-drawer {
    border-left: 1px solid var(--ac-border);
  }
}



/* ══ PROFILE CARD NEW STYLING ══ */
.profile-card-main-new {
  background: var(--ac-card-bg);
  border-radius: var(--ac-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border);
  position: relative;
  overflow: hidden;
  transition: var(--ac-transition);
}
.profile-card-main-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ac-primary);
}
.profile-avatar-container {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.profile-camera-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ac-primary);
  color: white;
  border: 2px solid var(--ac-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  box-shadow: var(--ac-shadow-sm);
  transition: var(--ac-transition);
  z-index: 5;
}
.profile-camera-btn:hover {
  background: var(--ac-secondary);
  transform: scale(1.1);
}
.profile-username-wrap {
  margin-top: -2px;
  margin-bottom: 2px;
}
.profile-username-text {
  font-size: 0.76rem;
  color: var(--ac-primary);
  font-weight: 700;
  font-family: monospace;
}
.profile-membersince-text {
  font-size: 0.72rem;
  color: var(--ac-text-muted);
  margin-top: 2px;
}
.edit-profile-btn-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ac-light-grey);
  color: var(--ac-text);
  border: 1px solid var(--ac-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--ac-transition);
}
.edit-profile-btn-pill:hover {
  background: var(--ac-primary);
  color: white;
  border-color: var(--ac-primary);
}
.profile-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.admin-badge-verified {
  background: rgba(59, 130, 246, 0.08);
  color: #3B82F6;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ══ ACTIVITY DASHBOARD & QUICK STATS ══ */
.stats-card-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats-section-title, .menu-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-card-new {
  background: var(--ac-card-bg);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: var(--ac-transition);
  box-shadow: var(--ac-shadow-sm);
}
.stat-card-new:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-md);
  border-color: var(--ac-primary);
}
.stat-val-new {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ac-text);
  margin-top: 6px;
  font-family: 'Outfit', sans-serif;
}
.stat-label-new {
  font-size: 0.65rem;
  color: var(--ac-text-muted);
  font-weight: 700;
  margin-top: 2px;
}
.cart-color { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.coupons-color { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.pending-color { background: rgba(245, 158, 11, 0.08); color: #D97706; }
.completed-color { background: rgba(34, 197, 94, 0.08); color: #16A34A; }
.cancelled-color { background: rgba(239, 68, 68, 0.08); color: #EF4444; }

/* ══ GENERAL MENU & NAVIGATION ICONS ══ */
.invite-bg { background: rgba(79, 70, 229, 0.08); color: #4F46E5; }
.rate-bg { background: rgba(234, 179, 8, 0.08); color: #EAB308; }
.feedback-bg { background: rgba(13, 148, 136, 0.08); color: #0D9488; }
.about-bg { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.terms-bg { background: rgba(75, 85, 99, 0.08); color: #4B5563; }
.privacy-bg { background: rgba(16, 185, 129, 0.08); color: #10B981; }

/* ══ ADMIN DASHBOARD CARD ══ */
.admin-card-container {
  animation: fadeIn 0.8s ease-out;
}
.admin-dashboard-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.admin-sub-btn {
  background: var(--ac-light-grey);
  border: 1px solid var(--ac-border);
  color: var(--ac-text);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--ac-transition);
}
.admin-sub-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3B82F6;
}

/* ══ REALTIME CHAT PREMIUM STYLING ══ */
.chat-window-box {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 70dvh;
}
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ac-light-grey);
  border-radius: 12px;
  border: 1px solid var(--ac-border);
}
.chat-msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.4;
  position: relative;
  animation: slideUp 0.3s ease-out;
  word-break: break-word;
}
.chat-msg-bubble.user {
  align-self: flex-end;
  background: var(--ac-primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-msg-bubble.admin {
  align-self: flex-start;
  background: var(--ac-card-bg);
  color: var(--ac-text);
  border: 1px solid var(--ac-border);
  border-bottom-left-radius: 4px;
}
.chat-msg-time {
  font-size: 0.62rem;
  opacity: 0.7;
  display: block;
  text-align: right;
  margin-top: 4px;
}
.chat-msg-status {
  font-size: 0.62rem;
  text-align: right;
  margin-top: 2px;
  display: block;
}
.chat-msg-status.seen {
  color: #4CAF50;
  font-weight: 700;
}
.chat-msg-img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
  object-fit: cover;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.chat-file-attach-btn {
  background: var(--ac-light-grey);
  color: var(--ac-text);
  border: 1px solid var(--ac-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ac-transition);
}
.chat-file-attach-btn:hover {
  background: var(--ac-primary);
  color: white;
  border-color: var(--ac-primary);
}
.chat-msg-field {
  flex: 1;
  background: var(--ac-card-bg);
  border: 1px solid var(--ac-border);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--ac-text);
  outline: none;
  font-size: 0.88rem;
  transition: var(--ac-transition);
}
.chat-msg-field:focus {
  border-color: var(--ac-primary);
}
.chat-send-btn-round {
  background: var(--ac-primary);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ac-shadow-sm);
  transition: var(--ac-transition);
}
.chat-send-btn-round:hover {
  background: var(--ac-secondary);
  transform: scale(1.05);
}
.typing-indicator-chat {
  font-size: 0.72rem;
  color: var(--ac-text-muted);
  font-style: italic;
  padding-left: 6px;
  height: 16px;
  margin-top: 4px;
}

/* ══ ORDER STATUS TIMELINE ══ */
.order-tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px;
  position: relative;
  margin: 12px 0;
}
.order-tracking-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background: var(--ac-border);
}
.timeline-step {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.timeline-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ac-light-grey);
  color: var(--ac-text-muted);
  border: 2px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: var(--ac-transition);
  flex-shrink: 0;
}
.timeline-step.active .timeline-icon {
  background: var(--ac-primary);
  color: white;
  border-color: var(--ac-primary);
  box-shadow: 0 0 10px rgba(233, 30, 99, 0.4);
}
.timeline-step.completed .timeline-icon {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}
.timeline-info {
  display: flex;
  flex-direction: column;
}
.timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ac-text);
}
.timeline-step.active .timeline-title {
  color: var(--ac-primary);
}
.timeline-desc {
  font-size: 0.68rem;
  color: var(--ac-text-muted);
  margin-top: 1px;
}

/* ══ INVOICE LAYOUT STYLE (PRINTABLE) ══ */
.invoice-card-container {
  padding: 24px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #E91E63;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.invoice-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #E91E63;
}
.invoice-meta-info {
  text-align: right;
  font-size: 0.78rem;
}
.invoice-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.8rem;
}
.invoice-table th, .invoice-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.invoice-table th {
  background: #fdf2f4;
  color: #E91E63;
  font-weight: 700;
}
.invoice-total-row {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  padding-top: 12px;
  border-top: 1.5px solid #eee;
}

/* ══ ADDRESS EDIT AND TOGGLE DESIGN ══ */
.default-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.set-default-btn {
  background: none;
  border: none;
  color: var(--ac-text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--ac-transition);
}
.set-default-btn:hover {
  color: var(--ac-primary);
}

/* ══ COMPACT CROP MODAL DESIGN ══ */
.crop-image-container {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-image-container img {
  max-width: 100%;
  display: block;
}

