.share-button {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(42, 124, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.75rem;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(42, 124, 232, 0.1);
  position: relative;
  z-index: 10;
  margin-left: 8px;
  display: inline-flex;
}

.like-button-container {
  display: flex;
  align-items: center;
}

 
@media (max-width: 768px) {
  .share-button {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .share-button {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

.share-button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(42, 124, 232, 0.2);
}

.share-button.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

.share-button.active:hover {
  background: var(--text-main-hover);
  box-shadow: 0 8px 20px rgba(42, 124, 232, 0.2);
}

 
body.dark .share-button {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(42, 124, 232, 0.3);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(42, 124, 232, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark .share-button:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(42, 124, 232, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.dark .share-button.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
  box-shadow: 0 8px 20px rgba(42, 124, 232, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.dark .share-button.active:hover {
  background: var(--text-main-hover);
  box-shadow: 0 8px 25px rgba(42, 124, 232, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

 
@media (max-width: 768px) {
  .share-button {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .share-button {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
   
  backdrop-filter: blur(8px);
   
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s 0s;
}

.popup {
  background: #fff;
  padding: 20px 25px 25px 25px;
   
  border-radius: 20px;
   
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 420px;
   
  width: 100%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.15);
   
  transform: translate(-50%, -60%) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   
  z-index: 9999;
}

.popup.show {
  top: 50%;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup header {
  padding-bottom: 15px;
  margin-top: 0;
   
  border-bottom: 1px solid #ebedf9;
}

.popup.show {
  top: 50%;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.popup :is(header, .icons, .field) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup header {
  padding-bottom: 15px;
  border-bottom: 1px solid #ebedf9;
}

header span {
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  color: #333;
   
}

header .close {
  color: #666;
  font-size: 18px;
  background: #f5f5f7;
  height: 36px;
  width: 36px;
  border-radius: 12px;
   
  cursor: pointer;
  transition: all 0.2s ease;
}

header .close:hover {
  background: #ebedf9;
  transform: scale(1.05);
}

.popup .content {
  margin: 25px 0;
   
}

.popup .content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

 
.popup .icons {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 25px 0;
}

.popup .icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
   
  width: 56px;
  border-radius: 16px;
   
  text-decoration: none;
  border: 1px solid;
  transition: all 0.3s ease;
}

.popup .icons a i {
  font-size: 22px;
  transition: transform 0.3s ease;
}

 
.popup .icons a:nth-child(1) {
  border-color: #000000;
}

.popup .icons a:nth-child(1) i {
  color: #000000;
}

.popup .icons a:nth-child(1):hover {
  background-color: #000000;
  border-color: #000000;
}

.popup .icons a:nth-child(1):hover i {
  color: #ffffff;
  transform: scale(1.2);
}

 
.popup .icons a:nth-child(2) {
  border-color: #1976f2;
}

.popup .icons a:nth-child(2) i {
  color: #1976f2;
}

.popup .icons a:nth-child(2):hover {
  background-color: #1976f2;
  border-color: #1976f2;
}

.popup .icons a:nth-child(2):hover i {
  color: #ffffff;
  transform: scale(1.2);
}

 
.popup .icons a:nth-child(3) {
  border-color:
    #fefd00;
}

.popup .icons a:nth-child(3) i {
  color:
    #fefd00;
}

.popup .icons a:nth-child(3):hover {
  background-color:
    #fefd00;
  border-color:
    #fefd00;
}

.popup .icons a:nth-child(3):hover i {
  color: #000000;
  transform: scale(1.2);
}

 
.popup .icons a:nth-child(4) {
  border-color: #bef4d2;
}

.popup .icons a:nth-child(4) i {
  color: #25D366;
}

.popup .icons a:nth-child(4):hover {
  background-color: #25D366;
  border-color: #25D366;
}

.popup .icons a:nth-child(4):hover i {
  color: #ffffff;
  transform: scale(1.2);
}

.content .field {
  margin: 15px 0 0 0;
  height: 50px;
   
  border-radius: 12px;
   
  padding: 0 8px;
  border: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  background: #f9f9fb;
   
}

.field.active {
  border-color: var(--text-main);
  background: white;
}

.field i {
  width: 50px;
  font-size: 18px;
  text-align: center;
  color: #878787;
   
}

.field.active i {
  color: var(--text-main);
}

.field input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  padding-left: 10px;
   
}

.field button {
  color: #fff;
  padding: 8px 20px;
  background: var(--text-main);
  border: none;
  cursor: pointer;
  border-radius: 10px;
   
  margin-left: auto;
  font-weight: 600;
  transition: all 0.2s ease;
}

.field button:hover {
  background: var(--text-main-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 124, 232, 0.2);
}

 
 
body.dark .modal-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

body.dark .popup {
  background-color: #1f2937;
  color: #f3f4f6;
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark header {
  border-bottom-color: #374151;
}

body.dark header span {
  color: #f3f4f6;
}

body.dark header .close {
  background: #374151;
  color: #d1d5db;
}

body.dark header .close:hover {
  background: #4b5563;
  transform: scale(1.05);
}

body.dark .content p {
  color: #d1d5db;
}

body.dark .field {
  background-color: #2d3748;
  border-color: #4b5563;
}

body.dark .field.active {
  border-color: var(--text-main);
  background-color: #374151;
}

body.dark .field i {
  color: #9ca3af;
}

body.dark .field.active i {
  color: var(--text-main);
}

body.dark .field input {
  background-color: transparent;
  color: #f3f4f6;
}

body.dark .field button:hover {
  background: var(--text-main-hover);
  box-shadow: 0 4px 12px rgba(42, 124, 232, 0.3);
}

 
body.dark .popup .icons a {
  border-color: #4b5563;
  background-color: #2d3748;
}

body.dark .popup .icons a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

 
body.dark .popup .icons a:nth-child(1) {
  border-color: #333;
}

 
body.dark .popup .icons a:nth-child(2) {
  border-color: #1976f2;
}

 
body.dark .popup .icons a:nth-child(3) {
  border-color: #fefd00;
}

 
body.dark .popup .icons a:nth-child(4) {
  border-color: #25D366;
}

 
@media (max-width: 480px) {
  .popup {
    width: 92%;
    padding: 18px 20px 22px 20px;
     
  }

  .popup .icons a {
    height: 50px;
    width: 50px;
  }
}