/* Основной контейнер */
.dashboard-container_profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  position: relative;
  margin: 2rem;
}

/* Левая панель (Профиль) */
.profile-panel_profile {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
  align-self: start;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.panel-header_profile {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.panel-title_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.panel-title_profile span {
  color: #7cc440;
}

.panel-subtitle_profile {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.avatar-container_profile {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 2rem;
}

.avatar-frame_profile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCFBF9, #E8E5E0);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(124, 196, 64, 0.15);
}

.avatar-frame_profile::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7cc440, transparent 70%);
  z-index: -1;
}

.user-info_profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.user-name_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.balance-card_profile {
  background: #FCFBF9;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.balance-card_profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #7cc440;
}

.balance-label_profile {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.balance-amount_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2.2rem;
  font-weight: 600;
  color: #7cc440;
  margin-bottom: 1.5rem;
}

/* Анимация кнопки пополнения */
.btn-recharge_profile {
  background: white;
  color: #7cc440; /* корпоративный цвет */
  border: 2px solid #7cc440;
  padding: 1.1rem 0;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.btn-recharge_profile:hover {
  background-color: #7cc440; /* корпоративный цвет */
  color: white;
  border-color: #7cc440;
}

.btn-recharge_profile i {
  color: inherit; /* наследует цвет текста */
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-recharge_profile:hover i {
  transform: rotate(360deg);
  color: white;
}

/* Кнопка выхода */
.btn-logout_profile {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(26, 26, 26, 0.7);
  padding: 1rem 0;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 100%;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.btn-logout_profile:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1A1A1A;
}

/* Правая панель (Контент) */
.content-panel_profile {
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.content-header_profile {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 20px;
}

.content-title_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  position: relative;
}

.content-title_profile::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #7cc440;
}

/* СОВЕРШЕННО НОВЫЙ ДИЗАЙН КАРТОЧКИ ЗАКАЗА */
.orders-container_profile {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));*/
  gap: 2rem;
}

.order-card_profile {
  background: white;
  border-radius: 16px;
  padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-card_profile:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.order-header_profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.order-header_profile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: #7cc440;
}

.order-id_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: -0.3px;
}

.order-status-badge_profile {
  position: absolute;
  top: -14px;
  right: -30px;
  padding: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  background: #7cc440;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transform: rotate(7deg);
  /*box-shadow: 0 5px 15px rgba(124, 196, 64, 0.3);*/
  padding-top: 1.5rem;
  padding-right: 2.5rem;
}

.status-ok_profile {
  background: #2e7d32;
}
.status-work_profile {
  background: #1d3be0;
}
.status-cancel_profile {
  background: #e05d1d;
}

.order-body_profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.order-info-block_profile {
  display: flex;
  flex-direction: column;
}

.info-label_profile {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-label_profile i {
  color: #7cc440;
  width: 18px;
  text-align: center;
}

.info-value_profile {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.5;
}

.delivery-address_profile {
  background: #FCFBF9;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.8);
  border-left: 3px solid #7cc440;
  margin-top: 0.5rem;
}

.order-amount-container_profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0.5rem;
}

.order-amount-label_profile {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 0.3rem;
}

.order-amount_profile {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2rem;
  font-weight: 600;
  color: #1A1A1A;
}

.order-footer_profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
  gap: 1rem;
}

.products-count_profile {
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-count_profile i {
  color: #7cc440;
}

.btn-details_profile {
  background: transparent;
  border: none;
  color: #7cc440;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-details_profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7cc440;
  z-index: -1;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.btn-details_profile:hover {
  color: white;
}

.btn-details_profile:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Кнопка "Отменить заказ" */
.btn-cancel_profile {
  background: transparent;
  color: #ff5252;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-right: 0.5rem;
  border: none;
  outline: none;
}

.btn-cancel_profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff5252;
  z-index: -1;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-cancel_profile:hover {
  color: white;
}

.btn-cancel_profile:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-cancel_profile i {
  transition: transform 0.4s ease;
}

.btn-cancel_profile:hover i {
  transform: rotate(90deg);
}

/* Стили для блока "Нет заказов" */
.no-orders-container_profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: #FCFBF9; /* ivory */
  border-radius: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  /*width: 100%;*/
  grid-column: 1 / -1;
}

.no-orders-icon_profile {
  font-size: 3.5rem;
  color: #7cc440; /* primary */
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.no-orders-title_profile {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1A1A1A; /* charcoal */
  margin-bottom: 1rem;
}

.no-orders-text_profile {
  color: rgba(26, 26, 26, 0.7);
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.no-orders-btn_profile {
  background: #7cc440; /* primary */
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 20px rgba(124, 196, 64, 0.2);
}

.no-orders-btn_profile:hover {
  background: #6cb035; /* более темный оттенок primary */
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(124, 196, 64, 0.3);
}

.no-orders-btn_profile i {
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.no-orders-btn_profile:hover i {
  transform: translateX(3px);
}

/* Адаптивность */
@media (max-width: 1000px) {
  .dashboard-container_profile {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0rem;
    margin-top: 2rem;
  }
  .content-panel_profile {
    padding: 1rem;
  }
  .profile-panel_profile {
    position: static;
  }
}

@media (max-width: 768px) {     
  .profile-panel_profile, .content-panel_profile {
    padding: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
            
  .content-header_profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
            
  .orders-container_profile {
    grid-template-columns: 1fr;
  }
            
  .order-body_profile {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
            
  .order-footer_profile {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}



.back-button.active {  
  display: inline-flex;
}

.back-button {  
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(124, 196, 64, 0.1);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.back-button:hover {
  color: #7cc440;
}

.back-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.back-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-button:hover .back-button__icon {
  transform: translateX(-4px);
}

.back-button__icon svg {
  fill: currentColor;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-button:hover .back-button__icon svg {
  transform: scale(1.1);
}

.back-button__text {
  position: relative;
  overflow: hidden;
}

.back-button__text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #7cc440;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.back-button:hover .back-button__text::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Анимация при клике */
.back-button:active {
  transform: scale(0.96);
}

.back-button:active .back-button__icon {
  transform: translateX(-8px);
}



.btn-cancel-order_profile {
  background: white;
  color: #ff4444; /* красный цвет текста */
  border: 2px solid #ff4444;
  padding: 0.7rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.btn-cancel-order_profile:hover {
  background-color: #ff4444; /* красный фон при наведении */
  color: white;
  border-color: #ff4444;
}

.btn-cancel-order_profile i {
  color: inherit; /* наследует цвет текста */
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-cancel-order_profile:hover i {
  transform: rotate(90deg); /* другой эффект вращения */
  color: white;
}


.stock-badge_profile {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff6b6b;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.stock-badge_profile.active {
  display: block;
}






