* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 60px;
}

.search-bar {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 10px;
  width: 250px;
  border: 2px solid #5B22D4;
  border-right: none;
  border-radius: 25px 0 0 25px;
  outline: none;
  font-size: 16px;
  box-sizing: border-box;
}

.search-btn {
  padding: 10px 20px;
  border: 2px solid #5B22D4;
  border-left: none;
  background-color: #5B22D4;
  color: #fff;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: #4a1cb3;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav ul li {
  display: flex;
  align-items: center;
}

.nav ul li a {
  text-decoration: none;
  color: #5B22D4;
  font-weight: 600;
  font-size: 16px;
}

.nav ul li a.active {
  color: #C5ED51;
}

.nav ul li a:hover {
  text-decoration: underline;
}

.user-menu {
  position: relative;
}

.user-btn, .design-btn {
  background: #fff !important;
  border: 2px solid #6a0dad !important;
  border-radius: 25px !important;
  padding: 8px 24px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #6a0dad !important;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  box-shadow: none;
  margin: 0 8px !important;
  letter-spacing: 0.2px;
}
.user-btn:hover, .design-btn:hover, .user-btn:focus {
  background: #f6f2ff !important;
  color: #4a1cb3 !important;
  border-color: #4a1cb3 !important;
}
.user-menu .user-btn {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #6a0dad !important;
  border-radius: 25px !important;
  border: 2px solid #6a0dad !important;
  background: #fff !important;
  margin: 0 8px !important;
}

/* --- Account Dropdown Styles (match homepage) --- */
.user-menu .dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(90,34,212,0.18);
  min-width: 220px;
  padding: 18px 0 10px 0;
  z-index: 1002;
  border: none;
  opacity: 1;
  transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.user-menu .dropdown.show {
  display: block;
}
.user-menu .dropdown-item {
  display: block;
  padding: 14px 32px 10px 32px;
  color: #7B3FF2;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border: none;
  background: none;
  transition: background 0.18s, color 0.18s;
  border-radius: 12px;
  margin-bottom: 2px;
}
.user-menu .dropdown-item:hover {
  background: #f5f0ff;
  color: #5B22D4;
}

/* Remove arrow down from account button */
.user-menu .user-btn:after,
.user-btn:after {
  content: none !important;
}

/* Remove/override old dropdown styles */
.dropdown {
  display: none !important;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(90,34,212,0.18);
  min-width: 220px;
  padding: 18px 0 10px 0;
  z-index: 1002;
  border: none;
  opacity: 1 !important;
  transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.dropdown.show {
  display: block !important;
}
.dropdown-item {
  display: block;
  padding: 14px 32px 10px 32px;
  color: #7B3FF2;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  border: none;
  background: none;
  transition: background 0.18s, color 0.18s;
  border-radius: 12px;
  margin-bottom: 2px;
}
.dropdown-item:hover {
  background: #f5f0ff;
  color: #5B22D4;
}

.dropdown-item.active {
  background-color: #f9f9f9;
  font-weight: bold;
}

.dropdown.show {
  display: block;
  opacity: 1;
}

.content-wrapper {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 250px;
  background-color: #fff;
  padding: 20px 0;
  border-right: 1px solid #eee;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 5px 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #5B22D4;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar-link:hover {
  background-color: #f9f9f9;
}

.sidebar-link.active {
  color: #C5ED51;
  background-color: #f0f0f0;
  font-weight: bold;
}

.sidebar-link .icon {
  font-size: 18px;
}

.main-content {
  flex: 1;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  color: #5B22D4;
  font-size: 28px;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.profile-container {
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-header {
  text-align: center;
  margin-bottom: 20px;
}

.profile-header h2 {
  color: #5B22D4;
  font-size: 24px;
  margin-bottom: 5px;
}

.profile-header p {
  color: #666;
  font-size: 14px;
}

.profile-avatar {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #ddd;
  margin-bottom: 10px;
  border: 4px solid #5B22D4;
  transition: transform 0.3s;
}

.avatar:hover {
  transform: scale(1.1);
}

.upload-label {
  color: #5B22D4;
  font-size: 12px;
  cursor: pointer;
}

.upload-label:hover {
  text-decoration: underline;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #5B22D4;
  font-weight: 600;
  font-size: 16px;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #5B22D4;
  box-shadow: 0 0 5px rgba(91, 34, 212, 0.3);
}

.form-group input::placeholder {
  color: #999;
}

.date-picker {
  padding-right: 35px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%235B22D4"><path d="M5 3v1H3V3h2zm-2 8h2v-1H3v1zm5-8h2v1H8V3zm-2 8h2v-1H6v1zm5-8h2v1h-2V3zm-2 8h2v-1h-2v1zm5-8h2v1h-2V3zm-2 8h2v-1h-2v1zm-8 5h10V5H5v10zm-1-11h12v12H4V4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #5B22D4;
  font-size: 14px;
}

.radio-group input[type="radio"] {
  accent-color: #5B22D4;
  transform: scale(1.2);
}

.save-btn {
  padding: 14px 40px;
  background: linear-gradient(90deg, #5B22D4 0%, #7A3DF2 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  align-self: flex-end;
  width: 120px;
  text-align: center;
}

.save-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #4a1cb3 0%, #6a2de2 100%);
}

/* Flatpickr custom styles */
.flatpickr-calendar {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #5B22D4;
  border-color: #5B22D4;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #C5ED51;
}

.flatpickr-day:hover {
  background: #f0f0f0;
}

.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown {
  color: #5B22D4;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .numInputWrapper:hover {
  background: #f0f0f0;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: #5B22D4;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: #f0f0f0;
}

/* Sidebar action button style (like 'Thiết Kế Ngay') */
.sidebar-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #5B22D4;
  border-radius: 16px;
  color: #5B22D4;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  margin-bottom: 18px;
  text-decoration: none;
  box-shadow: 0 4px 16px 0 rgba(91,34,212,0.07);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}
.sidebar-action-btn .icon {
  font-size: 22px;
}
.sidebar-action-btn:hover {
  background: #f9f6ff;
  color: #7A3DF2;
  box-shadow: 0 6px 20px 0 rgba(91,34,212,0.12);
}
.sidebar-action-btn.active {
  background: #f9f6ff;
  color: #C5ED51;
  border-color: #C5ED51;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .search-bar {
    flex-direction: column;
    width: 100%;
  }

  .search-input {
    width: 100%;
    border-radius: 25px;
    margin-bottom: 10px;
    border-right: 2px solid #5B22D4;
  }

  .search-btn {
    width: 100%;
    border-radius: 25px;
    border-left: 2px solid #5B22D4;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .user-menu {
    margin-top: 10px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .sidebar ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .sidebar ul li {
    padding: 10px;
  }

  .sidebar-link {
    padding: 8px 10px;
  }

  .main-content {
    padding: 20px;
  }

  .profile-container {
    padding: 20px;
  }

  .profile-form {
    padding: 15px;
  }

  .save-btn {
    width: 100%;
  }
}

/* Modal overlay for review popup */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.25); /* Dim background */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex !important;
}

.modal-content {
  background: #fff;
  margin: auto;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(90,34,212,0.15);
  max-width: 420px;
  width: 95vw;
  padding: 32px 24px;
  position: relative;
  animation: popup-fade-in 0.2s;
}

@keyframes popup-fade-in {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Review Modal Custom Styles */
.review-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5E20E1;
  text-align: left;
  margin-bottom: 0.5rem;
}
.review-divider {
  width: 100%;
  height: 3px;
  background: #4CAF50;
  margin-bottom: 1.2rem;
  border-radius: 2px;
}
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.avatar.large {
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
}
.username.purple.bold {
  color: #5E20E1;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}
.review-label {
  font-weight: 700;
  color: #5E20E1;
  margin-bottom: 0.2rem;
  text-align: left;
}
.review-input {
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  color: #5E20E1;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  margin-bottom: 0.5rem;
  background: #fff;
  transition: box-shadow 0.2s, border 0.2s;
}
.review-input:focus {
  border: 1.5px solid #5E20E1;
  box-shadow: 0 6px 12px rgba(94,32,225,0.10);
  outline: none;
}
.star-rating.centered {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0.5rem 0 1rem 0;
}
.star-rating i {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating i.selected,
.star-rating i:hover,
.star-rating i:hover ~ i {
  color: #FFD700;
}
.review-submit-btn {
  width: 100%;
  padding: 14px 0;
  border-radius: 25px;
  background: linear-gradient(90deg, #8A4AF3 0%, #5E20E1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  margin-top: 1.2rem;
  box-shadow: 0 4px 12px rgba(90,34,212,0.10);
  transition: background 0.2s, transform 0.2s;
}
.review-submit-btn:hover {
  background: linear-gradient(90deg, #5E20E1 0%, #8A4AF3 100%);
  transform: translateY(-2px);
}
.review-submit-btn:active {
  transform: translateY(0);
}
.review-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}
/* Extra spacing for modal form */
#reviewForm .form-group {
  margin-bottom: 1.1rem;
}

#reviewForm .form-group {
  margin-bottom: 20px;
}

/* Review Modal Styles */
.review-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.review-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-modal-content {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

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

.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #5B22D4, #7C3AED);
  color: white;
  border-radius: 15px 15px 0 0;
}

.review-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close-review-modal {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close-review-modal:hover {
  color: #ff6b6b;
}

.review-modal-body {
  padding: 25px;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #5B22D4;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5B22D4;
}

.review-user-info span {
  font-weight: 600;
  color: #5B22D4;
  font-size: 16px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 5px;
}

.review-input {
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: #fff;
}

.review-input:focus {
  outline: none;
  border-color: #5B22D4;
  box-shadow: 0 0 0 3px rgba(91, 34, 212, 0.1);
}

.review-textarea {
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s;
}

.review-textarea:focus {
  outline: none;
  border-color: #5B22D4;
  box-shadow: 0 0 0 3px rgba(91, 34, 212, 0.1);
}

.star-rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.star-rating i {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.selected {
  color: #ffd700;
  transform: scale(1.1);
}

.star-rating i:hover ~ i {
  color: #ddd;
}

.review-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.review-cancel-btn {
  padding: 12px 24px;
  border: 2px solid #6c757d;
  background-color: transparent;
  color: #6c757d;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.review-cancel-btn:hover {
  background-color: #6c757d;
  color: white;
}

.review-submit-btn {
  padding: 12px 24px;
  border: none;
  background: linear-gradient(135deg, #5B22D4, #7C3AED);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.review-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(91, 34, 212, 0.3);
}

.review-submit-btn:active {
  transform: translateY(0);
}

/* Order History Review Button Styles */
.review-btn {
  background: linear-gradient(135deg, #5B22D4, #7C3AED);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  display: inline-block;
}

.review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 34, 212, 0.3);
}

.review-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Design for Review Modal */
@media (max-width: 768px) {
  .review-modal-content {
    width: 95%;
    margin: 20px;
    max-height: 95vh;
  }
  
  .review-modal-header {
    padding: 15px 20px;
  }
  
  .review-modal-body {
    padding: 20px;
  }
  
  .review-actions {
    flex-direction: column;
  }
  
  .review-cancel-btn,
  .review-submit-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- HEADER DROPDOWN FIX: Make header dropdown work like homepage --- */
.header .dropdown {
  display: none !important;
  opacity: 1 !important;
  transition: none !important;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  border: 1.5px solid #eee;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(106,13,173,0.08);
  min-width: 180px;
  z-index: 1001;
  padding: 10px 0;
  margin-top: 5px;
}
.header .dropdown.show {
  display: block !important;
}

/* Override the old dropdown styles */
.dropdown {
  display: none !important;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  border: 1.5px solid #eee;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(106,13,173,0.08);
  min-width: 180px;
  z-index: 1001;
  padding: 10px 0;
  margin-top: 5px;
  opacity: 1 !important;
  transition: none !important;
}

.dropdown.show {
  display: block !important;
}

/* Footer Styles */
.footer {
  background-color: #0e1122;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 5px;
}

.tagline {
  margin: 8px 0;
  margin-top: 3px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #ccc;
}

.support {
  margin-top: 60px;
  margin-bottom: 10px;
  color: #ddd;
}

.support a {
  color: #C5ED51;
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  height: 28px;
  width: 28px;
}

.footer-section h4 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  color: #ccc;
}

.footer-section ul li {
  margin: 6px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.payment-methods img {
  height: 30px;
  margin-right: 8px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 13px;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-section {
    flex: 1 1 100%;
    text-align: center;
  }
  
  .footer-logo {
    width: 100px;
  }
  
  .social-icons {
    text-align: center;
  }
}

/* Loading Skeleton Styles */
.profile-skeleton {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.skeleton-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.skeleton-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
  height: 20px;
  width: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 150px;
}

.skeleton-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-label {
  height: 16px;
  width: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-input {
  height: 45px;
  width: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

.skeleton-radio-group {
  display: flex;
  gap: 20px;
}

.skeleton-radio {
  height: 20px;
  width: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-button {
  height: 50px;
  width: 120px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  margin-top: 20px;
}

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

/* Order History Loading */
.order-history-skeleton {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-order-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(90,34,212,0.10);
}

.skeleton-order-header {
  height: 20px;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 15px;
}

.skeleton-product-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.skeleton-product-card {
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 15px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-product-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

.skeleton-product-title {
  height: 20px;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto;
}

.skeleton-product-info {
  height: 16px;
  width: 60%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto;
}

.skeleton-product-price {
  height: 18px;
  width: 70%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: 0 auto;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5B22D4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

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

/* Slide In Animations */
.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.6s ease-out forwards;
}

.slide-in-up {
  opacity: 0;
  animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Staggered Animation Delays */
.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* Bounce Animation */
.bounce-in {
  opacity: 0;
  animation: bounceIn 0.8s ease-out forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  70% {
    transform: scale(0.9) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scale In Animation */
.scale-in {
  opacity: 0;
  animation: scaleIn 0.5s ease-out forwards;
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Pulse Animation for Buttons */
.pulse {
  animation: pulse 2s infinite;
}

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

.custom-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.18); z-index: 9999; display: flex; align-items: center; justify-content: center;
}
.custom-modal-content {
  background: #fff; border-radius: 18px; padding: 36px 32px 28px 32px; box-shadow: 0 8px 32px rgba(90,34,212,0.10);
  min-width: 320px; max-width: 90vw; text-align: center;
}
.custom-modal-btn {
  border: none; border-radius: 25px; padding: 12px 32px; font-weight: bold; font-size: 16px; cursor: pointer; transition: all 0.2s;
}
.custom-modal-btn.primary {
  background: #8A4AF3; color: #fff;
}