/* Create Pitch Link modal — open/close (matches .campaign-modal) */
.share-profile-modal {
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.share-profile-modal.share-profile-modal--open {
  opacity: 1;
}

.share-profile-modal .share-profile-modal-content {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  transform-origin: 50% 0;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.02s;
}

.share-profile-modal.share-profile-modal--open .share-profile-modal-content {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .share-profile-modal,
  .share-profile-modal .share-profile-modal-content {
    transition-duration: 0.01ms;
  }
}

/* Create Pitch Link modal — .cpl-* (used inside .share-profile-modal-content) */
.share-profile-modal-content:has(.cpl-modal-header) {
  padding: 0;
  max-width: 480px;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.share-profile-modal-content .cpl-modal-close,
.share-profile-modal-content .share-profile-close {
  position: static;
  top: auto;
  right: auto;
}

.cpl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
}
.cpl-modal-title {
  font-size: 21px;
  font-weight: 500;
  color: #1a1a1a;
}
.cpl-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}
.cpl-modal-close:hover {
  background: #f5f5f3;
  color: #1a1a1a;
}
.cpl-modal-sub {
  font-size: 14px;
  color: #888;
  padding: 0 20px 18px;
  line-height: 1.5;
}
.cpl-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 20px;
  margin-bottom: 14px;
}
.cpl-profile-readonly {
  margin-top: 0;
}
.share-profile-name {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #f5f5f3;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}
.cpl-form-group label,
.cpl-form-group .cpl-label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}
.cpl-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cpl-optional {
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
}
.cpl-hint {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
}
.cpl-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.cpl-input:focus {
  border-color: #1dace8;
  box-shadow: 0 0 0 3px rgba(29, 172, 232, 0.1);
}
.cpl-input::placeholder {
  color: #bbb;
}
.cpl-form-group select,
.cpl-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  color: #1a1a1a;
  font-family: inherit;
  outline: none;
  appearance: none;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  box-sizing: border-box;
}
.cpl-form-group select:focus,
.cpl-select:focus {
  border-color: #1dace8;
  box-shadow: 0 0 0 3px rgba(29, 172, 232, 0.1);
}
.cpl-expiry-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cpl-chip {
  padding: 6px 13px;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  background: #fff;
  user-select: none;
}
.cpl-chip:hover {
  border-color: #ccc;
  color: #1a1a1a;
}
.cpl-chip.active {
  background: #e8f6fd;
  color: #1dace8;
  border-color: #a8dcf5;
  font-weight: 500;
}
.cpl-reuse-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f5f3;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.cpl-toggle-switch {
  width: 36px;
  height: 20px;
  background: #e8e8e8;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cpl-toggle-switch.on {
  background: #1dace8;
}
.cpl-toggle-knob {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cpl-toggle-switch.on .cpl-toggle-knob {
  left: 18px;
}
.cpl-toggle-label {
  font-size: 14px;
  color: #1a1a1a;
}
.cpl-toggle-sub {
  font-size: 13px;
  color: #888;
  margin-top: 1px;
}
.cpl-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafaf9;
  margin-top: 8px;
}
.cpl-btn-cancel {
  padding: 8px 16px;
  background: #fff;
  color: #888;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.cpl-btn-cancel:hover {
  background: #1dace8;
  border-color: #1dace8;
  color: #fff;
}
.cpl-btn-create {
  padding: 8px 20px;
  background: #1dace8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.cpl-btn-create:hover {
  background: #179fd6;
}

/* Success state: analytics shortcut + inverted copy button */
.cpl-success-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}
.cpl-success-nav i {
  font-size: 13px;
  color: #aaa;
}
.cpl-success-link {
  color: #1dace8;
  text-decoration: none;
  font-weight: 500;
}
.cpl-success-link:hover {
  text-decoration: underline;
}

#copyShareLinkBtn,
[id^="copyShareLinkBtn-"],
#copyPitchLinkBtn,
.cpl-copy-btn-large {
  background: #fff !important;
  color: #1dace8 !important;
  border: 1.5px solid #1dace8 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500;
  padding: 9px 20px;
  width: 100%;
  cursor: pointer;
}
#copyShareLinkBtn:hover,
[id^="copyShareLinkBtn-"]:hover,
#copyPitchLinkBtn:hover,
.cpl-copy-btn-large:hover {
  background: #e8f6fd !important;
}
